Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Creating a Jump Menu using the zen_draw_form function

    Quote Originally Posted by rbarbour View Post
    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 ?>
    Quote Originally Posted by gjh42 View Post
    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.
    Quote Originally Posted by rbarbour View Post
    Glad it worked!



    I am just curious as to why you didn't just add those links as ez-pages with internal links?
    Because I can take advantage of existing code that uses Admin config settings to turn these links on or off.. If the Contact us defined page is turned off, I certainly wouldn't want it displayed in a menu.

    Plus there's another reason.. This way my client doesn't have to know how to create internal EZ Page links.. (this has ALWAYS been problematic.. invariably I have to explain to a client AGAIN how to create EZ Pages using internal links..) PLUS this way the admin settings are in synch with the menu..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Creating a Jump Menu using the zen_draw_form function

    Quote Originally Posted by DivaVocals View Post
    Because I can take advantage of existing code that uses Admin config settings to turn these links on or off.. If the Contact us defined page is turned off, I certainly wouldn't want it displayed in a menu.

    Plus there's another reason.. This way my client doesn't have to know how to create internal EZ Page links.. (this has ALWAYS been problematic.. invariably I have to explain to a client AGAIN how to create EZ Pages using internal links..) PLUS this way the admin settings are in synch with the menu..
    Gotcha.

 

 

Similar Threads

  1. v151 [NOT A BUG] SSL in function zen_draw_form wrong code
    By truonghoang in forum Bug Reports
    Replies: 6
    Last Post: 15 Apr 2014, 10:26 PM
  2. Creating a jump menu for outside links
    By delia in forum General Questions
    Replies: 9
    Last Post: 27 Apr 2010, 01:30 PM
  3. Where does zen_draw_form function definition reside?
    By MaxPowers in forum General Questions
    Replies: 1
    Last Post: 23 May 2007, 12:34 AM
  4. How to done this jump to page function
    By JohnsonY in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 May 2007, 05:41 AM
  5. Creating a drop down menu for the diff type of CC's using zen basic mod.
    By estrange in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 17 Jan 2007, 04:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg