Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    May 2009
    Posts
    12
    Plugin Contributions
    0

    Default I want to add the AddThis bar to every page.

    I'd like to add the AddThis social networking bar to all my pages without copy->pasting it a million times. The side bar on the right that pops up when you add something using EZ pages and select sidebar I think would be a good location for the bar (if youre unfamiliar with AddThis its on my main page) How can I add HTML in that box?
    TurboFabSupply.com - Turbo Accessories - T-Bolt Clamps, Silicone Hose, Intercoolers, and more!

  2. #2
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: I want to add the AddThis bar to every page.

    You can add it to your tpl_footer.php and it will show on all your pages.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  3. #3
    Join Date
    May 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: I want to add the AddThis bar to every page.

    I did that for now but I dont think it quite emphasizes the feature as much as I'd like it too.
    TurboFabSupply.com - Turbo Accessories - T-Bolt Clamps, Silicone Hose, Intercoolers, and more!

  4. #4
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: I want to add the AddThis bar to every page.

    you can download this side box and insert the code.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  5. #5

    red flag Re: I want to add the AddThis bar to every page.

    There should be a way that we just add the code once for 'AddThis' and 'AddThis' button should be shown on each product page. Can anyone help? Suppose AddThis button code is as follows:

    <!-- AddThis Button BEGIN -->
    <a href="http://www.addthis.com/bookmark.php?v=250&pub=mnaeemsattar" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=mnaeemsattar"></script>
    <!-- AddThis Button END -->

    But where should I add this code that this button may display on each product/category page???
    Muhammad Naeem Sattar
    http://buy92.com
    http://itgenes.com

  6. #6
    Join Date
    Nov 2007
    Posts
    34
    Plugin Contributions
    0

    Default Re: I want to add the AddThis bar to every page.

    I put it right in the tpl_product_info_display.php as shown. This shows the ShareThis code but it works with AddThis also. This places it below the Manufactuer's name but you can try it elsewhere in the template. I found this to be the most fluid. Now it shows on every product page.

    <!--bof Product details list -->
    <?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
    <ul id="productDetailsList" class="floatingBox back">
    <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?>
    <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>

    <br></br>
    <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=a26bc676-6dfe-4e23-bfe1-5e25f6aa2dc7&amp;type=website"></script>


    </ul>
    <br class="clearBoth" />
    <?php
    }
    ?>
    <!--eof Product details list -->

  7. #7

    Default Re: I want to add the AddThis bar to every page.

    includes/templates/template_default/templates/tpl_product_info_display.php

  8. #8
    Join Date
    Jul 2009
    Location
    Melbourne, Australia
    Posts
    80
    Plugin Contributions
    0

    Default Re: I want to add the AddThis bar to every page.

    Wouldn't this javascript cause a problem with a 'Warning, insecure content' message popping up when viewing pages in Internet Explorer?

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: I want to add the AddThis bar to every page.

    If you're going to put it inside the <ul> it needs to be a list item.
    PHP Code:
    <?php echo (($flag_show_product_info_manufacturer == and !empty($manufacturers_name)) ? '<li>' TEXT_PRODUCT_MANUFACTURER $manufacturers_name '</li>' '') . "\n"?>

    <li>
    <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=a26bc676-6dfe-4e23-bfe1-5e25f6aa2dc7&amp;type=website"></script></li>

    </ul>
    <br class="clearBoth" />
    <?php
    }
    ?>
    <!--eof Product details list -->
    If you don't want it to be a list item, keep it outside the <ul>.
    PHP Code:
    <?php echo (($flag_show_product_info_manufacturer == and !empty($manufacturers_name)) ? '<li>' TEXT_PRODUCT_MANUFACTURER $manufacturers_name '</li>' '') . "\n"?>
    </ul>

    <br></br>
    <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=a26bc676-6dfe-4e23-bfe1-5e25f6aa2dc7&amp;type=website"></script>

    <br class="clearBoth" />
    <?php
    }
    ?>
    <!--eof Product details list -->
    The product info page should not be a secure page, so why would IE throw a warning?

  10. #10
    Join Date
    Jul 2009
    Location
    Melbourne, Australia
    Posts
    80
    Plugin Contributions
    0

    Default Re: I want to add the AddThis bar to every page.

    Quote Originally Posted by gjh42 View Post
    The product info page should not be a secure page, so why would IE throw a warning?
    Good point.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Addthis button on every product page?
    By sjbglx in forum General Questions
    Replies: 2
    Last Post: 24 Oct 2010, 11:16 AM
  2. How add announcement/notice to the top of every page on website?
    By Treasuresbycaz in forum General Questions
    Replies: 3
    Last Post: 17 Dec 2009, 04:01 PM
  3. Want to change pretty much every font on the main page
    By canemasters in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Feb 2008, 12:51 PM
  4. add to cart box on every item on my home page near the details button
    By crash_bandicoot in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 Feb 2008, 08:23 PM
  5. want to add a comments tag to every page
    By bumba000 in forum General Questions
    Replies: 9
    Last Post: 13 Jun 2007, 10:07 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