Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBTwitter Details »
vBTwitter
Mod Version: 1.0.4, by King Kovifor (Coder) King Kovifor is offline
Developer Last Online: Aug 2015 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (32 votes - 4.22 average) Installs: 400
Released: 09 Feb 2009 Last Update: 14 Jul 2009 Downloads: 1905
Not Supported DB Changes Uses Plugins Auto-Template Additional Files Translations  

Description

This modification adds basic Twitter integration to vBulletin. Once a user defines their Twitter username & password within their vB Options (User CP -> Edit Options), the Tweet This X links will appear.

It automatically adds a tweet to their account with the default text of "Check this out! " (which can be edited editing the "twitter_checkout" phrase) and uses your forum URL with either tp or tt.php as the link. These redirect to the thread / post that was tweeted.

Installation
  1. Upload files in the /upload/ folder of the .zip into the directories as is.
  2. Install product file.
  3. Register an OAuth Application here, using:
  4. Click Install on vB.org
  5. Tell Your users.
  6. Enjoy
Upgrading to v1.0.4
  • Upload all files, overwrite everything.
  • Install product file.
  • Register an OAuth Application here, using:
  • Gain and copy the Consumer Key & Secret into vBulletin Options.
Upgrading to v1.0.3 or before.
  • Upload all files, overwrite everything.
  • install product file.
  • Remove template edits. For the record, they are here:
    • Open the postbit or postbit_legacy template (depending on what you use). Find:

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

      Add before that:

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

    • Open the SHOWTHREAD template.
      Find:

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

      Add After:

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

      Find:

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

      Add After:

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

Requirements

THIS MODIFICATION REQUIRES PHP 5 DUE TO THE CLASS THAT IS USED!

PHP'S CURL EXTENSION IS ALSO USED! THE API CALLS ARE COMPLETELY DEPENDENT ON THEM!


This modification should work on vBulletin v3.5+, but was only tested on a vB 3.8 install.

Using the "tp.php" switch added in v1.0.2

With the release of v1.0.2, a switch between showpost.php?p=ID&postcount=COUNT and showthread.php?p=ID#postID has been added. Using it is simple, but requires a code edit (Note: This is a SUPPORTED code edit!). Open up tp.php and find this line:


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

Change that line to this:


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


This will automatically trigger the change any time it is loaded. This works retroactively and any links will automatically use the new settings once changed!

Download Now

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

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	tweet1.jpg.jpeg
Views:	7817
Size:	81.8 KB
ID:	95497   Click image for larger version

Name:	tweet2.jpg.jpeg
Views:	10152
Size:	89.5 KB
ID:	95498  

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.
Comments
  #2  
Old 09 Feb 2009, 01:52
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Change Log
  • v1.0.0 - February 8, 2009
    • Initial Release
  • v1.0.1 - February 16, 2009
    • Bug Fixes
      • Ability to uninstall (I fixed the SQL query)
      • Added missing ; in the Tweet this Thread!
      • Fixed bug within the Twitter class that blocked authentication.
    • Completely phrased.
    • New vBTwitter source parameter, any tweets show as coming from this mod (instead of web).
    • Removed extra query on updating options.
    • mcrypt integration (encrypted password)
    • Automatic Template Edits!
    • Image in Tweet this Thread!
  • v1.0.2 - February 21, 2009
    • Bug Fixes
      • Multiple "Tweet this Post" links.
      • Mcrypt decryption errors.
    • Switch for tp.php to redirect to showthread.php or showpost.php.
  • v1.0.3 - March 4, 2009
    • Crucial Bug Fix: New Verification Method!
  • v1.0.4 - July 14, 2009
    • OAuth integration!
    • Shows links to all (including guests for now).
    • Requires setup.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration

Last edited by King Kovifor; 14 Jul 2009 at 23:46.
Reply With Quote
  #3  
Old 09 Feb 2009, 01:58
Floris Floris is offline
 
Join Date: Jan 2002
Thanks @KingKovifor, via @Floris

LOL
__________________
My community; http://wetalknation.net
Reply With Quote
  #4  
Old 09 Feb 2009, 02:04
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Nice, just worried about storing twitter passwords... I take it they are not md5ed so to use them on twitter.

