Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #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)
  #2  
Old 19th September 2013, 14:17
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
how could i made this... for simple messages ? to show on shoutbox - a message waiting. ......

thank you
Reply With Quote
Reply

Tags
hint , messages , sb , show , team


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 18:26. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.