The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBTwitter Details »» | |||||||||||||||||||||||||||||||
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
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:
PHP 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
Screenshots
Supporters / CoAuthors Show Your Support
|
Comments |
#572
|
|||
|
|||
I tried searching but didn't find anything, but instead of storing password or prompting for a password, how do sites like Twitpic etc authenticate? They somehow pick up your authentication to twitter and they just work, I assume with something through the API.
Forgive me if this was posted already. I am interested in this but don't want to store any passwords unencrypted if possible and very little use integration. |
#573
|
|||
|
|||
When I click on the link in th euser options "Setup integration by clicking here."
I get the following from the twitter site: Woah there! This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake. Did I miss something in the installation? ------------------ Update: Yes I did miss something in the installation. The instructions to register an OAuth Application which appear under the Upgrading instructions also apply to new installations. Everything works fine now. |
#574
|
||||
|
||||
To post the title for threads to Twitter, edit tweet.php
Find the section that starts with: PHP Code:
Find: PHP Code:
Change to: PHP Code:
This only works when Twittering a thread. I have not looked into sending post titles yet, though it should also be trivial. |
#575
|
||||
|
||||
This is not tested.
To post the title for posts to Twitter, edit tweet.php Find the section that starts with: PHP Code:
Find: PHP Code:
Change to: PHP Code:
|
#576
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
|
#577
|
||||
|
||||
Thanks & thanks for the original hack.
Quote:
I just threw this together quick to see if it would work. |
#578
|
||||
|
||||
Yes, I have several shortening steps. It first checks it using a full URL, then shortens the URL, then the title. It should work rather well. I am stuck with v1.1 because I came to depend on AJAX a lot and my AJAX developer left.
|
#579
|
||||
|
||||
Depending on AJAX for what exactly?
By character checking, I'm assuming you meant for checking the title length? I recommend you put the code on a service like OpenSVN, Google Code or GitHub. PM me credentials for commit access & I will assist w/ coding. |
#580
|
||||
|
||||
OK, well I just setup the project on Google Code.
Join Google Code & send me your username, so that I can give you ownership of the project. |
#581
|
||||
|
||||
Quote:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|