Page 1 of 1

Editing DHTML Menu

Posted: Thu Sep 23, 2004 4:19 pm
by animgirl
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

Posted: Thu Sep 23, 2004 4:25 pm
by Ted
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

Posted: Thu Sep 23, 2004 4:39 pm
by animgirl
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,

Editing DHTML Menu

Posted: Thu Sep 23, 2004 8:05 pm
by Anonymous
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

Editing DHTML Menu

Posted: Thu Sep 23, 2004 9:32 pm
by animgirl
I'm actually looking for the table tags surrounding the dhtmlmenu that I thought would be associated with it. They start like this:

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();">
But I can't find where that code is. It doesn't seem to be in function.dhtmlmenu.php.

Editing DHTML Menu

Posted: Thu Sep 23, 2004 11:59 pm
by Anonymous
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