Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Easiest way to add Social Bookmarks on Thread Details »»
Easiest way to add Social Bookmarks on Thread
Version: 1.00, by naveeid naveeid is offline
Developer Last Online: Apr 2019 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 05-14-2014 Last Update: Never Installs: 15
Template Edits
Re-useable Code Translations  
No support by the author.

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.

Screenshots

File Type: gif facebook_share.gif (3.7 KB, 0 views)
File Type: gif twitter.gif (3.8 KB, 0 views)
File Type: jpg Thumbnail_image1221 May. 15 17.09.jpg (55.3 KB, 0 views)
File Type: gif googleplus.gif (4.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-19-2014, 10:18 AM
Black Snow Black Snow is offline
 
Join Date: Jul 2012
Location: Scotland
Posts: 471
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a Template Mod, not an addon.
Reply With Quote
  #3  
Old 06-18-2014, 06:45 PM
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok this is what I was looking for. 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
Reply With Quote
  #4  
Old 08-26-2014, 11:20 AM
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes you can do it but modifying signature template.
Reply With Quote
  #5  
Old 08-26-2014, 03:23 PM
jrw422dx jrw422dx is offline
 
Join Date: Jun 2011
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could you post the template mod to do it? Would be good to have a facebook button to do the same too
Reply With Quote
  #6  
Old 01-04-2015, 10:59 PM
webmaster74 webmaster74 is offline
 
Join Date: Mar 2007
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

{vb:raw thread_url} is enough. I didn't need to add the url of my forums before that.
Reply With Quote
  #7  
Old 01-05-2015, 04:48 AM
john7911 john7911 is offline
 
Join Date: Feb 2013
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #8  
Old 04-25-2015, 02:01 AM
naveeid's Avatar
naveeid naveeid is offline
 
Join Date: Jan 2011
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 05-16-2016, 12:52 AM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webmaster74 View Post
{vb:raw thread_url} is enough. I didn't need to add the url of my forums before that.
this worked for me
Reply With Quote
  #10  
Old 05-15-2017, 05:22 PM
chloe101 chloe101 is offline
 
Join Date: Dec 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much. I was looking for this for weeks. One question, how can i align this to the right?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:23 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07580 seconds
  • Memory Usage 2,315KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete