Hide the Roster menu?

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

Hide the Roster menu?

Postby Nimz » Wed Oct 18, 2006 7:19 pm

I'm trying to find out where in the code to hide the roster menu. I did so on my php nuke port but on my joomla site its not working to well since the roster code is a lot different then the port. So far I was able to get the banner to go away by removing the code in the roster_header.tpl but I can not figure out how to hide the menu thats got the server status and other options... :scratch: oh and this is the newest version of roster.
Nimz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu Jul 06, 2006 4:59 pm

Hide the Roster menu?

Postby Nimz » Wed Oct 18, 2006 10:41 pm

anyone? :(
Nimz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu Jul 06, 2006 4:59 pm

Hide the Roster menu?

Postby Snykx » Wed Oct 18, 2006 10:52 pm

Sure.

memberslist.php:
Find on line 55:
Code: Select all
include_once (ROSTER_BASE.'lib'.DIR_SEP.'menu.php'); 

Change to:
Code: Select all
//include_once (ROSTER_BASE.'lib'.DIR_SEP.'menu.php'); 


roster_header.tpl:
Remove lines 35, 36, 37:
Code: Select all
<div style="text-align:center;margin:10px;" class="bodyline"><a href="<?php echo $roster_conf['website_address'] ?>">
  <img src="<?php echo $roster_conf['roster_dir'] ?>/<?php echo $roster_conf['logo'] ?>" alt="" style="border:0;margin:10px;" /></a>
</div>



Good luck!
Last edited by Snykx on Wed Oct 18, 2006 11:10 pm, edited 2 times in total.
User avatar
Snykx
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 29
Joined: Wed Oct 18, 2006 10:09 am

Hide the Roster menu?

Postby Nimz » Wed Oct 18, 2006 11:12 pm

what do I remove in Indexinst.php and pvplist.php to get rid of the menu?
Nimz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu Jul 06, 2006 4:59 pm

Hide the Roster menu?

Postby Nimz » Wed Oct 18, 2006 11:12 pm

also thanks a ton for helping me out with this.
Nimz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu Jul 06, 2006 4:59 pm

Re: Hide the Roster menu?

Postby Snykx » Wed Oct 18, 2006 11:22 pm

Nimz wrote:what do I remove in Indexinst.php

indexinst.php actualy loads membersinst.php:
Find line: 39
Code: Select all
include_once( ROSTER_BASE.'lib'.DIR_SEP.'menu.php'); 

Change to:
Code: Select all
//include_once( ROSTER_BASE.'lib'.DIR_SEP.'menu.php'); 


Nimz wrote:and pvplist.php to get rid of the menu?

guildpvp.php is the actual file to edit:
Find line: 33
Code: Select all
include_once (ROSTER_BASE.'lib'.DIR_SEP.'menu.php'); 

Change to:
Code: Select all
//include_once (ROSTER_BASE.'lib'.DIR_SEP.'menu.php'); 
Last edited by Snykx on Wed Oct 18, 2006 11:28 pm, edited 2 times in total.
User avatar
Snykx
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 29
Joined: Wed Oct 18, 2006 10:09 am

Hide the Roster menu?

Postby Nimz » Wed Oct 18, 2006 11:34 pm

for the pvp one you have to comment out line 33 in guildpvp.php I just figured that one out..
Nimz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu Jul 06, 2006 4:59 pm

Hide the Roster menu?

Postby Nimz » Wed Oct 18, 2006 11:36 pm

you beat me to it :) but the on memberlist.php after commenting out line 55 I still get the menu on guild keys page.
Nimz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu Jul 06, 2006 4:59 pm

Hide the Roster menu?

Postby Snykx » Wed Oct 18, 2006 11:41 pm

It's not line 55, read my post again.
User avatar
Snykx
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 29
Joined: Wed Oct 18, 2006 10:09 am

Hide the Roster menu?

Postby Nimz » Wed Oct 18, 2006 11:48 pm

OH!! memberINST!!

thanks man :)
Nimz
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Thu Jul 06, 2006 4:59 pm

Hide the Roster menu?

Postby PleegWat » Thu Oct 19, 2006 1:49 am

I'm not gonna add this in for 1.7.1 because if we keep adding features to that it'll never get released. But I've just added 2 options for 1.8 that hide the top (title) pane and the button pane respectively. That means only the login box (new for 1.8) is always displayed.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Hide the Roster menu?

Postby Snykx » Thu Oct 19, 2006 2:08 am

Great idea. Will make for easier integration.
Last edited by Snykx on Thu Oct 19, 2006 2:08 am, edited 1 time in total.
User avatar
Snykx
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 29
Joined: Wed Oct 18, 2006 10:09 am

Re: Hide the Roster menu?

Postby Rijandael » Wed Jun 06, 2007 1:11 am

Can one remove the SQL code at the bottom of the page?
I would think its a security risk to display the SQL query that get the page results....

I love this program btw... great job!!!

Thanks for your help.

Rij.
Rijandael
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Wed Jun 06, 2007 1:06 am

Re: Hide the Roster menu?

Postby Rijandael » Wed Jun 06, 2007 1:19 am

Never mind... found the answer in another post....
Thanks again...
Rijandael
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Wed Jun 06, 2007 1:06 am


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron