Welcome, Guest. Please Login or Register.
August 02, 2025, 02:30:56 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  disable guests from "reporting to moderator" « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: disable guests from "reporting to moderator"  (Read 451 times)
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
disable guests from "reporting to moderator"
« on: January 15, 2003, 02:54:21 AM »
Reply with quote

is there a way to do this to keep guests from spamming the moderators?  I didn't see any direct options to disable this, but maybe i missed it
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:disable guests from "reporting to moderator"
« Reply #1 on: January 15, 2003, 01:25:12 PM »
Reply with quote

I don't think it exists but you're right, it would be a great addition :) Perhaps suggest this in the MOD ideas board?
Logged

Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:disable guests from "reporting to moderator"
« Reply #2 on: January 15, 2003, 08:15:49 PM »
Reply with quote

Add:

if ($username == "Guest")
   fatal_error($txt[223]);

To both ReportToModerator and ReportToModerator2 in Subs.php. Just after the global $variables part.
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:disable guests from "reporting to moderator"
« Reply #3 on: January 16, 2003, 04:48:00 AM »
Reply with quote

Great!  I'll give it a shot tomorrow!

Thanks!
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:disable guests from "reporting to moderator"
« Reply #4 on: January 17, 2003, 04:18:40 AM »
Reply with quote

When i did that,  i placed that snippet right after the global variables line (immediately beneath it after the close of the variables line) and all it did was make it impossible for guests to view the boards...it took me back immediately when i refreshed inside a thread to the main forum home page.  also, when i clicked on login, i get page cannot be displayed...

-maDD
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:disable guests from "reporting to moderator"
« Reply #5 on: January 17, 2003, 05:03:46 AM »
Reply with quote

Can you post the code and highlight the part you added for either one of those functions I mentioned?
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:disable guests from "reporting to moderator"
« Reply #6 on: January 17, 2003, 03:26:02 PM »
Reply with quote

sure this is where I have it...the board won't work at all this way...i get the following:

QuoteFatal error: Call to undefined function: url_parts() in /home/xxxxx/public_html/yabbse/Sources/Load.php on line 47

here's the code where I added yours...is it not in the right place?

Quotefunction ReportToModerator() {
   global $txt,$color,$cgi,$thread,$board,$id,$subject,$poster,$username;

if ($username == "Guest")
   fatal_error($txt[223]);

   template_header();
    $rname=LoadRealName($username);

and then...

Quotefunction ReportToModerator2() {

   global $txt,$cgi,$db_prefix,$thread,$board,$id,$subject,$poster,$yySetLocation,$comment,$reporter;

if ($username == "Guest")
   fatal_error($txt[223]);

   // first, we create the message...

This is on a 1.5.1 board, btw.
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
Daniel D.
Mod Team
YaBB God
*****
Posts: 2935


Re:disable guests from "reporting to moderator"
« Reply #7 on: January 17, 2003, 03:27:53 PM »
Reply with quote

Quote from: maddness on January 17, 2003, 03:26:02 PM... This is on a 1.5.1 board, btw.
There is no 1.5.1, newbie. Only 1.5 is released... ::)
Logged

charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:disable guests from "reporting to moderator"
« Reply #8 on: January 17, 2003, 08:08:47 PM »
Reply with quote

ooops...sorry that a typo makes me a newbie  
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:disable guests from "reporting to moderator"
« Reply #9 on: January 17, 2003, 08:15:23 PM »
Reply with quote

You forgot to addd $username to this line:

global $txt,$cgi,$db_prefix,$thread,$board,$id,$subject,$poster,$yySetLocation,$comment,$reporter;

Change to:

global $txt,$cgi,$db_prefix,$thread,$board,$id,$subject,$poster,$yySetLocation,$comment,$reporter, $username;

-[Unknown]
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:disable guests from "reporting to moderator"
« Reply #10 on: January 17, 2003, 08:40:57 PM »
Reply with quote

ah, that sounds like the solution.  Good call...

I'll try that.

thanks!
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:disable guests from "reporting to moderator"
« Reply #11 on: January 18, 2003, 10:01:18 PM »
Reply with quote

That didn't do it either...not sure of the problem, but it's not a big deal...maybe i'll suggest that as a mod sometime

The site still doesn't appear with the above changes...

-maDD
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:disable guests from "reporting to moderator"
« Reply #12 on: January 18, 2003, 10:11:48 PM »
Reply with quote

Any error messages this time?
Logged
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:disable guests from "reporting to moderator"
« Reply #13 on: January 18, 2003, 10:31:26 PM »
Reply with quote

same as before...if i upload that edited subs file, and leave everything else the same, and try to load my site i get a blank white page with

QuoteFatal error: Call to undefined function: url_parts() in /home/xxxxx/public_html/yabbse/Sources/Load.php on line 47

Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
Gobalopper
Mod Team
YaBB God
*****
Posts: 993


Cookie Monster

WWW
Re:disable guests from "reporting to moderator"
« Reply #14 on: January 18, 2003, 11:05:29 PM »
Reply with quote

Try adding it to just the ReportToModerator() function then. I did just did it and worked fine using the same code you have.
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  disable guests from "reporting to moderator" « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.014 seconds with 16 queries.