Editing DHTML Menu

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
animgirl

Editing DHTML Menu

Post 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!
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Editing DHTML Menu

Post 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
animgirl

Editing DHTML Menu

Post 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,
Anonymous

Editing DHTML Menu

Post 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
animgirl

Editing DHTML Menu

Post 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.
Anonymous

Editing DHTML Menu

Post 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
Post Reply

Return to “Developers Discussion”