Combining two menu items

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
simongdawson
Super Advanced
Super Advanced
Posts: 49
Joined: Sun Oct 12, 2003 6:56 am
Location: UK
Contact:

Combining two menu items

Post by simongdawson »

Can you please show me how to combine the following two menu items into a single menu item with a line break between the displayed 'Users Online' and Users Today'. I have tried but am not knowledgeable enough with the required phrasing, and as a consequence cannot get it to work.

aI("text=<? include("g:/etc/etc/etc1.php");?>;status=The number of visitors to the-limes.com currently online;");
aI("text=<? include("g:/etc/etc/etc2.php");?>;status=The number of visitors to the-limes.com today;");
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Hi Simon,

Try something like this:

Code: Select all

aI("text=<? include("g:/websites/the-limes/htdocs/online/online.php"); ?><br><? include("g:/websites/the-limes/htdocs/online/today.php"); ?>;align=left"); 
If not, let me know and I'll dig a little deeper.

Hope this helps
Milonic Support
User avatar
simongdawson
Super Advanced
Super Advanced
Posts: 49
Joined: Sun Oct 12, 2003 6:56 am
Location: UK
Contact:

Post by simongdawson »

Sorry, Andy, but I've tried your suggestion (and also tried a couple of minor changes) but I cannot get the second line to show. The test page is at http://www.the-limes.com/index2.html
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

I know I don't know a thing about this but as I was playing around. I noticed in the 'produced' menu_data2.php file the line you see is

Code: Select all

aI("text=Users Online : 2;status=The number of visitors to the-limes.com currently online; >?<br>Users Today : 10;status=The number of visitors to the-limes.com today;"); 
and on the page all you get is the Users Online: 2.

What I did was remove the status= line since it's not part of the menu anymore and won't work. So, i changed it to

Code: Select all

aI("text=Users Online : 2; >?<br>Users Today : 10;"); 
and resaved the file, and the output when I looked at the page was

Code: Select all

Users Online: 2;
               >?
Users Today : 10
I realize that I am changing the generated file, but since it did output once the status was removed, though I don't know what is producing the >? in the outputting, I thought it might give you some ideas.

Ruth
User avatar
simongdawson
Super Advanced
Super Advanced
Posts: 49
Joined: Sun Oct 12, 2003 6:56 am
Location: UK
Contact:

Post by simongdawson »

Thanks, Ruth. I've removed the 'status' stuff from the menus - I didn't realise it no longer worked in the menus (a retrograde step???). The combined two items are now working using the code:

aI("text=<? include("g:/websites/the-limes/htdocs/online/online.php")?><br><? include("g:/websites/the-limes/htdocs/online/today.php");?>;");
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

The status was removed with 5.751. It was seen as a security issue by internet security experts because of the way phishing attacks work and text being changed to indicate a trusted site. That feature has been disabled by default in all modern browsers as far as I know.

For all intents and purposes [well most purposes :) ] it doesn't matter if it's there since the menu program just ignores it. But, with your php code and combining those two it seemed to cause a problem probably something to do with the semi-colon I would bet.

I'm glad your code works now :)

Ruth
Post Reply