Search found 7 matches

by alanpollenz
Tue Dec 04, 2007 2:33 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: Sorting in PHP/MySQL Version
Replies: 0
Views: 3587

Sorting in PHP/MySQL Version

In the PHP/MySQL version, is it possible to sort the menu items within a specific menu/submenu, other than by the order the menu/submenu items are placed in the database?

In other words, is there a "sort" field so that a menu item in submenu 6 with a sort order of "1" is placed above a menu item ...
by alanpollenz
Mon Dec 03, 2007 3:03 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: PHP Variables
Replies: 5
Views: 4291

Re: PHP Variables

Interestingly, if I changed the way the script is called from:

<script src="/include/menu_data.php" type=text/javascript></script>

to:

<? include ($basedir.'include/menu_data.php'); ?>

And place <script type="text/javascript"> at the start of menu_data.php and </script> at the end of menu ...
by alanpollenz
Mon Dec 03, 2007 2:46 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: PHP Variables
Replies: 5
Views: 4291

Re: PHP Variables

Hi Ruth,

The actual line from the menu_data.php file is

aI("text=Home;url=http://www.newwaveswimteam.org/index.php?name=<?php echo $this_first_name; ?>;");

I have tried it both that way and as follows:

aI("text=Home;url=http://www.newwaveswimteam.org/index.php?name=<? echo $this_first_name ...
by alanpollenz
Sun Dec 02, 2007 8:55 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: PHP Variables
Replies: 5
Views: 4291

Re: PHP Variables

Hi Ruth,

That did not work, but thanks for the suggestion. The reason the address bar showed "http://www.newwaveswimteam.org/index.php?name='%3C?php%20echo%20$this_first_name;%20?%3E'" is because with the single quotes around <?php echo $this_first_name; ?> php reads $this_first_name as a literal ...
by alanpollenz
Sat Dec 01, 2007 6:01 am
Forum: Help & Support for DHTML Menu Version 5+
Topic: PHP Variables
Replies: 5
Views: 4291

PHP Variables

I have been through the forums this evening trying all the solutions to this problem. For the life of me, I cannot get a php variable into the menu.

Here is the code from my main page:

<!-- START NAVIGATION -->
<? print $this_first_name.'<br>'; ?>
<script src="<? echo $baseurl; ?>/js/milonic_src ...
by alanpollenz
Wed Jul 11, 2007 10:40 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: User Levels and menu items
Replies: 2
Views: 6114

Problem solved!

I had to create a new php file which I call nav.menu.php. I copied all the normal code required to call the menu script into this file, except that rather than include the last line as recommended, I replaced
<script type="text/javascript" src="menu_data.js"></script>
with the ...
by alanpollenz
Wed Jul 11, 2007 5:49 pm
Forum: Help & Support for DHTML Menu Version 5+
Topic: User Levels and menu items
Replies: 2
Views: 6114

User Levels and menu items

I am working on a site for a non-profit organization (a local swim team affiliated with USA Swimming). Users on the site have various user levels (1-9) and permissions based on various flags, such as coach, administrator, etc. The user level and flags are stored as php session variables.

I have ...