vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Easiest way to add Social Bookmarks on Thread (https://vborg.vbsupport.ru/showthread.php?t=311379)

naveeid 05-14-2014 10:00 PM

Easiest way to add Social Bookmarks on Thread
 
1 Attachment(s)
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

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

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

Quote:

Originally Posted by webmaster74 (Post 2530498)
{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?


All times are GMT. The time now is 09:41 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01020 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete