Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 May 2016, 21:39
JamesAB JamesAB is offline
 
Join Date: Jan 2004
Tweet button for every post?

Has anyone done a simple plugin or mod to add a tweet button for every post? Basically a button that open a new window so user's can tweet that post's URL and tread title from their own twitter account.

I need something that works with VB3.8

I don't want to start from scratch if this is already available.

Thanks,
James
__________________
Custom HTTP Error Pages
Reply With Quote
  #2  
Old 27 May 2016, 01:11
greigeh greigeh is offline
 
Join Date: Jan 2015
Real name: Greig David
http://www.vbulletin.org/forum/showthread.php?t=248568 came up in similar threads, this is dated back to 2012 so can imagine it is out of date, but using the correct twitter URL/if conditions can imagine this is easily done.
Reply With Quote
  #3  
Old 28 May 2016, 14:00
JamesAB JamesAB is offline
 
Join Date: Jan 2004
Thanks. That's a good start, however Twitter has changed their API so now I need to make some adjustments.

I guess fist I need to find a plugin location where I can grab the thread title and post URL and make these two variables URL encoded. Then I can form a valid URL to link to create a Twitter Tweet Web Intent link to place in the postbit template.

Any suggestions for the best place to create these two URL encoded variables?
__________________
Custom HTTP Error Pages
Reply With Quote
  #4  
Old 30 May 2016, 02:36
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
Ok so this is what I got...


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


Add anywhere in postbit/postbit_legacy template should work.

Breakdown

The single post page link:

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

Thread title variable:

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

target blank to open in new window:

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

Attached Images
File Type: jpg On each post.jpg (129.4 KB, 17 views)
File Type: jpg Tweet page.jpg (107.6 KB, 16 views)
Reply With Quote
  #5  
Old 22 Jun 2016, 13:51
Mattwhf Mattwhf is offline
 
Join Date: May 2016
Originally Posted by PinkMilk View Post
Ok so this is what I got...


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


Add anywhere in postbit/postbit_legacy template should work.

Breakdown

The single post page link:

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

Thread title variable:

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

target blank to open in new window:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
If I put this in sidebar it can run for all forum pages?
__________________
Web Hosting Forum - Learn web hosting and offer your hosting services for FREE!
Reply With Quote
  #6  
Old 23 Jun 2016, 09:38
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Real name: Milk Pink
No the above code is for individual posts, for a single link to showthread page you would need something like this:


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

This would normally be added to SHOWTHREAD template, however if you want it in a sidebar which I'm guessing is on everypage you would need to wrap it in a conditional so it only shows on a showthead page.


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

----------------------------------------------------

Update:

Just re-read you post and sounds more like you just want a basic tweet button this would be done using:

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

However it will just post your forum url and title.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Thread Enhancements Twitter - Tweet Button in SHOWTHREAD BirdOPrey5 vBulletin 3.8 Template Modifications 58 25 Nov 2012 20:04
Show Thread Enhancements Twitter - Tweet Button in SHOWTHREAD BirdOPrey5 vBulletin 4.x Template Modifications 210 14 Feb 2012 06:29
Mini Mods Facebook - Linkhay - Tweet - Yahoo Buzz Share with Above Button Cool saviola8x vBulletin 4.x Template Modifications 24 26 Aug 2010 04:46



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

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 07:22.

Layout Options | Width: Wide Color: