Version: 1.0.4, by King Kovifor
Developer Last Online: Aug 2015
Category: Integration with vBulletin -
Version: 3.8.x
Rating:
Released: 02-08-2009
Last Update: 07-13-2009
Installs: 402
DB Changes Uses Plugins Auto-Templates
Additional Files Translations
No support by the author.
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
Upload files in the /upload/ folder of the .zip into the directories as is.
<if condition="$vbulletin->userinfo['twitter_username']"><a href="tweet.php?do=thread&id=$threadinfo[threadid]">Tweet This Thread!</a></if>
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:
PHP Code:
define('SHOWPOST', true);
Change that line to this:
PHP Code:
define('SHOWPOST', false);
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!
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'.
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.
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.
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.
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.
Thanks but lets see if other people request it this one may be what people want. Personally I'm in doubt whether to add this, as Twitter is in english only right now.