View Single Post
  #1  
Old 9th May 2011, 07:50
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 82
Thumbs up staff shoutbox delete mod
edited scrit/dropdown.js
and replace that part which is described here

And I apologize if everyone is spelling mistake in the translation.

And this is the mod you enter the page logba is excreted intact in the staff who chat to the user's name

PHP Code:
var menu2=new Array();
menu2[0]='<a href="' baseurl '/admin/index.php">' l_staffpanel '</a>'
menu2[1]='<a href="' baseurl '/admin/index.php?act=statistics">' l_trackerstats '</a>'
menu2[2]='<a href="' baseurl '/addpartner.php">" Banners "</a>'
menu2[3]='<a href="' baseurl '/stafffalurit.php">" Staff chat empity "</a>'

if (typeof menu3 == "undefined")
{
    var 
menu3=new Array();
}
menu3[0]='<a href="' baseurl '/admin/index.php">' l_staffpanel '</a>'
menu3[1]='<a href="' baseurl '/admin/settings.php">' l_trackersettings '</a>'
menu3[2]='<a href="' baseurl '/admin/index.php?act=statistics">' l_trackerstats '</a>'
menu3[3]='<a href="' baseurl +  '/addpartner.php">Banners</a>'
menu3[4]='<a href="' baseurl '/stafffalurit.php">Staff chat empity</a>' 
php name stafffalurit.php

PHP Code:
Staff Chat empty! You can close this window!

<?

require_once 'global.php';;

dbconn ();

loggedinorreturn ();
  
maxsysop ();
  
define ('D_VERSION''0.7 by xam');



sql_query("DELETE FROM staffshoutbox")or sqlerr(__FILE____LINE__);
write_log ('' '<font color = darkred> A Staff chat empity by: </font> ' $CURUSER['username']);
$text "[color=red][b] Staff-chat delete![/b][/color]";

$userid=$CURUSER["id"];

$username=$CURUSER["username"];

$date=sqlesc(time());



@
sql_query("INSERT INTO staffshoutbox (id, userid, username, date, text) VALUES ('id'," sqlesc($userid) . ", " sqlesc($username) . ", $date, " sqlesc($text) . ")") or sqlerr(__FILE____LINE__);



?>
__________________
Sky-Tech Developer Team Hungary

Reply With Quote
The Following 2 Users Say Thank You to smoky28 For This Useful Post:
eckeO5 (1st October 2011), Marco (10th October 2013)