here just a little modification how to show team messages in shoutbox.
well may be just a little help for the team to see messages arrive a little faster than with just original code ))
take outputinfo.php an find round about line 81 - 95 (shoutbox we use is modded one from lateam.....thx guys)
PHP Code:
require_once $rootpath . 'shoutbox/config.php';
$limit = intval ($LIMIT_INDEX);
$extralink = '';
if (((isset ($_GET['popupshoutbox']) AND $_GET['popupshoutbox'] == 'yes') AND $is_mod))
{
$limit = intval ($LIMIT_POPUP);
$extralink = '&popupshoutbox=yes';
}
after that put the following code:
PHP Code:
$__ismod=is_mod($usergroups);
if ($__ismod && (TIMENOW - $_COOKIE['ts_last_sc'] > (5 * $cachetime)))
{
$nummessages = TSRowCount('id', 'staffmessages', 'answered=0');
@setcookie('ts_last_sc', TIMENOW, TIMENOW + 0.30 * $cachetime, "/");
if (isset($nummessages) AND $nummessages > 0)
print("<p><table border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style='padding: 10px; background: red'>\n");
print("<b><a href=$BASEURL/admin/index.php?act=staffbox><font color=white>Es gibt $nummessages neue Teamnachricht" . ($nummessages > 1 ? "en" : "") . "!</font></a></b>");
print("</td></tr></table></p>\n");
}
need may be 1 to 2 min then then the link will be shown in upper left corner of sb.
feel free to modify it for your own needs ))
greetz to all and may be code works for you too
eckeO5