I am trying to move the navigation menu from the top of the forums to the dhtml menu. However when I attempt to use any variables from the UBBT the Javascript does not understand them.
So I was wondering if including a UBBT file will be able to pass the variables to the Javascript. Or am I going down the wrong path........
The javascript file you are using is not parsed by php, so no, it wont work. You are refering to an external javascript file for the menu: [:"blue"] ../mmenu.js [/] It wont work.
Maybe you could try embedding directly the javascript into your php page itself, but that is not a good thing... The way you have it now saves users from downloading the menu every single time they visit a page with the menu. If you include the script inside the php (where that specific thing would work) then download time will double, as they will need to download the javascript code along with the generated page every single time.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.