Home »
FUDforum »
How To »
Announsment is not working
Announsment is not working [message #185831] |
Sun, 11 May 2014 15:34 |
|
chathu
Messages: 3 Registered: May 2014 Location: srianka
Karma:
|
Junior Member |
|
|
After creating announsment for front page i can only see empty css box.But no any content.
Is some thing missing here? index.php.t
<?php
/**
* copyright : (C) 2001-2013 Advanced Internet Designs Inc.
* email : forum(at)prohost(dot)org
* $Id: index.php.t 5638 2013-08-09 14:46:05Z naudefj $
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; version 2 of the License.
**/
/*{PRE_HTML_PHP}*/
$RSS = '{TEMPLATE: index_RSS}';
ses_update_status($usr->sid, '{TEMPLATE: index_update}');
/*{POST_HTML_PHP}*/
$TITLE_EXTRA = ': {TEMPLATE: index_title}';
// @TODO: Merge with foum level announcements in thread_view_common.inc.t.
/* Display non-forum related announcements. */
include $GLOBALS['FORUM_SETTINGS_PATH'] .'announce_cache';
$announcements = '';
foreach ($announce_cache as $a_id => $a) {
if (!_uid && $a['ann_opt'] & 2) {
continue; // Only for logged in users.
}
if (_uid && $a['ann_opt'] & 4) {
continue; // Only for anonomous users.
}
if ($a['start'] <= __request_timestamp__ && $a['end'] >= __request_timestamp__) {
$announce_subj = $a['subject'];
$announce_body = $a['text'];
$announcements .= '{TEMPLATE: announce_entry}';
}
}
/*{POST_PAGE_PHP_CODE}*/
?>
{TEMPLATE: INDEX_PAGE}
Please help me
|
|
|
Goto Forum:
Current Time: Thu Nov 21 20:21:53 GMT 2024
Total time taken to generate the page: 0.04109 seconds