Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    New Pligger mynameismonkey's Avatar
    Joined
    Feb 2012
    Posts
    16
    OK cool, the addthis code is actually in page_title.tpl at the moment, but I'll try adding them to link_summary.tpl and see what happens. Now to find a good spot for them...

    Thanks for the tip, I'll go try it now.

  2. #12
    New Pligger mynameismonkey's Avatar
    Joined
    Feb 2012
    Posts
    16

    Problem solved, thank you!

    To all who helped, thank you so much, and to cmstheme for the heavy lifting a much bigger THANK YOU :) Moving the addthis code to link_summary.tpl fixed all the issues getting these variables to work.

    Here is the final version of the addthis code I am using including my edits, I shoehorned it into the H2 with a float right and it's working fine.

    <!-- AddThis Button BEGIN -->
    <span class="addthis_toolbox addthis_default_style" style="margin:0 auto !important; width: 155px; float:right;"
    addthis:url="{$my_base_url}{$story_url}"
    addthis:title="{$title_short} @ ciagents.com">
    <a class="addthis_button_preferred_1"></a>
    <a class="addthis_button_preferred_2"></a>
    <a class="addthis_button_preferred_3"></a>
    <a class="addthis_button_preferred_4"></a>
    <a class="addthis_button_compact"></a>
    <a class="addthis_counter addthis_bubble_style"></a>
    </span>
    <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-myid"></script>
    <!-- AddThis Button END -->

  3. #13
    New Pligger mynameismonkey's Avatar
    Joined
    Feb 2012
    Posts
    16
    I should add for future readers that I have moved the javascript line up to pligg.tpl to only load the javascript once per page, so if there are multiple stories on the page I only want to load the javascript once.

    You can see the outcome at http://ciagents.com/u/

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Current user ID
    By ewel in forum Questions & Comments
    Replies: 3
    Last Post: 04-08-2010, 12:27 PM
  2. get current category id
    By mrgekko in forum Questions & Comments
    Replies: 6
    Last Post: 09-11-2008, 07:58 AM
  3. get current category id
    By mrgekko in forum Questions & Comments
    Replies: 0
    Last Post: 07-29-2008, 03:18 PM
  4. How to get the current category
    By johnsmith in forum Questions & Comments
    Replies: 3
    Last Post: 03-07-2007, 04:39 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
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting