Thread: Date sidebox

Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Date sidebox

    Is there a sidebox for just displaying the date on all pages? Just like the search_header.php sidebox is but instead of search it is just the current date.
    This is probably not something hard, I am just new to using Zen Cart and could not find any topics on this.

    Any help is appreciated.

    Thanks,
    Travis Cooley
    tcooley2003######################

  2. #2
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Date sidebox

    Quote Originally Posted by tcooley2003 View Post
    Is there a sidebox for just displaying the date on all pages? Just like the search_header.php sidebox is but instead of search it is just the current date.
    This is probably not something hard, I am just new to using Zen Cart and could not find any topics on this.

    Any help is appreciated.

    Thanks,
    Travis Cooley
    tcooley2003######################
    You can try the contact information sidebox from the downloads section.

    You can modify it to suit your needs

    Another possibility is the Blank sidebox

  3. #3
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Date sidebox

    The contact information sidebox I am already using and not sure how to use a second one or really how to edit it. Like I said I am fairly new to this so I am learning the coding as I go.

    The blank sidebox seems like it would work, but I am unsure how to get it to display without the header and header background or how to get the date into that area.

    Thanks for the reply though.

  4. #4
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Date sidebox

    I have still been unable to get this to work how I want it to. I cannot seem to get the customization options for the blank sidebox to work correctly.

    If it is possible to display the date in the upper right corner of the sceen straight across from the "Home | Login |" links that would be even better than the sidebox but I am unsure how hard that is or how to do it.

    Any help is appreciated.

    tcooley2003######################
    http://scentfrommetoyou.com/

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Date sidebox

    Quote Originally Posted by tcooley2003 View Post
    I have still been unable to get this to work how I want it to. I cannot seem to get the customization options for the blank sidebox to work correctly.

    If it is possible to display the date in the upper right corner of the sceen straight across from the "Home | Login |" links that would be even better than the sidebox but I am unsure how hard that is or how to do it.

    Any help is appreciated.

    tcooley2003######################
    http://scentfrommetoyou.com/
    Open includes/templates/YOUR_TEMPLATE/common/tpl_header.php

    Find the following section of code:

    Code:
    <div id="navMain">
        <ul class="back">
        <li><?php echo date("F j, Y"); ?></li>
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    Add the portion indicated as highlighted

    Save the file and upload to your server

  6. #6
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Date sidebox

    Thank you for your help Clyde. This is way farther than knew to do. However, is there a way to move it to the far right of the page?

    With this code you gave me it shows (Date) | Home | Login. I would like Home | Login to appear on the left like normal and the date to appear in the opposite righthand side of the screen.

    Thanks again for your help.

    tcooley2003
    www.scentfrommetoyou.com

  7. #7
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Date sidebox

    Quote Originally Posted by tcooley2003 View Post
    Thank you for your help Clyde. This is way farther than knew to do. However, is there a way to move it to the far right of the page?

    With this code you gave me it shows (Date) | Home | Login. I would like Home | Login to appear on the left like normal and the date to appear in the opposite righthand side of the screen.

    Thanks again for your help.

    tcooley2003
    www.scentfrommetoyou.com
    Sure, You need to just make the following changes:

    Find the following code in tpl_header.php

    Code:
    <div id="navMain">
        <ul class="back">
        <li><?php echo date("F j, Y"); ?></li>
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';
    and change it as follows:

    Code:
     <div class="forward"><li><?php echo date("F j, Y"); ?></li></div>
    <div id="navMain">
        <ul class="back">
       
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';
    save the edited file and upload to your server

  8. #8
    Join Date
    Oct 2007
    Posts
    18
    Plugin Contributions
    0

    Default Re: Date sidebox

    Works perfect! Thanks for all your help Clyde.

  9. #9
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Date sidebox

    Quote Originally Posted by tcooley2003 View Post
    Works perfect! Thanks for all your help Clyde.
    Glad to help

 

 

Similar Threads

  1. order delivery date addon - date not showing in checkout
    By jagall in forum Addon Shipping Modules
    Replies: 4
    Last Post: 19 Oct 2017, 09:09 PM
  2. Sales or Specials with Time and Date (instead of date only) Expiration
    By townsend2009 in forum Setting Up Specials and SaleMaker
    Replies: 3
    Last Post: 29 Jan 2015, 07:56 PM
  3. List products by arrival date in sidebox?
    By aalejandre in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 28 Sep 2014, 07:27 AM
  4. Replies: 5
    Last Post: 17 Mar 2010, 06:36 PM
  5. Easy Populate and the Date added updated to todays date issue.
    By cyphercys in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 9 Mar 2010, 04:26 AM

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