php forum
php mysql forum
php mysql smarty
 
Topic Options
#317471 - 08/01/08 01:30 AM [7.x] AddThis - Social Networking
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA

   [7.x] AddThis - Social Networking to Del.icio.us Add to del.icio.us
  Digg [7.x] AddThis - Social Networking Digg it
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#317474 - 08/01/08 02:19 PM Re: [7.x] AddThis - Social Networking [Re: Gizmo]
GEN Offline
Power User

Registered: 01/01/07
Posts: 51
Loc: UK
Great stuff Giz

How could I implement this on the Portal?

smile


Edited by GEN (08/01/08 02:20 PM)
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#317475 - 08/01/08 06:47 PM Re: [7.x] AddThis - Social Networking [Re: GEN]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#317476 - 08/01/08 06:49 PM Re: [7.x] AddThis - Social Networking [Re: Gizmo]
GEN Offline
Power User

Registered: 01/01/07
Posts: 51
Loc: UK
I would like it to appear on each news item that is pulled from the specific forum I've chosen
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#317477 - 08/02/08 10:28 AM Re: [7.x] AddThis - Social Networking [Re: GEN]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5119
Loc: Portland, OR, USA
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 - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#317478 - 08/02/08 09:29 PM Re: [7.x] AddThis - Social Networking [Re: Gizmo]
GEN Offline
Power User

Registered: 01/01/07
Posts: 51
Loc: UK
Yeah, I suppose you're right.

smile
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top


Moderator:  sirdude 
Top Posters Last 30 Days
AllenAyres 12
Gizmo 10
S7ARBVCK 2
blaaskaak 2
Cambridge 1
Murphdog 1
MattUK 1
Who's Online
0 Registered (), 25 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
[7.3.1] add search to showmembers page
by blaaskaak
Today at 04:50 AM
BeyondCompare v3.00
by blaaskaak
09/05/08 02:46 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
Here I am! Rock me like a Hurricane!
by AllenAyres
09/02/08 03:05 PM
[7.x] Generic Page Outside of forum directory
by Gizmo
08/30/08 05:43 PM
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Today at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks