Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Add Tweet, Google+ FB like/Share buttons in your threads Details »
Add Tweet, Google+ FB like/Share buttons in your threads
Mod Version: 1.00, by ShawneyJ (Coder/Designer) ShawneyJ is offline
Developer Last Online: Sep 2019 I like it Show Printable Version Email this Page

vB Version: 3.8.7 Rating: (4 votes - 4.00 average) Installs: 14
Released: 14 Jun 2014 Last Update: Never Downloads: 0
Not Supported Template Edits  

Im basically adding this Template modification for safe keeping if thats ok by the staff.
This is pretty simply and does what i need it to do for my forums.
As the title kinda stats, you can add "Tweet, Google+ FB like/Share" share buttons under the post title of your threads and, or above signature. These 2 places i find looks neater and kinda more effective. You can chose to place your code anywhere in post_bit that fits your needs. FYI: This only shares the URL of the Thread.

Ok lets get to it.

In your Header Template, add this Code to the very Top:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And Save.

In Your Additional CSS Add the following:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Ok thats it for header and CSS, you don't need to change the above codes for any of the following options.

Now its time to place your Share Buttons into your Threads.
You have 1 of 3 Options on where you would like to add your Share Buttons.
1. Below Post Title
2. Above Signature
3. Next To Edit Buttons.

Option 1.
How to add Share Buttons Below Post Title:

Find in Template postbit_legacy:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add Below:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And Save.

Option 2.
How to add Share Buttons above your Signature:

In postbit_legacy Template, Search for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add Above:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And Save.

This is only if you have modified Signature Coding in your postbit.
Try searching in postbit_legacy Template for:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And add the code below it.

Option 3.
How to add Share Buttons below next to the Edit, Quote Buttons etc:

Find in your postbit_legacy Template:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And add Above, this Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And Save.

Hide Share Buttons in certain Forums:

You would simply use these lines around the Code above and change x to Forums ID:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


For Example, if i wanted to hide the Share Buttons in my Staff Forums, i would place in the Forums ID 43 and 44. My code would look like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Screenshot Added.

Haven't tried this on normal post bit template but pretty sure it will work.
You can add extra buttons to this code for your site, like Pin It etc.

And hope this works for anyone that actually uses it.

Thanks for marking Installed!

Screenshots added of All Placements added to this post.
Demo Test Site: DEMO.

Also don't forget to add your own Twitter name "YOUR-TWITTER-NAME" to whatever yours is!

Updated: 30/06/2014.
Fixed the following issues:
validator.w3.org was picking on an small error in the facebook header code - Fixed.
There was an issue with the Like Button, every time you clicked Like, a box would appear. No more Box! - Fixed.
The <br's were in the wrong spot in the codes effecting 2nd, 3rd, 4th posts etc - Fixed.
When someone clicked the FB Like Button, the line of text would increase in character and cause 2 lines - Fixed.

Aware of a small issue sometime a small with line appears behine the FB Like Button when Clicking Like. Works fine and isn't a real issue, but will try to find a fix anyways.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	demo-top.png
Views:	323
Size:	332.3 KB
ID:	149394   Click image for larger version

Name:	demo-bottom.png
Views:	235
Size:	210.4 KB
ID:	149395   Click image for larger version

Name:	demo-next-to-edit.png
Views:	154
Size:	392.3 KB
ID:	149579   Click image for larger version

Name:	Hidden-Buttons.png
Views:	151
Size:	368.1 KB
ID:	149773  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Miscellaneous Hacks More Share Options TNG by BOP5 (Facebook, Twitter, Google +1, AddThis) Share Buttons BirdOPrey5 vBulletin 4.x Add-ons 977 02 Nov 2018 04:00
Show Thread Enhancements AddThis - Facebook Like, Tweet and Share buttons joomla vBulletin 4.x Template Modifications 51 06 Sep 2017 18:15
Miscellaneous Hacks Share Buttons Bar by BOP5 (Facebook Like, Twitter, Google+1, and more share options) BirdOPrey5 vBulletin 3.8 Add-ons 97 06 Nov 2013 08:31

  #16  
Old 16 Jul 2014, 23:25
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Real name: Tim
I am sorry, I did not add proper code. Again, change x,x,x,x,x to the forum id's you wish to hide this in.

<if condition="!in_array($forumid, array(x,x,x,x,x))"> Shawns Code </if>
__________________
LONG LIVE 3.8 SERIES
National Arcade Competition Club- NACC All arcade edits will work on vb4.
Check out my heavily modified ibproarcade with over 50,000 games for you, free of charge!
Exclusive arcade addons, edits and skins were made by stangger5 owner of Next Level Arcade
Reply With Quote
  #17  
Old 17 Jul 2014, 00:47
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Real name: Shawn
Thanks heaps guys. I have updated the first post to what i tested and worked for me, on how to hide in certain forums.
Let me know how you go for those that test it, thanks.

I have a staff forum and other forums where I do not want people to share to facebook from
__________________
Sorry Guys, just a little busy lately.
Reply With Quote
  #18  
Old 17 Jul 2014, 04:20
plubius plubius is offline
 
Join Date: Dec 2004
Worked like a bleddy charm. Shawney I love your forum can I join it? And do you have a forum Blind Eddie
Reply With Quote
  #19  
Old 17 Jul 2014, 04:33
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Real name: Tim
I do, its a test site full of 3.8 addons and edits, link in sig. Its a hobby.
I have two other vb sites up, one is not quite finished yet.
__________________
LONG LIVE 3.8 SERIES
National Arcade Competition Club- NACC All arcade edits will work on vb4.
Check out my heavily modified ibproarcade with over 50,000 games for you, free of charge!
Exclusive arcade addons, edits and skins were made by stangger5 owner of Next Level Arcade
Reply With Quote
  #20  
Old 20 Aug 2014, 02:48
dakotart.com dakotart.com is offline
 
Join Date: May 2012
Works great, thanks.

Last edited by dakotart.com; 20 Aug 2014 at 04:12.
Reply With Quote
  #21  
Old 22 Aug 2014, 06:26
tini_lam tini_lam is offline
 
Join Date: Dec 2009
have support on vbb 4.2.x ??
Reply With Quote
  #22  
Old 22 Aug 2014, 06:40
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Real name: Shawn
Originally Posted by tini_lam View Post
have support on vbb 4.2.x ??
this would have to be slightly recoded for vb4.

although there is something similar for vb4, but atm i cant find it.

EDIT: actually. just a quick test on vb4 changing the <if to <vb:if the icons do show.
although i cant say it all works without further testing.
if i can get them working smoothly i will add a how to...to my first post.
Attached Images
File Type: png testvb4.png (34.9 KB, 7 views)
__________________
Sorry Guys, just a little busy lately.

Last edited by ShawneyJ; 22 Aug 2014 at 07:04. Reason: screenshot
Reply With Quote
  #23  
Old 25 Aug 2014, 08:08
tini_lam tini_lam is offline
 
Join Date: Dec 2009
it show in safari Ipad have error. content in first post blank...
Reply With Quote
  #24  
Old 26 Aug 2014, 05:27
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Real name: Shawn
Originally Posted by tini_lam View Post
it show in safari Ipad have error. content in first post blank...
vb3 or vb4?
__________________
Sorry Guys, just a little busy lately.
Reply With Quote
  #25  
Old 12 Jan 2015, 03:20
compact compact is offline
 
Join Date: Jan 2003
Great mod, thanks! A questions though. How can i change the color of the text where it says "Be the first of your friends to like this." The default is in black but i need it in white. Thanks.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 19:09.

Layout Options | Width: Wide Color: