
Originally Posted by
rbarbour
PHP Code:
<?php for ($i=1, $n=sizeof($var_linksList); $i<=$n; $i++) { ?>
<option value="<?php echo $var_linksList[$i]['link'];?>"><?php echo $var_linksList[$i]['name'];?></option>
<?php } ?><?php } // end FOR loop ?>
I think their was a copy and paste error in my version of the code, an extra curly bracket.
see what happens if you remove this:
<?php } // end FOR loop ?>
Yep.. that did the trick!! You rock!!

Originally Posted by
gjh42
PHP Code:
if (!isset($var_links_list)) {
include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
}
This would fetch all ez-page links set for the header; you might actually want a customized version of ezpages_bar_header.php and even customized db fields and admin entry so you can set what appears in this particular menu.
It's a little more than my brain can handle today trying to figure out how to create customized db fields and admin entry for this. It would be nice because this would allow me to set specific EZ Pages JUST for the jump menu.. May eventually spend some time trying to figure out how to apply a sort order to the various menu items..
but that's a later issue/project..
However, I did follow Glenn's advice and created a customized ezpages_bar_header.php for the jump menu (/includes/modules/MY_CUSTOM_TEMPLATE/ezpages_jump_menu_header.php).
The difference is this code:
Code:
// test if bar should display:
if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {
if (isset($var_linksList)) {
unset($var_linksList);
}
was modified as follows:
Code:
// test if bar should display:
if (EZPAGES_STATUS_HEADER_JUMP_MENU == '1') {
if (isset($var_linksList)) {
unset($var_linksList);
}
I added an additional EZ Pages configuration item, and now this will allow me to separate the EZ Pages jump menu display from the EZ Pages Header Menu..
All in all so far this is working as I would like.. Thanks to you both..