Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Sep 2006
    Posts
    257
    Plugin Contributions
    0

    Default additional link in information sidebox

    i read thread and did the work to add link to sidebox... ok great...
    everything seems to work... except... i dont think it is reading or being directed to the define_size_chart.php file... the page is blank short and only shows Back.....

    these are the steps i took

    used page_4.php
    edited msql to change page4 to Size Chart
    then changed ALL (man there are a lot to change) files related... filename.php, page_4.php, define_page_4, tpl_page_4_default, both define_page_4 , english.php and 1 more i cant seem to remember.. i changed the code inside every file changing from page_4 to size_chart...

    the link shows in the information box.... click on it and a blank page shows up with the Size Chart header... should show text also but it didnt.... then i figure i could add the table code for the size chart and it still doesnt show... went to define pages editor and it shows there... SO, somewhere i didnt direct it to the final page... oh... i also changed the header in languages....


    zen 1.3.6
    only info i found on this was a thread by sarah and it appeared that that was for an earlier zen.. I had to make a few changes for my version... if there is a thread with info for the latest version that would be great so i could double check what I changed.


    thanks in advance.....

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

    Default Re: additional link in information sidebox

    Difficult to fololow you description of what you have done and exactly what you have done:
    edited msql to change page4 to Size Chart
    Try not to make this harder than required....roll back to a standard install if you can and then start by only entering your information through the defines page editor for page_4...mostly to verify that what you are entering is working. When this is functioning correctly and content is displaying as you want, edit the includes/languages/english.php and find:
    Code:
    define('BOX_INFORMATION_PAGE_4', 'Page 4');
    
    and change to 
    
    define('BOX_INFORMATION_PAGE_4', 'Size Chart');
    Now this will get the display as you want and then only if you need to browser descriptions to match also should you go into this. But basically doing this will validate that you have content that displays correctly.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2006
    Posts
    257
    Plugin Contributions
    0

    Default Re: additional link in information sidebox

    kobra.. i wanted to change it from page_4 to size_chart... and i didnt want it in the more information i wanted it in the information... so i followed threads to
    http://www.zen-cart.com/forum/showthread.php?t=14985 it appeared that the thread was for an earlier version.... however, it worked.. or appeared to.. like i said when i click on the link i get a blank page with the correct header... and no chart... i have done lots of html editing in zen before... but never a "table"... so i am not sure if the problem is something i did wrong or the table itself... rolling back to a clean version may be possible.... if all else fails.... altho i will try out your way as well... it would really suck if something so siimple would have done exactly what i wanted ... that thread was a lot of work..... thanx kobra

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

    Default Re: additional link in information sidebox

    so i am not sure if the problem is something i did wrong or the table itself
    Precisely why I recommended that you first get this working as a page even if it initially is Page 4....then you at least know if this is an issue or not. But then I normally take thing in steps by nature.
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2006
    Posts
    257
    Plugin Contributions
    0

    Default Re: additional link in information sidebox

    ok... so i followed things in steps by nature and found that the html code works.... so then the problem is that the link is not being directed to define_size_chart.php. your way appears to be simple.. i could re do what i have done.. however, wouldnt i still have to change the code to have it appear in the information box?

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

    Default Re: additional link in information sidebox

    Yes, but taking a "working" reference from "more info and pasting it into info is the easy part From incl/modules/sideboxes/more_information.php and adding to incl/modules/sideboxes/information.php

    Code:
      if (DEFINE_PAGE_4_STATUS <= 1) {
        $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
      }
    Slight edit to correct the sidebox required
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Sep 2006
    Posts
    257
    Plugin Contributions
    0

    Default Re: additional link in information sidebox

    YAH.. cut in paste is no prob.... did that to begin with to get the size chart there... however.. when i cut and paste the page_2 to information.. it doesnt show up..... maybe i change the name of the "more info box" and leave the page 2 there.... i didnt want so many boxes... but it seems to be the shortest solution......

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

    Default Re: additional link in information sidebox

    Code:
    $more_information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>';
    changing $more_information to $information is where you begin to have to edit the other references also....but if done in steps up to this point, you know that you start with a working code for the box contents.
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Sep 2006
    Posts
    257
    Plugin Contributions
    0

    Default Re: additional link in information sidebox

    everything worked out perfect.. i think i am going to take a nap... everything you pointed out should have been obvious to me.. but it wasnt.. i am going to blame lack of sleep... lol.... thanx for your help once again kobra... this was 100000000 x's easier than the other thread i read... altho my original intention was to add pages... simply applying your theory worked perfect for me...

  10. #10
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: additional link in information sidebox

    well if your looking for one box to contain the contents of info and more info why not use ez pages....hmmm. just write down the links from the info box and then turn it off. Then create links using the ezpages function for internal urls to show those pages then you can add your extra pages as straight ezpages, bonus you can than have the links in more than one place.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Moving an EZ-Page SideBox link to the Information SideBox?
    By JonathonB in forum General Questions
    Replies: 23
    Last Post: 22 Feb 2012, 08:16 PM
  2. Add Additional Page Link to Information Sidebox?
    By shinyo21 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Aug 2010, 03:22 PM
  3. Additional Links to the 'More Information' Sidebox
    By gbnet in forum Basic Configuration
    Replies: 4
    Last Post: 17 Jan 2007, 05:46 AM
  4. add link to Information sidebox
    By earmsby in forum Basic Configuration
    Replies: 1
    Last Post: 14 Dec 2006, 10:59 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