Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #21  
Old 26th February 2013, 14:37
antibiotic1 antibiotic1 is offline
Senior Member
 
Join Date: Dec 2012
Macedonia
Posts: 40
Default
Tnx man
Reply With Quote
  #22  
Old 3rd March 2013, 22:30
Daz's Avatar
Daz Daz is offline
Senior Member
 
Join Date: Dec 2009
United Kingdom
Posts: 124
Default
Great little mod, I made a few badly needed changes to it.. The most important change I made was this:

outputinfo.php

find:
PHP Code:
  if ((!$CURUSER OR $usergroups['canshout'] != 'yes'))
  {
    exit (
'<div style="background: #FFECCE; border: 1px solid #EA5F00; padding-left: 5px;">' $lang->global['shouterror'] . '</div>');
    return 
1;
  } 

Change to:
PHP Code:
  if ((!$CURUSER OR $usergroups['canstaffpanel'] != 'yes'))
  {
    exit (
'<div style="background: #FFECCE; border: 1px solid #EA5F00; padding-left: 5px;">Nice try! You are not authorized to use the Staff Shout!</div>');
    return 
1;
  } 
Otherwise anyone can see staffbox, by going to /staffbox/outputinfo.php

Last edited by Daz; 3rd March 2013 at 22:59. Reason: small change :)
Reply With Quote
The Following 2 Users Say Thank You to Daz For This Useful Post:
FENIX (5th March 2013), Marco (6th March 2013)
Reply

Tags
shoutbox , staff

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 21:28. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.