View Single Post
  #1  
Old 15th September 2013, 12:19
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Talking show hint team messages in sb
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'] > ($cachetime)))
    {
$nummessages TSRowCount('id''staffmessages''answered=0');
@
setcookie('ts_last_sc'TIMENOWTIMENOW 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 "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
Attached Thumbnails
teampm.png  
Reply With Quote
The Following 3 Users Say Thank You to eckeO5 For This Useful Post:
FENIX (19th September 2013), Marco (19th September 2013), Titya (27th September 2013)