Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   show hint team messages in sb (http://www.bvlist.com/showthread.php?t=9499)

eckeO5 15th September 2013 12:19

show hint team messages in sb
 
1 Attachment(s)
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

Marco 19th September 2013 14:17

how could i made this... for simple messages ? to show on shoutbox - a message waiting. ......

thank you


All times are GMT +2. The time now is 00:43.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.