Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[HACK] Clear Shoutbox in AdminCP
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-07-19 10:04:20
admincp.php

After:

<td align="center"><a href=admincp.php?action=censor><img src="images/admin/censor.png" border=0 width=32 height=32><BR>Word Censor</a><BR></td>



Add:



<td align="center"><a href=admincp.php?action=clearshoutbox><img src="images/admin/forums.gif" border=0 width=32 height=32><BR>Clear Shoutbox</a><BR></td>





before:



?>



Add:



if ($action == "clearshoutbox") {

stdhead("Clear Shoutbox");

navmenu();

begin_frame("Clear Shoutbox", center);

if ($yes == "yes") {

$res = mysql_query("TRUNCATE `shoutbox`");

if ($res) echo "Shoutbox cleared";

} else {

echo "Are you sure you want to clear the shoutbox?<br>";

echo "<a href='admincp.php?action=clearshoutbox&yes=yes'><b>Yes</b></a>";

}

end_frame();

stdfoot();

}
Unknown User
2008-07-19 11:03:45
worked like a charm as just what i was looking for thnx
Unknown User
2008-07-22 23:33:48
where would i find ?> or rather wich one :mellow:
Unknown User
2008-07-23 00:28:17
i think its the last part at the end of the page
Unknown User
2008-07-23 00:38:12
Thanks m8 works like a charm :mellow:
Unknown User
2008-10-21 08:07:02
it works great!!!! thnx!!! :thumbsup:
Unknown User
2008-11-06 19:30:52
how to modify to clear older than 24h ?

I want to see last day messages
Unknown User
2008-11-22 17:39:51
Thanks  :D
Unknown User
2009-06-25 06:12:56
Can someone write this for clearing the staff shoutbox mod?

It would be greatly appreciated!
Unknown User
2009-07-29 11:23:15
Thanks
Unknown User
2009-08-19 21:39:02
great thanks!
Unknown User
2009-10-28 14:14:05
thanks , workk n# one
Unknown User
2009-12-06 11:58:48
thank you nikel his works on a trader 2.5
Unknown User
2010-08-06 07:26:31
work nice very good work man

thanks
Unknown User
2010-10-22 15:17:46
Hello everyone..

First I would like to thank you for this piece of code...

Im an OLD ColdFusion programmer, I don't know allot about about PhP and or ASP, but someone asked if there was a STAFF SHOUT BOX code as well.

Using whats left of my 3 brain cells, I look the code for the normal shoutbox, added it twice, but on the second pic of codes, I change clearshoutbox to clearstaffshoutbox as well as in the seconds code, cgange the sql query to staff_shoutbox.

Code worked fine first try, maybe PhP will not be so hard to learn after all..

Hope this helps anyone else, I can send the code if anyone needs it, but heck, if i can figure it out, most if not all of you reading this can.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728