PHP-Enable

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
spoloczek@sapo-net.de
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:24 pm

PHP-Enable

Post by spoloczek@sapo-net.de »

I use PHP to dynamically enable menu contents.

Do to this, I had to rename the .js files to .js.php (so the php parser would parse them)

Then I had to change the .js.php files to include:
<SCRIPT LANGUAGE-=JavaScript>
.. file contents
</SCRIPT>

And I had to fix mmenu.js.php line 500-ish to
if ((_d.all
none@given.com
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:24 pm

Re: PHP-Enable

Post by none@given.com »

Whoops, fornot to mention that you now php include() ir require() these .js.php files on your web page.

I'm using php and Mysql and it works!
User avatar
dagon
Advanced
Advanced
Posts: 29
Joined: Wed May 29, 2002 10:00 pm
Location: Udine, ITALY
Contact:

Re: PHP-Enable

Post by dagon »

:cry: I tried to do this but don't works for me! The menu doesn't load and all browsers return errors and this string: ");for(x=0;x
I'using winXP and PHP 4.1.1. But I think the problem is that in mmenu.js there is a </script> tag before the right end of the script and the browser truncates the javascript. Any solution???
User avatar
dagon
Advanced
Advanced
Posts: 29
Joined: Wed May 29, 2002 10:00 pm
Location: Udine, ITALY
Contact:

Re: PHP-Enable

Post by dagon »

adding to my previous post: i use milonic version 3.4.07 and the problem is on row 474 where the </script> tag lies: if i remove the line the "phpization" works fine on opera and netscape but non on IE...
Post Reply