Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:13

yet another scriptpath problem


Poster: GroverDill
Dated: Thursday September 11 2003 - 21:26:56 BST

Hi, I'm a bit of a newbie with your menus, and, up to this point, still haven't gotten the menu to appear. I am confused about the path structure that the menus are looking for.

I am looking to use the menus for my personal admin pages at http://www.jesush.com/admin/ (this folder is password protected, so you won't be able to monitor my progress). Just for grins, I uploaded all the menu data files to /www/jesush/admin/menu/ (there were 4 files). Thus, I am trying to use the menu files stored in /www/jesush/admin/menu/ from html files stored at /www/jesush/admin/.

For the last half hour, I have been tinkering with various combinations of scriptpath, the path in the script tags of my html files, and placement of the two <SCRIPT> tags in my html file, and I've ended up with bupkis. It doesn't look like I'm getting any errors, just no menu.

If someone could walk me through this, I'd appreciate it...

Thanks,
Grover Dill


Poster: John
Dated: Thursday September 11 2003 - 21:31:35 BST

Given what you describe...

scriptpath="/admin/menu/";

For more help with your HTML we'll need some kind of access to see your code.

oh, okay...


Poster: GroverDill
Dated: Thursday September 11 2003 - 21:50:38 BST

Thanks for you prompt response to this. I really appreciate it.

I set it to /admin/menu/ with no luck.

I went ahead and took off password protection since, let's be honest, I have literally nothing on these pages worth stealing. Again, the file in question is:

http://www.jesush.com/admin/index.php

and the menu files are stored in

http://www.jesush.com/admin/menu/

I should mention again that I really tried to figure this out on own... oh well.

Thanks for your efforts!


Poster: Andy
Dated: Thursday September 11 2003 - 21:56:44 BST

http://www.jesush.com/admin/menu/menu_data.php can't be found, this is definately the problem.

Quick question though. Where are you getting menu_data.php from? It should be menu_data.js as per the download.

Your the second person today that has used menu_data.php in a sample so I'm now thinking something could be wrong with the downloads.

Regards
Andy

BTW - You have paid support and can use the request help form from the main site for your account.


Poster: John
Dated: Thursday September 11 2003 - 21:59:47 BST

Change menu_data.php in your JS call to menu_data.js :!:

Also, while they should be fine where they are in the <head>, I personally like to see the 2 JS calls as the first items after <body>.

Thanks for the access.


Poster: John
Dated: Thursday September 11 2003 - 22:02:17 BST

Andy, in the files I just got earlier it is a .js.


Poster: Andy
Dated: Thursday September 11 2003 - 22:05:48 BST

Yeah, same as what I got too.

Could be getting it from the Milonic home page, which is fine, as long as I know that's where it came from. :?:


- Andy

Yippee!


Poster: GroverDill
Dated: Thursday September 11 2003 - 22:06:04 BST

Thanks for your help! That was the issue!

I got the "menu_data.php" reference directly out of the install.txt that I downloaded from you guys. I was looking for a quick and dirty tutorial type deal to get this up and running, and that's where I found one.

I wasn't aware of the other support option for this. I'll have to check it out if I have other issues. Although, I have to say, this method seems to work pretty well... :-)

Thanks again! I'm so happy, I could quilt a big happy blanket! Or something...


Poster: Andy
Dated: Thursday September 11 2003 - 22:08:29 BST

From the install text eh?

Was that you John :P


Poster: Andy
Dated: Thursday September 11 2003 - 22:10:33 BST

It's OK, I got it, twas me :oops:

And to think for a second there I might have questioned Johns editing skills :roll:

:lol: :lol:


Poster: John
Dated: Thursday September 11 2003 - 22:18:27 BST

Remember - you're also the fellow who couldn't spell Milonic (at least once)... :lol:

OTOH, I missed the .php thing. Ratsafrazz...


Poster: Andy
Dated: Thursday September 11 2003 - 22:21:38 BST

LMAO - Where was that?


