View Full Version : Shout Box Help Please
Abronsyth
10-15-2011, 04:10 PM
How do you make it so guests can not post shouts? I have an annoying guest who keeps spamming up my shout box, very irritating.
Hall of Famer
10-15-2011, 05:49 PM
Well this has been a problem since the release of Mys v1.2.0, I plan on resolving it for Mys v1.2.4, the last maintenance release for Mys v1.2.x series before Mys v1.3.0 is released. For quick fix, go to your shoutbox.php file and make the following changes:
Right below you see the 'Start Script' Block, add:
if($isloggedin == "yes"){
Then delete these lines:
if ($isloggedin!="yes") {
$user = "Guest";
}
And add the following codes right above the 'Output page' block:
}
else{
$article_title = $accden;
$article_content = $reqlogin;
}
This should be able to prevent any guests from using shoutbox, give a try on your site and lemme know if it does not work.
KaceKuma
10-16-2011, 10:35 AM
I tried it aand the page just said that there was a programming error :(
Abronsyth
10-16-2011, 03:10 PM
Thanks so very much, HOF, it worked! Blah, a guest had been posting inappropriate links in the Shoutbox, but never shall again!
Thanks!
Iris
Hall of Famer
10-16-2011, 05:01 PM
You are very welcome, glad it works. I must say it is indeed annoying to have advertisers spamming links in shoutbox, so we will make sure in future releases guests will not be able to post comments, too.
Abronsyth
10-16-2011, 06:03 PM
I suggest adding a feature were the admin can either check Yes or No to allow guests ;)
Hall of Famer
10-16-2011, 11:50 PM
Well yeah, I do plan to add this feature to Mys v1.3.0. I am sure most owners do not want guests to be able to post comments though.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.