Welcome New Members! We want to hear from you. Register, stop lurking and start posting!

Twitter "Tweet" Button

Keep up to date with any changes, new developments & upgrades that have been made to the forum or website.
Locked
L
Lily
Supercell
Reactions:
Posts: 4014
Joined: Wed Nov 25, 2009 10:29 pm
Location: Rowville/Lysterfield

Twitter "Tweet" Button

Post by Lily »

Also added a Twitter "Tweet" button to posts, have changed location of buttons to under member details on right hand side.

Let me know if anyone has any loading issues with this, testing on slow connections and via iphone have proved ok so far :)
User avatar
Rivergirl
Memorial
Reactions:
Posts: 3674
Joined: Sun Nov 22, 2009 6:04 pm
Location: Ferny Creek VIC
Contact:

Re: Twitter "Tweet" Button

Post by Rivergirl »

Looks fantastic Lily :applause: Well done!
User avatar
FuManchu
Cumulus
Reactions:
Posts: 72
Joined: Sun May 02, 2010 1:12 pm

Re: Twitter "Tweet" Button

Post by FuManchu »

Where did you find this mod?
I have been looking at a few but this is just what I've been looking for.
I've seen "share on" but looks clunky.
Image
L
Lily
Supercell
Reactions:
Posts: 4014
Joined: Wed Nov 25, 2009 10:29 pm
Location: Rowville/Lysterfield

Re: Twitter "Tweet" Button

Post by Lily »

Gidday Fu :D Been a while since I did this, but try the below.

In public_html/forum/styles/prosilver/template/viewtopic_body.html, add

<a href=<span><td colspan="2"><iframe src="http://www.facebook.com/plugins/like.ph ... heme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px"></iframe></td></span></a>

immediately after this:


<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->

</ul>
</dd>


Replace YOUR_URL with your url lol, ie. WAWG's url.
User avatar
FuManchu
Cumulus
Reactions:
Posts: 72
Joined: Sun May 02, 2010 1:12 pm

Re: Twitter "Tweet" Button

Post by FuManchu »

:lol: I'll see how I go.
I'm going to post in the face book bit next :lol:
Image
L
Lily
Supercell
Reactions:
Posts: 4014
Joined: Wed Nov 25, 2009 10:29 pm
Location: Rowville/Lysterfield

Re: Twitter "Tweet" Button

Post by Lily »

Arrrghhh! I'm getting myself confused, sorry!

The above code is for the Facebook Like button (derr), twitter I'll have to search for, give me a minute and I'll have a look.
L
Lily
Supercell
Reactions:
Posts: 4014
Joined: Wed Nov 25, 2009 10:29 pm
Location: Rowville/Lysterfield

Re: Twitter "Tweet" Button

Post by Lily »

OK, so just ignore the above, we'll start again. Go to CPanel. Go to public_html/forum/styles/prosilver/template/viewtopic_body.html, then after this:

<ul class="profile-icons">
<!-- IF postrow.U_PM --><li class="pm-icon"><a href="{postrow.U_PM}" title="{L_PRIVATE_MESSAGE}"><span>{L_PRIVATE_MESSAGE}</span></a></li><!-- ENDIF -->
<!-- IF postrow.U_EMAIL --><li class="email-icon"><a href="{postrow.U_EMAIL}" title="{L_SEND_EMAIL_USER} {postrow.POST_AUTHOR}"><span>{L_SEND_EMAIL_USER} {postrow.POST_AUTHOR}</span></a></li><!-- ENDIF -->
<!-- IF postrow.U_WWW --><li class="web-icon"><a href="{postrow.U_WWW}" title="{L_VISIT_WEBSITE}: {postrow.U_WWW}"><span>{L_WEBSITE}</span></a></li><!-- ENDIF -->
<!-- IF postrow.U_MSN --><li class="msnm-icon"><a href="{postrow.U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
<!-- IF postrow.U_ICQ --><li class="icq-icon"><a href="{postrow.U_ICQ}" onclick="popup(this.href, 550, 320); return false;" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->
<!-- IF postrow.U_YIM --><li class="yahoo-icon"><a href="{postrow.U_YIM}" onclick="popup(this.href, 780, 550); return false;" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
<!-- IF postrow.U_AIM --><li class="aim-icon"><a href="{postrow.U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->


</ul>
</dd>

Add this:

<a href=<span><td colspan="2"><iframe src="http://www.facebook.com/plugins/like.php?href=www.WAWG URL/forum/viewtopic.php%3Fp%3D{postrow.POST_ID}%23p{postrow.POST_ID}&layout=standard&show_faces=true&width=450&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height:30px"></iframe></td></span></a>
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="WAWG">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>

This will add in both the Facebook and Twitter buttons at the same time for you, just be sure to put in your correct URL where I've put "www.WAWG". Sorry for my earlier brain fart :laughing:
User avatar
Australis(Shell3155)
Supercell
Reactions:
Posts: 3142
Joined: Mon Nov 30, 2009 8:05 pm
Location: FTG
Contact:

Re: Twitter "Tweet" Button

Post by Australis(Shell3155) »

Wondering if there is anything I can do ..?
I have to hit the refresh button all the time for new posts to be displayed.. is this standard..?

And how did I manage to get this into this thread.. opps..
L
Lily
Supercell
Reactions:
Posts: 4014
Joined: Wed Nov 25, 2009 10:29 pm
Location: Rowville/Lysterfield

Re: Twitter "Tweet" Button

Post by Lily »

LOL, pm me Shell? :laughing:
Locked