Jump to content

Announcements Integration


opnesws

Recommended Posts

Hi

 

On the system I can see we can integrate the client login area to other pages of our website which we use, but is it possible to also integrate the announcements onto other pages - we would like this to be integrated onto our home page of our website and cannot find any integration coding

 

cheers

 

Mark

Link to comment
Share on other sites

You can create a new feed in the /feeds directory, then add the javascript code to your home page to display the feed.

 

Here is an example, this will display the latest announcement's title and link to the full announcement.

<?php

require("../dbconnect.php");
require("../includes/functions.php");

/*
*** USAGE SAMPLES ***

<script language="javascript" src="feeds/announcements.php"></script>

*/

$result = select_query("tblannouncements","id,title","","date","DESC");
$data = mysql_fetch_array($result);

$systemurl = ($CONFIG['SystemSSLURL']) ? $CONFIG['SystemSSLURL'].'/' : $CONFIG['SystemURL'].'/';
widgetoutput($data['title'] . " <a href='". $systemurl . "announcements.php?id=" . $data['id'] . "'> More ..</a>");


function widgetoutput($value) {
   echo "document.write('".addslashes($value)."');";
   exit;
}

?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated