Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2007
    Posts
    6
    Plugin Contributions
    0

    Default adding a link to sideboxes

    Hi:

    I have a link htat I would like to add to my sidebox and I do not seem to figure out how to have a link point to a physical file

    Here is what I have done so far.

    1) I found information.php file and have added the following line
    if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a>';
    }

    2) the line item shows up in the side box, BUT how do I connect the link to an actual physical file? I looked adn could not find anything that would allow me to enter the file name? is the actual file name kept in the database?

    in other word, where does the call zen_href_link(FILENAME_FAQ) go to?

    please let me know,

    JOhn

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: adding a link to sideboxes

    I checked a default Zen Cart install and do not fing the term "FILENAME_FAQ" -
    Where did you get this term and/or why did you use it?
    If you created it, then you need to provide the supporting entries.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: adding a link to sideboxes

    hi,

    thanks for a reply. here is a documentiaont of what I did:

    1) located /includes/modules/sideboxes/information.php file
    my goal is to delete more links

    2) looked at how the default links were constructed.

    3) added the following line of code
    if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a>';
    }


    4) I saw the FAQ link on the information sidebox after that.

    5) The problem that I am having is that zen_href_link(FILENAME_FAQ) points to nowhere at this time and I am not sure what should I edit ot have it point to somewhere.

    for example:

    if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
    }

    points to some sort of shipping file which can be edited through the page editor.

    Does anybody know wherezen .href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING points to?

    Thanks

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: adding a link to sideboxes

    Get the "about us" from the sownloads/other section here. There are about 8 edits/files that are required to install it.

    You can learn from this what is required for any other
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: adding a link to sideboxes

    hi:

    Thanks for the lead on the ABOUT US package.

    IS THERE A DOCUMENTATION ON WHY WE NEED TO DO 7 UPDATES TO ENTER ONE PAGE in sideboxes?

    I followed the instruction and could not add the page. I suppose I did something wrong. But doing it blindly without understanding the structure of the zen cart is somwhat ridicuoulous and reminds me of a blinded monkey trying to operate the equipment

    Does anybody know on how to add the link to the sidebox such that it will dsplay on the sidebox?

    thannkyou

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: adding a link to sideboxes

    Does anybody know on how to add the link to the sidebox such that it will dsplay on the sidebox?
    If followed step by step the about us mod adds the page...and it displays.

    Without actually looking - each add/edit is for a reason.

    Fileames.php defines the existance
    html_includes adds the page for editing content
    about_us.php defines the display text associated with this page
    about_us.php other one I think allows it to be enabled/diabled from the admin
    tpl_about_us_default.php makes this available
    header_php.php does something

    Has to do with the structure of some files get the data and others define how it is displayed.
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Change Link Colors for Sideboxes Only
    By carol2848 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jul 2011, 08:48 PM
  2. Adding Spacing to sideboxes
    By anthony decilio in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Dec 2010, 07:53 PM
  3. Link colors in sideboxes
    By vito in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 8 Jul 2010, 11:52 AM
  4. Adding images to sideboxes
    By JuzJoJo in forum Basic Configuration
    Replies: 15
    Last Post: 29 Nov 2008, 07:18 PM
  5. Adding a link to right hand box and adding pages....Please help
    By Ivum in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 24 Mar 2007, 11:45 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