Remove top menu

Requests, feedback, and general discussion about WoWRoster
DO NOT post topics about WoWRoster AddOns here!

Remove top menu

Postby innerz » Wed Sep 03, 2008 5:05 pm

Hello,

I would like to remove all the menus on the top, to display the character in a lightbox iframe. It's for an integration in a CMS.

Image

can you tell me how can i do that, thanks in advance :)
Last edited by innerz on Wed Sep 03, 2008 6:28 pm, edited 1 time in total.
innerz
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Mon Oct 23, 2006 9:02 pm

Remove top menu

Postby zanix » Thu Sep 04, 2008 6:05 am

I'm assuming you already know how to display something in lightbox, because I haven't looked at lightbox nor can I tell you how

I can tell you how to remove the menu from the character information addon though

Open roster/addons/info/inc/header.php in a text editor

Find
Code: Select all
$roster->output['title'] = sprintf($roster->locale->act['char_stats'],$char->get('name')); 


Paste below
Code: Select all
$roster->output['show_menu'] = false


This will only disable the menu in the character info addon in Roster
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

Remove top menu

Postby innerz » Thu Sep 04, 2008 10:39 am

Thanks a lot Zanix :)
innerz
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Mon Oct 23, 2006 9:02 pm

Re: Remove top menu

Postby skenagle » Fri Sep 19, 2008 2:29 am

Hi have found a few posts on this subject but they were for older versions of wow roster.

Can you tell me how to remove the top menu in the same way for:

1. Memberlist
2. Stats
3. Honor
4. profesions
5. guild vault

I have looked all through the code and i cant find similar entry's as you have posted here for each individual module.

(i am using wowroster v2.0.0)

Thank you
User avatar
skenagle
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Fri Sep 19, 2008 2:24 am

Remove top menu

Postby zanix » Fri Sep 19, 2008 6:08 am

Read this section of the Addon SDK to figure out how files are laid out in an addon and how Roster accesses them
http://www.wowroster.net/MediaWiki/Addo ... _Structure

Basicly the line below needs to be in the file you want the menu to not appear in
Code: Select all
$roster->output['show_menu'] = false


In the character info addon, all the files include header.php first, so adding this line there disables the menu in all character info addon pages

The pages you listed are all separate, so you will need to add this line in each of these files
Add it near the top of the file, usually around where $roster->output['title'] is located will do nicely
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

Re: Remove top menu

Postby skenagle » Tue Sep 23, 2008 11:08 pm

awesome, this worked thank you, thank you, thank you.
i appreciate the code snippet.

In further development...
(is there a simple way to remove ALL the other navigations on character pages EXCEPT the ones related to character.. (such as remove the entire top section MINUS the "character panel") (the part that shows the character buttons only)

I know i can hide buttons, but want to get rid of that entire header except for the buttons that directly relate to the characters such as recipes, quests..etc

Any easy ways?

-Chris
User avatar
skenagle
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Fri Sep 19, 2008 2:24 am

Remove top menu

Postby zanix » Wed Sep 24, 2008 2:50 am

No, there is no simple way

What you are asking for would require modifications to lib/menu.php and templates/default/menu.html

For this I must leave as an exercise for you
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

Remove top menu

Postby skenagle » Wed Sep 24, 2008 11:03 am

CURSES!!

ok ill get to editing and screwing up code right away!

thank you for your fast responses!
User avatar
skenagle
WR.net Apprentice
WR.net Apprentice
 
Posts: 15
Joined: Fri Sep 19, 2008 2:24 am


Return to General Support & Feedback

Who is online

Users browsing this forum: No registered users and 0 guests

cron