UBB.Dev
Posted By: Gizmo [7.x] AddThis - Social Networking - 08/01/2008 8:30 AM
Author: Gizmo (James of VNC Web Design)

Requirements:


About:
This will allow you to allow users to bookmark threads on your forums to many online bookmark sites... And best of all, it's a very small mod...

Files Modified:
postlist.tpl
showflat.tpl

Add This Button:
You will need to go to AddThis and sign up for an account, now click the "get button" link and generate a button that is to your liking; you'll need to paste the button code (I prefer the dropdown version myself) into the "-- Paste Your Add This Button Here ---" section in the below code.

An example of the Add This button code is:
Code
<!-- AddThis Button BEGIN -->
<script type="text/javascript">addthis_pub = 'youruserame';</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://s9.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 -->


Install Instructions:
You will need to add this:
Code

<td style"padding-right: 3px;">
--- Paste Your Add This Button Here ---
</td>


After this (in both files):
Code
{if $ishopto}
<td style"padding-right: 3px;">
<table width="100%" class="t_standard">
<tr>
<td class="tdheader" style="cursor: pointer" id="hopto_control" onclick="showHideMenu('hopto_control','hopto_popup')">
{$lang.HOP_TO} <img style="vertical-align: middle" src="{$config.BASE_URL}/images/{$style_array.general}/toggle_open.gif" alt="" />
</td></tr>
</table>
</td>
{/if}



Example: UGN Security, Back of the Web
Posted By: Stephen G Re: [7.x] AddThis - Social Networking - 08/01/2008 9:19 PM
Great stuff Giz

How could I implement this on the Portal?

smile
Posted By: Gizmo Re: [7.x] AddThis - Social Networking - 08/02/2008 1:47 AM
I'm curious where you'd want to shove it on the portal page... If you'd rather have it on every page you could probably just shove it in a custom island...
Posted By: Stephen G Re: [7.x] AddThis - Social Networking - 08/02/2008 1:49 AM
I would like it to appear on each news item that is pulled from the specific forum I've chosen
Posted By: Gizmo Re: [7.x] AddThis - Social Networking - 08/02/2008 5:28 PM
So, you want the "add this" button to appear for every item on the portal?

It sounds kind of redundant... It will only allow the link for the parent page, so if that where ot happen you'd have say 15 buttons (should you have 15 items on the portal) that all link to the portal page...
Posted By: Stephen G Re: [7.x] AddThis - Social Networking - 08/03/2008 4:29 AM
Yeah, I suppose you're right.

smile
© UBB.Developers