opnesws Posted September 27, 2012 Share Posted September 27, 2012 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 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted September 27, 2012 Share Posted September 27, 2012 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; } ?> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.