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!
OK. After spending the last hour trying to figure out Mcrypt (which I did get to work, rather fast too) it's still not decrypting and encrypting values as expected... So it most likely won't be done tonight.
Importing Product, Please Wait...
[:]
Database Error Database error
The Windowsliveforums.com database has encountered a problem.
Database error in vBulletin 3.8.1:
Invalid SQL:
ALTER TABLE `user` ADD (`twitter_username` VARCHAR( 255 ) NOT NULL ,`twitter_password` VARCHAR( 255 ) NOT NULL);
MySQL Error : Duplicate column name 'twitter_username'
Error Number : 1060
Request Date : Saturday, February 14th 2009 @ 09:53:24 PM
Error Date : Saturday, February 14th 2009 @ 09:53:24 PM
Script : http://www.windows7liveforums.com/admincp/plugin.php?do=productimport
Referrer : http://www.windows7liveforums.com/admincp/plugin.php?do=productadd
IP Address : 99.xxx.xxx.xxx
Username : Joe Gronlund
Classname : vB_Database
MySQL Version : 5.0.67-community
That's cause your trying to install v1.0.0 again. I haven't updated the product yet. I just said it was nearing completion. Installing now, you'll get no added features. And that's where your problem is coming from -- you already have it installed (or uninstalled and the tables weren't dropped, if that's the case tell me), so the tables it's trying to add in 1.0.0 are already in the database.
That's cause your trying to install v1.0.0 again. I haven't updated the product yet. I just said it was nearing completion. Installing now, you'll get no added features.
It was actually uninstalled when I tried to reinstall it when I received that error, but I will wait for the next release..
Great looking idea and I will keep following this hack.
One suggestion I have though is to use Custom Profile Fields for the twitter details and enter the field ID in an ACP option. The reason for this is that I already have a hack which places the users latest tweets in their profile. To do this they need to enter their twitter id in a custom profile fileds ... so it seems silly to ask them for the same thing again.
Great looking idea and I will keep following this hack.
One suggestion I have though is to use Custom Profile Fields for the twitter details and enter the field ID in an ACP option. The reason for this is that I already have a hack which places the users latest tweets in their profile. To do this they need to enter their twitter id in a custom profile fileds ... so it seems silly to ask them for the same thing again.
That's going to be in the next version.
Quote:
Originally Posted by Joe Gronlund
It was actually uninstalled when I tried to reinstall it when I received that error, but I will wait for the next release..
I will post up proper queries later (I don't have access here).