Welcome, Guest. Please Login or Register.
November 27, 2024, 10:26:04 AM
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  |  Development  |  Completed mods  |  [Code] Report to Moderator viewed by guests « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Code] Report to Moderator viewed by guests  (Read 7272 times)
Fizzy
Full Member
***
Posts: 214


[Code] Report to Moderator viewed by guests
« on: January 28, 2004, 07:17:29 PM »
Reply with quote

Not a mod, just sharing a simple tweak  ;)

I decided that I didn't like guests being able to see the "report to moderator" button I had created so I just changed



     if ($modSettings['enableReportToMod'] == '1')
        $reportToModerator = '<font size="1"><a href="' . $cgi . ';action=reporttm;thread=' . $viewnum . ';id=' . $counter . ';subject=' . urlencode($msub) . ';poster=' . $mname . ';msgid=' . $mid . '">' . $img['report'] . '</a></font>  ';
     else
        $reportToModerator = '';



to the following


     if ($modSettings['enableReportToMod'] == '1' && $username != 'Guest')
        $reportToModerator = '<font size="1"><a href="' . $cgi . ';action=reporttm;thread=' . $viewnum . ';id=' . $counter . ';subject=' . urlencode($msub) . ';poster=' . $mname . ';msgid=' . $mid . '">' . $img['report'] . '</a></font>  ';
     else
        $reportToModerator = '';


You can ignore the . $img['report'] bit. That's just where I added a button instead of plain text
Logged
bluesyrio
Noobie
*
Posts: 21


I'm a llama!

Re:[Code] Report to Moderator viewed by guests
« Reply #1 on: February 03, 2004, 08:01:34 PM »
Reply with quote

In which file is this code? :)
Logged
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[Code] Report to Moderator viewed by guests
« Reply #2 on: February 03, 2004, 08:26:08 PM »
Reply with quote

Display.php
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
Fizzy
Full Member
***
Posts: 214


Re:[Code] Report to Moderator viewed by guests
« Reply #3 on: February 04, 2004, 11:33:15 PM »
Reply with quote

Sorry

* Fizzy slaps wristies

My oversight ::)
Logged
bluesyrio
Noobie
*
Posts: 21


I'm a llama!

Re:[Code] Report to Moderator viewed by guests
« Reply #4 on: February 08, 2004, 01:33:14 PM »
Reply with quote

Thanks, it's done. We've been wanting this for a long time so it's great! ;D
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code] Report to Moderator viewed by guests « 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.041 seconds with 20 queries.