Using variables to reconstruct current URL
-
New Pligger
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.
-
New Pligger
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 -->
-
New Pligger
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/
Similar Threads
-
By ewel in forum Questions & Comments
Replies: 3
Last Post: 04-08-2010, 12:27 PM
-
By mrgekko in forum Questions & Comments
Replies: 6
Last Post: 09-11-2008, 07:58 AM
-
By mrgekko in forum Questions & Comments
Replies: 0
Last Post: 07-29-2008, 03:18 PM
-
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
-
Forum Rules