Previous Thread
Next Thread
Print Thread
Rate Thread
[7.x] AddThis - Social Networking #317471 08/01/2008 1:30 AM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
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


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Sponsored Links
Re: [7.x] AddThis - Social Networking [Re: Gizmo] #317474 08/01/2008 2:19 PM
Joined: Jan 2007
Posts: 70
Stephen G Offline
Power User
Offline
Power User
Joined: Jan 2007
Posts: 70
Great stuff Giz

How could I implement this on the Portal?

smile

Last edited by GEN; 08/01/2008 2:20 PM.
Re: [7.x] AddThis - Social Networking [Re: Stephen G] #317475 08/01/2008 6:47 PM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [7.x] AddThis - Social Networking [Re: Gizmo] #317476 08/01/2008 6:49 PM
Joined: Jan 2007
Posts: 70
Stephen G Offline
Power User
Offline
Power User
Joined: Jan 2007
Posts: 70
I would like it to appear on each news item that is pulled from the specific forum I've chosen

Re: [7.x] AddThis - Social Networking [Re: Stephen G] #317477 08/02/2008 10:28 AM
Joined: Jan 2000
Posts: 5,786
Gizmo Offline OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,786
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...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Sponsored Links
Re: [7.x] AddThis - Social Networking [Re: Gizmo] #317478 08/02/2008 9:29 PM
Joined: Jan 2007
Posts: 70
Stephen G Offline
Power User
Offline
Power User
Joined: Jan 2007
Posts: 70
Yeah, I suppose you're right.

smile


Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,490
Posts293,665
Members13,828
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,786
Greg Hard 4,625
Top Posters(30 Days)
isaac 4
Today's Statistics
Currently Online 1426
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 21
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191013.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.042s Queries: 15 (0.014s) Memory: 3.2374 MB (Peak: 3.4385 MB) Data Comp: Zlib Server Time: 2019-10-21 15:06:34 UTC
Valid HTML 5 and Valid CSS