![]() |
Allow Mods to delete Shoutbox posts!
I'm in desperate need of this hack.
The original hack is here: https://vborg.vbsupport.ru/showthrea...threadid=38698 Unfortunately moderators are not able to delete posts and since I'm not on all day and the shoutbox is busy, it can get out of hand. Thanks. |
If you want them to delete posts just place "admin_shoutbox.php" in the mod-folder.
In mod/index.php place PHP Code:
PHP Code:
|
Open shoutbox.php
There should be some code below: Code:
require("./global.php"); Code:
$DB_site->query("DELETE FROM shoutbox WHERE shoutid = $shoutid"); Replace that section with: Code:
if (($bbuserinfo[usergroupid] == 5 || $bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 7) && $action == 'delete' && $shoutid) { Satan |
Lord. I need to study more PHP. Cause this is confusing.. :(. If anyone is wanting to help a poooooor little starter at PHP. AIM me at bacheloring.. Thanks.
|
Neither works :(
I even tried enabling access masks and turning them off. Only the admin has the ability to delete. Any ideas? |
@Mr H - My code should work - Its what I have on my shoutbox, and last time I checked my mods could delete shouts;)
You would have to remove the "if" line too;) Satan |
He probably pasted it in the wrong place ;)
|
I removed the line that started with "if" and replaced it with this....
Code:
if (($bbuserinfo[usergroupid] == 5 || $bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 7) && $action == 'delete' && $shoutid) { |
Mr H, I had the same problem as you. I tried doing this, and it worked... give it a try, and let me know if it works for you.
Open shoutbox.php- REPLACE PHP Code:
PHP Code:
|
MetroSports, you're the man! :D
For a while there I just figured I was out of luck. Thanks again!, H |
All times are GMT. The time now is 07:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|