Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default HOWTO: Create a custom 403 Error Page in Zen Cart Format

    I am using cpanel from my webpage. Go to Error pages so that you can create your new error page. You can use severl request commands to display information reguarding the users information and what type of error page they generated. The commands are:

    <!--#echo var="HTTP_REFERER" -->
    <!--#echo var="REMOTE_ADDR" -->
    <!--#echo var="REQUEST_URI" -->
    <!--#echo var="HTTP_HOST" -->
    <!--#echo var="HTTP_USER_AGENT" -->
    <!--#echo var="REDIRECT_STATUS" -->
    Next go to your zencart site in admin>tools>ez pages. Create a new page and you can use the commands to create any style page you want to display the error page the yeah you want. This is what I used.

    <p><b><font size="5" face="Tahoma">Forbidden <!--#echo var="REDIRECT_STATUS" --></font></b></p>
    <p><font face="Tahoma" size="2"><!--#echo var="HTTP_HOST" --><!--#echo var="REQUEST_URI" --></font></p>
    <p><font face="Tahoma" size="2">Your Browser and IP information has been logged.</font></p>
    <p><font face="Tahoma" size="2" color="#FF0000">1. <!--#echo var="HTTP_USER_AGENT" --><br>
    2. <!--#echo var="REMOTE_ADDR" --></font></p>
    <p><font face="Tahoma" size="2">Sorry for the inconvenience, please use the
    categories column and/or the search bar to help you find what you are looking
    for. You can also use <font color="#0099FF"><b>
    <a href="http://www.batteriesinaflash.com/index.php?main_page=page&id=12&chapter=0" style="text-decoration: none">
    Battery Central</a> </b></font>to help find batteries for laptops, cell phones, ipods, mp3 player, digital
    cameras, camcorders, dvd players and power tools</font></p>
    <p><font face="Tahoma" size="2">Thank you,<br>
    Team BatteiesInAFlash.com, Inc.</font></p>
    I also placed in the title of the expage the error name and the error command to place the code in the title as following.
    Forbidden <!--#echo var="REDIRECT_STATUS" -->
    Save the ezpage and make sure it can reached for the sidebar or footer. Go to your webpage and select the error page from the sidebar or footer. Once it loads right click on the page and select View Source. Copy the source once it is displayed. Go back to the error page editor in cpanel and paste the code in the editor. Save the page and then go to your siteand type in a url from your website that in locked from outsiders from seeing such as your images directory. You should get your new error page with your site still showing.

    You can use the same code and steps that you used for this page to recreate the other error pages. Just change the title name in the header and description to match each page. Here is the result http://www.batteriesinaflash.com/images/.

    Once you have finished making your error pages, simply delete the ezpage you used to create the temporary pages.
    User of zencart

  2. #2
    Join Date
    Jul 2004
    Location
    Las Vegas
    Posts
    477
    Plugin Contributions
    0

    Default Re: HOWTO: Create a custom 403 Error Page in Zen Cart Format

    This is just an update to my previous post. I noticed how many errors I placed in there so I wanted to clean it up so I dont appear to be an educated person more than I already have. lol

    <div><p><b><font size="5" face="Tahoma">Forbidden 403</font></b></p>
    <p><font size="2" face="Tahoma">You don't have permission to access <b>batteriesinaflash.com/images/</b> on this server.</font></p>
    <p><font size="2" face="Tahoma">Your Browser and IP information has been logged.</font></p>
    <p><font size="2" face="Tahoma" color="#ff0000">1. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7<br/>
    2. 68.104.53.20</font></p>
    <p><font size="2" face="Tahoma">Sorry for the inconvenience, please use the
    categories column and/or the search bar to help you find what you are looking
    for. You can also use <font color="#0099ff"><b>
    <a style="text-decoration: none;" href="http://www.batteriesinaflash.com/index.php?main_page=page&id=12&chapter=0">
    Battery Central Search</a> </b></font>to help find batteries for laptops, cell phones, ipods, mp3 player, digital
    cameras, camcorders, dvd players and power tools</font></p>
    <p><font size="2" face="Tahoma">Thank you,<br/>
    Team BatteriesInAFlash.com, Inc.</font></p></div>
    This is what the result will be once you have tried my suggestion.

    Forbidden 403 Error Page for BatteriesInAFlash.com
    Last edited by batteryman; 22 Oct 2007 at 08:02 PM. Reason: wrong method of displaying
    User of zencart

 

 

Similar Threads

  1. Replies: 1
    Last Post: 10 Dec 2010, 08:40 PM
  2. Setting up Zen Cart on Windows XP using Xampp - a howto
    By Briank58 in forum Installing on a Windows Server
    Replies: 92
    Last Post: 2 Dec 2009, 04:56 AM
  3. Create account page format issue
    By ieguana in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Oct 2008, 05:57 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