Removing "Guild Info" tab

Here you can find plenty of help with your general coding needs and projects
If it is about a specific program, use the corresponding forum
DO NOT ask basic questions such as "How do I print a variable", use Google for that

Removing "Guild Info" tab

Postby RemyXO » Fri Feb 22, 2008 12:46 pm

Hi,

I want to remove the "Guild Info" tab from the site, because this is where I post the vent info and I was getting spammed by random people who came across our guild roster.

Which file/number line do I have to comment out to remove it from the site?

Any help would be much appreciated.

Thank you.
User avatar
RemyXO
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sat Feb 16, 2008 7:44 am

Removing "Guild Info" tab

Postby zanix » Fri Feb 22, 2008 1:00 pm

To remove the tab, open lib/menu.php in a text editor

Find and delete this
Code: Select all
if( $roster_conf['menu_guild_info'] )
    print 
'        <li><a href="'.$roster_conf['roster_dir'].'/guildinfo.php">'.$wordings[$roster_conf['roster_lang']]['Guild_Info'].'</a></li>'."\n"


You may also want to rename guildinfo.php to something else so those who know of the url cannot access it anymore


In Roster 2.0 beta , you can either uninstall the addon, move the button to "Unused" in Menu Config, or set the access level to guild or higher
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Removing "Guild Info" tab

Postby RemyXO » Sat Feb 23, 2008 12:35 am

It worked! Thank you!
User avatar
RemyXO
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Sat Feb 16, 2008 7:44 am


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron