PDA

View Full Version : Mini Mods - Easiest way to add Social Bookmarks on Thread


naveeid
05-14-2014, 10:00 PM
hi friends

You do not need to use any third party social book mark tools or facebook code to be loaded on your pages , just copy paste these few lines and have social bookmark tools easily


here is the method.

go to edit templates

go to showthread templates

edit SHOWTHREAD

find this code


<h1>
{vb:rawphrase thread}: <span class="threadtitle"><a href="{vb:raw thread_url}" title="{vb:rawphrase reload_this_page}">{vb:raw threadinfo.title}</a></span>
</h1>



ADD THESE LINES after the code



<!-- Social Book Marks -->

<a href="https://www.facebook.com/sharer/sharer.php?u=http://www.YOURFORUMADDRESS.COM/{vb:raw thread_url}&amp;title={vb:raw thread.title}" target=_blank><img src="FACEBOOK IMAGE PATH SOURCE"></a>

<a href=https://plus.google.com/share?url=http://www.YOURFORUMADDRESS.COM/{vb:raw thread_url} target=_blank><img src="GOOGLE PLUS IMAGE PATH SOURCE"></a>

<a href="https://twitter.com/share?url=http://www.YOURFORUMADDRESS.COM/{vb:raw thread_url}&amp;text={vb:raw thread.title}" target=_blank><img src="TWITTER IMAGE PATH SOURCE"></a>

<!-- Social Book Marks -->




1) REPLACE YOUR FORUM ADDRESS with your forum URL
2) Replace the TWITTER FACEBOOK AND GOOGLE PLUS images sources as you upload them on your server.

Black Snow
05-19-2014, 10:18 AM
This is a Template Mod, not an addon.

jrw422dx
06-18-2014, 06:45 PM
Ok this is what I was looking for. :D However, can it be modified so a tweet button will show up for each post in the thread? Right now all you can do is tweet the first post which is the post that started the thread. Can that be done??

Jon

naveeid
08-26-2014, 11:20 AM
yes you can do it but modifying signature template.

jrw422dx
08-26-2014, 03:23 PM
Could you post the template mod to do it? Would be good to have a facebook button to do the same too

webmaster74
01-04-2015, 10:59 PM
{vb:raw thread_url} is enough. I didn't need to add the url of my forums before that.

john7911
01-05-2015, 04:48 AM
Thank you ;)

naveeid
04-25-2015, 02:01 AM
webmaster74 , i have rechecked and found that your observation is not correct , we need to submit full url to facebook but {vb:raw thread_url} dont provide full url. thanks.

scottkoz20
05-16-2016, 12:52 AM
{vb:raw thread_url} is enough. I didn't need to add the url of my forums before that.

this worked for me

chloe101
05-15-2017, 05:22 PM
Thank you very much. I was looking for this for weeks. One question, how can i align this to the right?

In Omnibus
05-15-2017, 06:06 PM
Thank you very much. I was looking for this for weeks. One question, how can i align this to the right?

Try replacing the opening <H1> tag in the first bit of code with:

<h1 style="text-align:right;">

chloe101
05-27-2017, 06:00 PM
Try replacing the opening <H1> tag in the first bit of code with:

<h1 style="text-align:right;">

Thank you so much!