Poster: John
Dated: Thursday September 11 2003 - 22:25:01 BST

Pretty sure it was one of the URLs in the ReadMe.


Poster: John
Dated: Thursday September 11 2003 - 22:26:38 BST

BTW, it's really great having you back in here. You tryin' to catch up to our numbers :?:


Poster: Andy
Dated: Thursday September 11 2003 - 22:32:11 BST

I've just been so busy with the formal stuff it's nice to have a bit of fun and do some of the other for a change.

I was supposed to have seen the new Italian Job movie tonight (got free tickets from Mini and all) but with what happened on Friday couldn't go, been catching up with everything. Like you say matey, I gotta get a life soon :cry:

Oh, Sorry about this GroverDill - We'll be gone soon :D

--- Andy


Poster: bonewalker
Dated: Monday September 15 2003 - 17:55:16 BST

What if I need that file to be named menu_array.php? As long as that page exists, will I encounter any problems?

I am planning on creating my menu dynamically with PHP and a MySQL database. The data changes frequently, so I need the database connection. My script will write the appropriate aI lines and submenu stuff as it goes.

Anyone else tried this and been successful? or unsuccessful?

Thanks,

Bonewalker


Poster: John
Dated: Monday September 15 2003 - 18:00:12 BST

bonewalker wrote:
What if I need that file to be named menu_array.php? As long as that page exists, will I encounter any problems?

No problems at all. One of mine is called xp_data.cfm, for instance.
bonewalker wrote:
Anyone else tried this and been successful? or unsuccessful?

Do a search on it here. Many folks are using it.

PHP file names


Poster: jesson
Dated: Tuesday September 16 2003 - 0:20:34 BST

In the download I made earlier today (Sept 15, RC10) the install.txt file includes instructions to save the data file as a .js. It provides instructions for calling the file that still list it as .php.

These instructions do not include the scriptpath instruction, so I presume that they have been revised quite recently.

Would it be possible to get a complete copy of the installation instructions posted here in the Forum? As revisions are made, the new instructions could be posted in their place.

Just a thought. Thanks for all your hard work.

Nick :)


Poster: Hergio
Dated: Tuesday September 16 2003 - 4:49:02 BST

The .php has been changed to .js, it was a slight error.
Posting the docs on the forum may not be the best idea, that would mean we'd be maintaining them in more than one place. Its hard enough maintaining one, hehe.
Bare with us for the moment, we are still in the RC stages, so there are still alot of changes going on...documenting them all would get crazy. Once the final release is out, then there will be changelogs and a central place to see anything related to different versions of the new menu. But right now, development is still the top priority. Then will come chronological documentation.

Re: PHP file names


Poster: John
Dated: Tuesday September 16 2003 - 14:36:04 BST

jesson wrote:
In the download I made earlier today (Sept 15, RC10) the install.txt file includes instructions to save the data file as a .js. It provides instructions for calling the file that still list it as .php.

As Dave mentioned, that slip has already been fixed. A few messages up you'll see one from me indicating you can actually use any suffix you need depending on how you're putting your menu together.
jesson wrote:
These instructions do not include the scriptpath instruction, so I presume that they have been revised quite recently.

They were revised yesterday. The scriptpath parameter is no longer used, now replaced by the changes in the JS calls.
jesson wrote:
Would it be possible to get a complete copy of the installation instructions posted here in the Forum? As revisions are made, the new instructions could be posted in their place.

Dave got that one, and I agree. On the main site Andy kept detailed track of everything done to v3, and he will do so again as soon as v5 is out of RC.


Poster: bonewalker
Dated: Tuesday September 16 2003 - 16:39:04 BST

Hi Guys,

Ran into a snag. Can anyone tell me what I am doing wrong?

Quote:
A few messages up you'll see one from me indicating you can actually use any suffix you need depending on how you're putting your menu together.


The quote above was true. I changed the extension of my menu_data to .php, then called that file, and the menu worked fine.

