PHPBB links with variable in the menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Sadgit
Beginner
Beginner
Posts: 5
Joined: Tue Apr 19, 2005 10:00 am

PHPBB links with variable in the menu

Post by Sadgit »

Hi,

I have seen this kind of fixed in version 3, but I cannot figure it out for version 5.
In my overall_header.tpl, I currently have this code below.

Code: Select all

<a href="{U_MYWEBLOG}" class="mainmenu"><img src="templates/subBlack/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MYWEBLOG}" hspace="3" />{L_MYWEBLOG}</a>
How do I get DHTML version 5 to use the variable {U_MYWEBLOG} so I can use that and not the full url to the page? As that variable changes depending on which user is logged on..

Cheers
Sadgit
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi,

The templates for phpBB have to be parsed in order to change the values contained inside them.

My guess is that you will have to parse the menu_data.js file through the phpBB template parser in order to update its values.

Unfortunately, that is the only advice I can give as I'm not too familiar with the internals of phpBB

-- Andy
Post Reply