Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    Default Adding HTML into Log Off Page

    Hello,
    I would like to add some HTML code into my Log Off page. My Log-Off page currently reads:
    'You have been logged off your account. It is now safe to leave the computer. If you had items in your cart, they have been saved. The items inside it will be restored when you log back into your account.'

    Under this text I would like to add a HTML table which would contain my Amazon Affiliates html code so as to show my customers some related books I recommend. As of now, the page is a complete waste of great real estate.

    Thanks for any help on this.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Adding HTML into Log Off Page

    Copy tpl_logoff_default.php to your custom template, add your HTML to it.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Adding HTML into Log Off Page

    After the closing </div> in my tpl_logoff_default.php file I added my HTML starting with the <body> tag.

    I entered my Amazon Associates code copied from Amazon and finished up with the </body> tag.

    I still only see the default text on the log off page. No Amazon products or anything.

    Any idea what I'm doing wrong?

    Thanks for your help

  4. #4
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Adding HTML into Log Off Page

    Do I need to use echo or print commands in my tpl_logoff_default.php file when inserting my html? I just tried straight html on my first try.

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Adding HTML into Log Off Page

    No, echo is for PHP.

    Did you copy the file to your CUSTOM folder, and have you selected the CUSTOM template?

  6. #6
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Adding HTML into Log Off Page

    Yes. The file is in my CUSTOM folder and I am using the custom template.

  7. #7
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Adding HTML into Log Off Page

    Post the tpl_logoff_default.php you are using.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  8. #8
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Adding HTML into Log Off Page

    <?php
    /**
    * Page Template
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: tpl_logoff_default.php 2975 2006-02-05 19:33:51Z birdbrain $
    */
    ?>
    <div class="centerColumn" id="logoffDefault">

    <h1 id="logoffDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    <div id="logoffDefaultMainContent" class="content"><?php echo TEXT_MAIN; ?></div>

    </div>
    <body>
    <a href="http://www.amazon.com/gp/product/xxxxxxxxxx?ie=UTF8&tag=xxxxxxxxxxxxxxx&linkCode=as2&camp=xxxxx&creative=9325&cre ativeASIN=xxxxxxxxxx"><img border="0" src="xxxxxxxxx_.jpg"></a><img src="http://www.assoc-amazon.com/e/ir?t=xxxxxxxxxx" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />

    <script type="text/javascript" src="http://www.assoc-amazon.com/s/link-enhancer?tag=xxxxxxxxxx">
    </script>
    <noscript>
    <img src="http://www.assoc-amazon.com/s/noscript?tag=xxxxxxxxxx" alt="" />
    </noscript>
    </body>



    I used "xxxx" in the above code where there would have been info I didn't want to expose on the forum.

  9. #9
    Join Date
    Oct 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Adding HTML into Log Off Page

    I figured it out. Dumb mistake on my part... I didn't have the image file uploaded to my server as I thought the code provided by Amazon, used their servers to host the product images for their associate program.

    My bad.

    Thanks everyone for your help.

 

 

Similar Threads

  1. Cannot log into Admin - Blank Page
    By Platinum Place in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 10 Oct 2010, 03:08 PM
  2. Can't log into my admin page
    By elvisstuff in forum Basic Configuration
    Replies: 2
    Last Post: 16 Jan 2010, 08:31 PM
  3. adding extra log-off button
    By sathiy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Sep 2008, 12:57 PM
  4. Log Off Page - link category
    By rich_li_ny in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Sep 2007, 09:05 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