However, when I actually put some php code into the page, the menu does not appear, and I get no php error messages or anything.

Any ideas? My code is below:

Code:
<?
include "dbconnect.php";
echo "file loaded";
$sql="select * from directories order by lname";
$result = db_query($sql);
   while ($record = get_record($result))
   {
   $lname=$record[lname];
   $fname=$record[fname];
   $ext=$record[extension];
   $email=$record[email];
   $dept_id=$record[dept_id];
   $send_quote.= "aI(\"text=$lname,$fname $ext;url=$email;separatorsize=1;itemwidth=25;align=center\")";
   }
?>

effect="Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
_menuCloseDelay=500;
_menuOpenDelay=150;
_scrollAmount=3;
_scrollDelay=20;
_followSpeed=5;
_followRate=40;
_subOffsetTop=4;
_subOffsetLeft=0;



with(style1=new mm_style()){
offcolor="#ffffff";
offbgcolor="#CD5806";
oncolor="#ffffff";
onbgcolor="#00204e";
bordercolor="#666699";
borderstyle="solid";
bordercolor="#666699";
fontsize=10;
fontstyle="normal";
fontweight="bold";
fontfamily="Verdana, Arial";
padding=5;
subimage="";
high3dcolor="#66ffff";
low3dcolor="#000099";
pagecolor="Purple";
pagebgcolor="pink";
headercolor="#ffffff";
headerbgcolor="#000099";
separatorcolor="#333333";

}

with(milonic=new menuname("mainmenu")){
borderwidth=1;
style=style1;
alwaysvisible=1;
alignment="left";
followscroll=0;
orientation="vertical";
aI("text=B&nbsp;&nbsp;showmenu=b;separatorsize=1;itemwidth=25;align=center")
aI("text=C&nbsp;&nbsp;showmenu=c;separatorsize=1;itemwidth=25;align=center")
aI("text=E&nbsp;&nbsp;showmenu=e;separatorsize=1;itemwidth=25;align=center")
aI("text=F&nbsp;&nbsp;showmenu=f;separatorsize=1;itemwidth=25;align=center")
aI("text=G&nbsp;&nbsp;showmenu=g;separatorsize=1;itemwidth=25;align=center")
aI("text=H&nbsp;&nbsp;showmenu=h;separatorsize=1;itemwidth=25;align=center")
aI("text=N&nbsp;&nbsp;showmenu=n;separatorsize=1;itemwidth=25;align=center")
aI("text=P&nbsp;&nbsp;showmenu=p;separatorsize=1;itemwidth=25;align=center")
aI("text=S&nbsp;&nbsp;showmenu=s;separatorsize=1;itemwidth=25;align=center")
}

with(milonic=new menuname("b")){
itemwidth=175;
borderwidth=1;
style=style1;
alignment="left";
aI("text=Joe Blow - 387;separatorsize=1")
}

with(milonic=new menuname("c")){
itemwidth=175;
borderwidth=1;
style=style1;
alignment="left";
aI("text=Joe Chapman - 355;separatorsize=1")
aI("text=Computer Services - 355;showmenu=cs;separatorsize=1")
}

with(milonic=new menuname("e")){
itemwidth=175;
borderwidth=1;
style=style1;
alignment="left";
aI("text=Joe Emerson - 510;separatorsize=1")
aI("text=Joan Emel - 457;separatorsize=1")
<?echo $send_quote;?>
}


I didn't post all the code. But you will notice the php script at the top that makes the database query and assigns the results to a variable called $send_quote. Under menu "e", I tried to echo $sendquote.

Thanks for any help.

Bonewalker

Problem Solved


Poster: bonewalker
Dated: Tuesday September 16 2003 - 16:52:41 BST

Nevermind!

Solved my own problem. :oops:

I had forgotten to start a new line at the end of each item.

Bonewalker


Poster: John
Dated: Tuesday September 16 2003 - 17:57:35 BST

Great that you solved it yourself :!: Not that we can't, but it's got to feel a lot better... :D