Hey,
Where is the actual source code for the {dhtmlmenu} tag? I'd like to modify it. I did see the Horizontal menu thread, but I couldn't find which file that change was actually made in.
Thanks!
Editing DHTML Menu
Editing DHTML Menu
The main code is in plugins/function.dhtmlmenu.php. This is mostly code that calls to the phplayers library (everything in the phplayers dir) to actually do the work. More info for that is at: http://phplayersmenu.sf.net
Editing DHTML Menu
Okay,
I guess I want to mess with the code that formats the output of the {dhtmlmenu}, it doesn't seemt to be in there. Where is it?
Thanks so much,
I guess I want to mess with the code that formats the output of the {dhtmlmenu}, it doesn't seemt to be in there. Where is it?
Thanks so much,
Editing DHTML Menu
The output format is controlled by html files combined with stylesheets. The best thing to do is create your own style rules. Just take phplayers/layersmenu-cms.css, back it up, and start experimenting with it. The menu templates are in phplayers/templates/. Of course you can change the templates, but I really think that's not nessecary.
Cheers,
Leen
Cheers,
Leen
Editing DHTML Menu
I'm actually looking for the table tags surrounding the dhtmlmenu that I thought would be associated with it. They start like this:
But I can't find where that code is. It doesn't seem to be in function.dhtmlmenu.php.
Code: Select all
<!-- beginning of vertical menu bar -->
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap="nowrap">
<div id="vermenu1" class="verbar" onmouseover="clearLMTO();" onmouseout="setLMTO();">
Editing DHTML Menu
Oh dear, you want actually dive into the javascripting routines? ;} Dive into the phplayers/libjs/ directory. Those are used on the (remote) client
There are also some php scripts in the phplayesr/lib/ directory. Those are used on the server, to build the piece of html that is inserted at the {dhtmlmenu} tag.
If you are on a Linux machine, do this to locate the javascript routines clearLMTO and setLMTO:
cd cms/phplayers
egrep -iH '(clear|set)LMTO' *
Cheers,
Leen
There are also some php scripts in the phplayesr/lib/ directory. Those are used on the server, to build the piece of html that is inserted at the {dhtmlmenu} tag.
If you are on a Linux machine, do this to locate the javascript routines clearLMTO and setLMTO:
cd cms/phplayers
egrep -iH '(clear|set)LMTO' *
Cheers,
Leen