| vBTwitter by King Kovifor |
09 Feb 2009 00:51 |
3 Attachment(s)
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.
- Install product file.
- Register an OAuth Application here, using:
- Click Install on vB.org
- Tell Your users.
- 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:
Add before that:
- Open the SHOWTHREAD template.
Find:
Add After:
Find:
Add After:
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:
Change that line to this:
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!
|