Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:47

PHPBB links with variable in the menu


Poster: Sadgit
Dated: Tuesday April 19 2005 - 10:46:07 BST

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:
<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


Poster: Andy
Dated: Wednesday April 20 2005 - 2:49:56 BST

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