Results 1 to 3 of 3
  1. #1

    application error Social Bookmarking with Aboslute Links Sidebox

    I am trying to add my Add This social bookmarking code to the Absolute Links Sidebox add on.

    I was able to install the Absolute Links Sidebox no problem, please see the sidebox here (labeled: Social Bookmarking): http://www.lasilhouettelingerie.com/store/index

    Here is the page that I am supposed to add my link to:
    Code:
    <?php
    /**
     * Absolute Links Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2007 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_absolute_links.php  2007-07-09 06:06:06Z tolefairy
     *
     */
    
    $content = '<div id="absolutelinksContent" class="sideBoxContent centeredContent">';
    
    /* Your html and/or javascript code goes between the 2 single quotes in the next line */
    $content .= '';
    
    $content .= '</div>';
    
    ?>
    As you can see all I have to do is put my javascript or html code inbetween the single line quotes for $content. But when I past my code into this box everything below this line does not show including the box.

    This is the code I am trying to paste into the $content area above:
    Code:
    <!-- AddThis Button BEGIN -->
    <script type="text/javascript">addthis_pub  = 'MYUSERNAMEHERE';</script>
    <a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/button1-bm.gif" width="125" height="16" border="0" alt="" /></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
    <!-- AddThis Button END -->
    Anyone know why this social bookmarking code is incompatible with the php page above. The line says that it will accept javascript or html? I don't know how to convert this that may be the problem.

    Any help would be much appreciated!

  2. #2

    Default Re: Social Bookmarking with Aboslute Links Sidebox

    Anyone have any suggestions?

  3. #3
    Join Date
    Jul 2008
    Posts
    26
    Plugin Contributions
    0

    Have a Drink Re: Social Bookmarking with Aboslute Links Sidebox

    I thought I would add my input to the ADDTHIS link. I wanted mine on the sidebox under the MORE INFORMATION navigation link (photo attached) AND I wanted it listed 1st under the MORE INFORMATION navigation heading (which is LEARN MORE for our site).

    I copied: /includes/templates/template_default/sideboxes/tpl_more_information.php

    to /includes/templates/MYTEMPLATE/sideboxes/tpl_more_information.php


    The code for the original file:
    <?php
    /**
    * Side Box 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_more_information.php 2982 2006-02-07 07:56:41Z birdbrain $
    */
    $content = '';
    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n" ;
    $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n" ;
    for ($i=0; $i<sizeof($more_information); $i++) {
    $content .= '<li>' . $more_information[$i] . '</li>' . "\n" ;
    }

    $content .= '</ul>' . "\n" ;
    $content .= '</div>';
    ?>


    AND HERE IS WHAT I ADDED (in red):
    NOTE: I have the link with stats so the code (that you get from addthis) maybe a little different from what I have.

    <?php
    /**
    * Side Box 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_more_information.php 2982 2006-02-07 07:56:41Z birdbrain $
    */
    $content = '';
    $content .= '<!-- AddThis Button BEGIN -->
    <a class="addthis_button" href="http://addthis.com/bookmark.php?v=250&amp;pub=THISWOULDBEYOURURLFORADDTHIS"><img src="http://s7.addthis.com/static/btn/v2/lg-bookmark-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=THISWOULDBEYOURURLFORADDTHIS"></script>
    <!-- AddThis Button END --><br /><br />';

    $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n" ;
    $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n" ;
    for ($i=0; $i<sizeof($more_information); $i++) {
    $content .= '<li>' . $more_information[$i] . '</li>' . "\n" ;
    }

    $content .= '</ul>' . "\n" ;
    $content .= '</div>';
    ?>


    Hope this helps you folks out there!Attachment 6498
    Attached Images Attached Images  
    Last edited by Girdy74; 22 Sep 2009 at 11:15 PM. Reason: edited attached image

 

 

Similar Threads

  1. v151 Social Bookmarking Plugin
    By SilverHD in forum All Other Contributions/Addons
    Replies: 26
    Last Post: 13 Apr 2014, 01:38 AM
  2. Support thread: Social Bookmarking/Social Shopping
    By swguy in forum All Other Contributions/Addons
    Replies: 100
    Last Post: 27 Oct 2010, 04:09 AM
  3. Social Bookmarking??
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Oct 2010, 06:41 AM
  4. Social Bookmarking
    By kburner in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 26 Jun 2009, 05:10 AM
  5. social bookmarking
    By lieven23 in forum General Questions
    Replies: 1
    Last Post: 14 Mar 2009, 09:17 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