I think I'd rather use a popup asking username and password.
Reply With Quote
  #5  
Old 09 Feb 2009, 02:16
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Originally Posted by Floris View Post
Thanks @KingKovifor, via @Floris

LOL
LOL. You got to hear about my development woes!

Originally Posted by Dream View Post
Nice, just worried about storing twitter passwords... I take it they are not md5ed so to use them on twitter.

I think I'd rather use a popup asking username and password.
I was worried about that too but I need to authenticate and don't know where or how to authenticate without storing it. Pop up would work, but I am thinking of ease of use. Any suggestions?
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #6  
Old 09 Feb 2009, 02:34
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
I'd guess another version of this mod could be made, where anyone can twit anything clicking on "Twit This" that opens a popup window that asks username, password and text to append before URL. I could do it but *yawn* not sure how integration with twitter works. It would be just one php file and one template edit. Also not sure if you can twit posts, or just threads would make more sense. But your idea of twitting not the post text, but a link to the forum is nice.
Reply With Quote
  #7  
Old 09 Feb 2009, 02:35
dirtycrow dirtycrow is offline
 
Join Date: Apr 2004
awesome!
Reply With Quote
  #8  
Old 09 Feb 2009, 02:43
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Originally Posted by Dream View Post
I'd guess another version of this mod could be made, where anyone can twit anything clicking on "Twit This" that opens a popup window that asks username, password and text to append before URL. I could do it but *yawn* not sure how integration with twitter works. It would be just one php file and one template edit. Also not sure if you can twit posts, or just threads would make more sense. But your idea of twitting not the post text, but a link to the forum is nice.
I can add that as a product tomorrow. Admin set option for on / off?

This allows you to tweet posts and threads. My next major feature release plans on adding things that would require edits like it.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #9  
Old 09 Feb 2009, 02:51
KevinL KevinL is offline
 
Join Date: Apr 2005
You guys are too much I love it.

After that thread I knew this was coming! Great work!
Reply With Quote
  #10  
Old 09 Feb 2009, 03:06
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Originally Posted by KevinL View Post
You guys are too much I love it.

After that thread I knew this was coming! Great work!
What thread?
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #11  
Old 09 Feb 2009, 03:27
KevinL KevinL is offline
 
Join Date: Apr 2005
The twitter thread...
Reply With Quote
  #12  
Old 09 Feb 2009, 03:47
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Okay....so, will this allow us to send a Twitter (or a Tweet or whatever it's called! ) message to our vB profile? I'm a little confused (although that's not a big surprise ) about what the dilly yo'.
Reply With Quote
  #13  
Old 09 Feb 2009, 04:06
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
It creates a tweet that includes a URL to the specified Post / thread with the default words "check this out" to your Twitted profile. Each user sets up their own profile for this to work.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
Reply With Quote
  #14  
Old 09 Feb 2009, 04:08
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
 
Join Date: Jan 2002
Real name: Wayne
Originally Posted by King Kovifor View Post
I was worried about that too but I need to authenticate and don't know where or how to authenticate without storing it. Pop up would work, but I am thinking of ease of use. Any suggestions?
Use mcrypt and have the site owner enter a secret phrase in the config.php file (best place for it)... You can then take the secret phrase and generate a seed value that encrypts the login information. Not foolproof since it will be necessary to decrypt the information but should provide enough basic protection.
__________________
Wayne Luke
Get started with your own social network. Purchase and download vBulletin today.
Reply With Quote
  #15  
Old 09 Feb 2009, 04:16
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Real name: Jeremy
Originally Posted by Wayne Luke View Post
Use mcrypt and have the site owner enter a secret phrase in the config.php file (best place for it)... You can then take the secret phrase and generate a seed value that encrypts the login information. Not foolproof since it will be necessary to decrypt the information but should provide enough basic protection.
Thanks! I'll look into that! And i'm looking at HTTP Basic Auth as the example show it encrypted so if I can figure that out I'll store that.
__________________
Former vBulletin.org Staff Member

Do not request support through any other means except the forums.

Useful Post With Links on Learning How To Develop vBulletin Plugins

Latest Modification: Stop Forum Spam Integration
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:08.

Layout Options | Width: Wide Color: