Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Posts
    265
    Plugin Contributions
    1

    Default linking index.php?main_page=about_us to page 3

    redsautorehab.com
    zencart 1.5.6
    PHP 7.0.33

    I was running the Tableau template with 1.5.4, and it has a built in about us page, which I am in the process of setting up on page 3 instead. The bots are trying to access the about us page now, and setting errors in the log folder. In order to avoid the errors, I would like to have it link straight to page 3, but I can't figure out how to do that.

    I would also like to know how to add page 2, and page 3 links to the information box, instead of having them in the more information box.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: linking index.php?main_page=about_us to page 3

    Are you saying you want ?main_page=about_us to redirect to ?main_page=page_3? What is the reason for this? What are the errors/warnings/notices being generated?

    To add the links to other boxes, you'll have to code the links in using the zen_href_link function and likely logic that is present in the more information box.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,017
    Plugin Contributions
    61

    Default Re: linking index.php?main_page=about_us to page 3

    Why change the url, make a defined page to match about us.. I attached the files for you.

    About-Us.zip

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  4. #4
    Join Date
    Apr 2010
    Posts
    265
    Plugin Contributions
    1

    Default Re: linking index.php?main_page=about_us to page 3

    Quote Originally Posted by mc12345678 View Post
    Are you saying you want ?main_page=about_us to redirect to ?main_page=page_3? What is the reason for this? What are the errors/warnings/notices being generated?

    To add the links to other boxes, you'll have to code the links in using the zen_href_link function and likely logic that is present in the more information box.
    Here's the error:
    [10-Dec-2019 06:10:33 UTC] Request URI: /index.php?main_page=about_us, IP address: 17.58.102.35
    #1 require() called at [/home1/redsauto/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:172]
    #2 require(/home1/redsauto/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home1/redsauto/public_html/index.php:102]
    --> PHP Warning: require(includes/templates/template_default/templates/tpl_about_us_default.php): failed to open stream: No such file or directory in /home1/redsauto/public_html/includes/templates/responsive_classic/common/tpl_main_page.php on line 172.

    [10-Dec-2019 06:10:33 UTC] Request URI: /index.php?main_page=about_us, IP address: 17.58.102.35
    #1 require() called at [/home1/redsauto/public_html/includes/templates/responsive_classic/common/tpl_main_page.php:172]
    #2 require(/home1/redsauto/public_html/includes/templates/responsive_classic/common/tpl_main_page.php) called at [/home1/redsauto/public_html/index.php:102]
    --> PHP Warning: require(includes/templates/template_default/templates/tpl_about_us_default.php): failed to open stream: No such file or directory in /home1/redsauto/public_html/includes/templates/responsive_classic/common/tpl_main_page.php on line 172.

    [10-Dec-2019 06:10:33 UTC] PHP Fatal error: require(): Failed opening required 'includes/templates/template_default/templates/tpl_about_us_default.php' (include_path='.:/opt/cpanel/ea-php73/root/usr/share/pear') in /home1/redsauto/public_html/includes/templates/responsive_classic/common/tpl_main_page.php on line 172
    I was planning to make page 3 the about us page.

  5. #5
    Join Date
    Apr 2010
    Posts
    265
    Plugin Contributions
    1

    Default Re: linking index.php?main_page=about_us to page 3

    Quote Originally Posted by mprough View Post
    Why change the url, make a defined page to match about us.. I attached the files for you.

    About-Us.zip

    ~Melanie
    Thank you Melanie. How would I go about adding a link to the about_us page in the information box? That's part of the reason why I was just going to add it to page_3, so that it would have a link to it.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 12 Jul 2016, 04:21 PM
  2. index.php?main_page=create_account is blank / shows a white page
    By Monsunemoon in forum General Questions
    Replies: 1
    Last Post: 29 Jun 2012, 05:28 AM
  3. How to add banner to index.php?main_page=index&cPath=0 ?
    By Alexiss in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Oct 2011, 04:55 PM
  4. Can I change my home page to index.php?main_page=page&id=1 ?
    By Derek_ICD in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Oct 2009, 08:06 PM
  5. Change the index.php?main_page=index and where it links to
    By tqualizer_man in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Nov 2006, 01:41 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR