Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic How to hide members award and wheater mods (Read 1655 times)
 
Paste Member Name in Quick Reply Box CJ3Apage
Guest


How to hide members award and wheater mods
Dec 4th, 2015 at 2:53pm
Mark & QuoteQuote  
Hi,
Can we hide the members award and wheater menu for guest?
We would like it shown only for members.
We checked through all the settings and can't find any related to disallow guest from seeing them.

Is it something easy to change code wise?
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: How to hide members award and wheater mods
Reply #1 - Dec 4th, 2015 at 4:31pm
Mark & QuoteQuote  
The easiest way is to uncheck 'Awards in Message View' since Guests aren't allowed to view member profiles.

I can work up some code later. (I didn't write/convert the Weather Mod so I can't help on that.)
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: How to hide members award and wheater mods
Reply #2 - Dec 4th, 2015 at 5:48pm
Mark & QuoteQuote  
Untested:
In Display.pm find
Code (Perl)
Select All
        $outblock =~ s/{yabb awards}/$member_awards{$musername}/gsm; # Member Awards Mod 



replace with
Code (Perl)
Select All
if ($iamguest) {
         $outblock =~ s/{yabb awards}//gsm;
 }
 else {        $outblock =~ s/{yabb awards}/$member_awards{$musername}/gsm; # Member Awards Mod
 } 

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box CJ3Apage
Guest


Re: How to hide members award and wheater mods
Reply #3 - Dec 4th, 2015 at 7:40pm
Mark & QuoteQuote  
Look like it work.

We found it also for the weather mods

thank
it's appreciated
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
How to hide members award and wheater mods

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry