Menu on addon page

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

Menu on addon page

Postby v3lv3t » Fri Apr 13, 2007 11:15 pm

Hi, i installed wowroster yesterday.
As you can see (http://skinoff.hjhosting.nl/velvet/roster/index.php) i have made a nice menu, including the addons.
But when u click an addon, like gems, the menu is a normal menu with an addon part.
I want to make the menu on the addon page the same as on the index page and other standard pages.
But i can not just adjust the code because then every addon is the same...
How do i adjust this?
Thanks in advance
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm

Menu on addon page

Postby PleegWat » Sat Apr 14, 2007 12:07 am

I'm not sure what you're wanting to do. Appearantly you made a copy of the lib/menu.php file, and edited that for to get this menu. Then you changed the references to the new file.

To change it for all addons, you should edit the addon.php. But I guess that's not what you want to do.

You can change the menu in some addons by including your custom menu at the top of their index page, and setting a variable so the addon framework won't show the menu again. I'm not sure what var, check the addon SDK.
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

Menu on addon page

Postby v3lv3t » Sat Apr 14, 2007 12:31 am

No i just adjusted every page separately, and i cant adjust addon.php cuz then all addon pages are the same page, like siggen or something.
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm

Menu on addon page

Postby zanix » Sat Apr 14, 2007 12:47 am

Why not back up menu.php and overwrite it with your new menu?
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

Menu on addon page

Postby v3lv3t » Sat Apr 14, 2007 1:44 am

Because i dont understand a thing of those php scripts when i open them in dreamweaver... i hardly understand html, so dont start about php
Unless someone can tell me exactly what to do, then i might pull it off.
Last edited by v3lv3t on Sat Apr 14, 2007 2:50 am, edited 1 time in total.
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm

Menu on addon page

Postby Vildarr » Sat Apr 14, 2007 5:25 am

I think first you need to fix your link so it works so I can see whats wrong:

skinoff.hjhosting.nl/velvet/roster/lib//velvet/roster/addon.php?=

fix the extra / so I can view it.
Vildarr
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Sun Jan 07, 2007 3:40 am

Menu on addon page

Postby v3lv3t » Sat Apr 14, 2007 6:16 am

where the hell did u get that url....
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm

Menu on addon page

Postby Vildarr » Sat Apr 14, 2007 6:29 am

its the link on your addon buttons
Vildarr
WR.net Apprentice
WR.net Apprentice
 
Posts: 4
Joined: Sun Jan 07, 2007 3:40 am

Menu on addon page

Postby v3lv3t » Sat Apr 14, 2007 8:12 pm

no it isn't... the link on my addon buttons is
skinoff.hjhosting.nl/velvet/roster/addon.php?roster_addon_name=
Last edited by v3lv3t on Sat Apr 14, 2007 9:50 pm, edited 2 times in total.
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm

Menu on addon page

Postby v3lv3t » Sun Apr 15, 2007 8:02 pm

Ok, this code is the button:
Code: Select all
<li><a href="<?php print $roster_conf['../roster/lib/roster_dir']; ?>index.php"><?php print $wordings[$roster_conf['roster_lang']]['roster']; ?></a></li>

How do i change the display name of this button?
If i change the 'roster' into like... reputation, the button doesnt display anymore.
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm

Menu on addon page

Postby PleegWat » Sun Apr 15, 2007 8:39 pm

the 'roster' is the localization key. If you want to change it, either look up $wordings['enUS']['roster'] in localization/enUS.php, and change the righthand side of the assignment there, or replace the whole string <?php print $wordings[$roster_conf['roster_lang']]['roster']; ?> by the value you want.
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

Menu on addon page

Postby v3lv3t » Mon Apr 16, 2007 9:46 am

Well i purely want to change the name that is displayed on the button, so what part exactly do i have to change into a name that i want?
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm

Menu on addon page

Postby v3lv3t » Mon Apr 16, 2007 10:44 am

nevermind i found out how to change the name
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm

Re: Menu on addon page

Postby tuigii » Mon Apr 16, 2007 2:15 pm

v3lv3t wrote:where the hell did u get that url....

Well, no hell, your site ! All your Add On's won't show up (and a site called DitMagNiet.com is called as a '404' result) because of this double slash - it's still there.

If memory servs me well, this is a small bug and easy to correct.

[Geloof me - heb net een koffie op - niet geloven ? Een screen shot !)

PS Please edit php files with a good ASCI/UTF8 text editor, live is to short for DreamWeaver...
Last edited by tuigii on Mon Apr 16, 2007 2:16 pm, edited 1 time in total.
User avatar
tuigii
WR.net Master
WR.net Master
 
Posts: 891
Joined: Wed Dec 27, 2006 12:57 pm
Location: Somewhere in the South Ouest of France

Menu on addon page

Postby v3lv3t » Mon Apr 16, 2007 7:56 pm

yes your right, when i checked the url it was right but on all others its not...
how can i correct this bug?
v3lv3t
WR.net Apprentice
WR.net Apprentice
 
Posts: 23
Joined: Fri Apr 13, 2007 10:29 pm


Return to General Code Help

Who is online

Users browsing this forum: Baidu [Spider] and 0 guests