Results 1 to 10 of 30

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Gaining control over header menu

    Quote Originally Posted by BassFace View Post
    Could someone give this a try before I submit it as a Contribution and post back here with their results?

    HeaderMenuControl.zip

    Thanks!
    You've only provided one file to be uploaded.

    As a general rule you should provide ALL the files necessary for the mod to work.
    • admin/categories.php
    • admin/includes/modules/category_product_listing.php
    • admin/includes/languages/english/extra_definitions/header_menu_control.php
    • includes/modules/categories_tabs.php

    (Just make sure you've add comments to the changed files where you made the edits:
    //BOF header menu control

    //EOF header menu control

    provide the necessary sql file (header_menu_control.sql)

    Make sure you note in the readme.txt file that the mod does overwrite 3 core files.

    Make sure you include an install.txt file with the mod. (this is in addition to the html files

  2. #2
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    Quote Originally Posted by clydejones View Post
    You've only provided one file to be uploaded.

    As a general rule you should provide ALL the files necessary for the mod to work.
    • admin/categories.php
    • admin/includes/modules/category_product_listing.php
    • admin/includes/languages/english/extra_definitions/header_menu_control.php
    • includes/modules/categories_tabs.php

    (Just make sure you've add comments to the changed files where you made the edits:
    //BOF header menu control

    //EOF header menu control

    provide the necessary sql file (header_menu_control.sql)

    Make sure you note in the readme.txt file that the mod does overwrite 3 core files.

    Make sure you include an install.txt file with the mod. (this is in addition to the html files
    OK, I'll make those changes and package it up agian. I'm used to doing MOD work for phpbb3, and followed their packaging guidelines, (and borrowed their xml/xsl form for install files, too LOL).

  3. #3
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Gaining control over header menu

    Quote Originally Posted by BassFace View Post
    OK, I'll make those changes and package it up agian. I'm used to doing MOD work for phpbb3, and followed their packaging guidelines, (and borrowed their xml/xsl form for install files, too LOL).
    Check this article in the Tutorials/FAQ section

    www.zen-cart.com/tutorials/index.php?article=11

  4. #4
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    Quote Originally Posted by clydejones View Post
    Check this article in the Tutorials/FAQ section

    www.zen-cart.com/tutorials/index.php?article=11
    Wow, compared to phpBB3, those are some pretty sparse requirements, LOL.

  5. #5
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    OK, I've repackaged the mod files, in the manner clydejones suggested. Thanks again!

    HeaderMenuControl.zip

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Gaining control over header menu

    Quote Originally Posted by BassFace View Post
    OK, I've repackaged the mod files, in the manner clydejones suggested. Thanks again!

    HeaderMenuControl.zip
    This is much better.

    The mod works just fine. I set it up on my local server without problems.

    One thing to change in the "install.txt"

    Change this:

    #
    #-----[ SQL ]------------------------------------------
    #
    Run the header_menu_control.sql file in the SQL window of your database manager.

    To This:

    # run the header_menu_control.sql file using the Zen-Cart Sql Patches tool
    # (admin -> tools -> install sql patches)
    # For best results, copy-and-paste the code into the query field and press 'Send'.

  7. #7
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    Quote Originally Posted by clydejones View Post
    This is much better.

    The mod works just fine. I set it up on my local server without problems.

    One thing to change in the "install.txt"

    Change this:

    #
    #-----[ SQL ]------------------------------------------
    #
    Run the header_menu_control.sql file in the SQL window of your database manager.

    To This:

    # run the header_menu_control.sql file using the Zen-Cart Sql Patches tool
    # (admin -> tools -> install sql patches)
    # For best results, copy-and-paste the code into the query field and press 'Send'.
    Cool, I'll make that change and submit the contribution. Glad it installed and worked easily for you. Thank you for trying it out. Nice to see another Colorado resident here, too.

  8. #8
    Join Date
    Jan 2005
    Location
    Aurora, CO USA
    Posts
    75
    Plugin Contributions
    1

    Default Re: Gaining control over header menu

    Quote Originally Posted by clydejones View Post
    Just make sure you've add comments to the changed files where you made the edits:
    //BOF header menu control

    //EOF header menu control
    How should I comment replaced code? ie. a sql select statement in category_product_listing.php is changed from
    PHP Code:
    $categories $db->Execute("select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status 
    to this
    PHP Code:
    $categories $db->Execute("select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status, c.menu_status 
    Should I comment out the entire original code block and then add mine in with the //BOF...//EOF comments?

    Thanks for your help, by the way!

  9. #9
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Gaining control over header menu

    Quote Originally Posted by BassFace View Post
    How should I comment replaced code? ie. a sql select statement in category_product_listing.php is changed from
    PHP Code:
    $categories $db->Execute("select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status 
    to this
    PHP Code:
    $categories $db->Execute("select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status, c.menu_status 
    Should I comment out the entire original code block and then add mine in with the //BOF...//EOF comments?

    Thanks for your help, by the way!
    I'd just do this

    Code:
    //Header Control Menu changed 11/16/2009
    $categories = $db->Execute("select c.categories_id, cd.categories_name, cd.categories_description, c.categories_image, c.parent_id, c.sort_order, c.date_added, c.last_modified, c.categories_status, c.menu_status  
    //Header Control Menu

 

 

Similar Threads

  1. v151 Control over layout of attributes?
    By Naldinho in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 27 Apr 2013, 10:15 PM
  2. Header Menu Control (Category Tabs)
    By iddy in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Jun 2010, 04:39 PM
  3. Control over products
    By illuvatar in forum Managing Customers and Orders
    Replies: 0
    Last Post: 27 Jun 2006, 06:58 PM

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