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!
With all due respect to the coder, please take my comments as intended and not as a personal attack against you or the vbTwitter mod - but really, what's the point?
I can see no point in a forum's users littering their twitter pages with a stream of Check This Out text with no description in the links of what the potential visitor might be looking at? I can't speak for other web users out there, but I don't have a tendancy to click on links just because they tell me to click here or to check this out. If you could find a way to form a better link, perhaps by pulling in the post/thread title, then this mod could be mildly useful.
Until then, I am uninstalling this mod. I wish you success as you try to get this worked out, and I would revisit this mod if you can communicate better to users what exactly the link is going to be about.
The username-and-password-authentication-failure still happens with the new version. I severely checked my twitter-login-data, they are working within twitter itself.
Hm. Are you sure you uploaded the new tweet.php?
Quote:
Originally Posted by RedeemedWarrior
can i delete .svn folders? or are they needed?
Yes. They are invisible on my computer and snuck their way in.
Quote:
Originally Posted by Cybertims
Mine now works but I get this error message across the top of the redirection screen right after it.
Warning: mcrypt_decrypt() [function.mcrypt-decrypt]: The IV parameter must be as long as the blocksize in [path]\tweet.php on line 9
Any idea why that might be?
Cheers
Update your password, it should have an IV parameter stored with it.
Quote:
Originally Posted by Infopro
I'm sorry but my forums are not open to the public at this point.
I read earlier in this thread that this was being tested so I waited for your release. Apparently the testers need some testing too.
Personally, I have it installed on 3 beta testing sites, and they all worked perfectly. With the code you gave me, it should not be doing what it is, hence the reason I asked to see the forum.
Quote:
Originally Posted by Infopro
King Kovifor, how about if you remove all the garbage from your zip file so people can get confused over this thing not working without the added confusion of garbage files no one needs?
I haven't had the time to sit down and remove them. They slipped in as they are invisible on my computer.
Quote:
Originally Posted by Infopro
I like trying stuff from vb.org but I'm not here to work on other coders bugs. Those should be worked on and hopefully solved before a new post is made offering it to the masses.
This clearly was not tested enough by those who have.
Your problem is unique, and the only one I've seen like it. If your problem is the only one that happens, it is impossible for a coder to predict and fix it.
Quote:
Originally Posted by abroad
get this error:
Call to undefined function mcrypt_get_iv_size() in /var/www/htm/profile.php(2155) : eval()'d code on line 16
Yep, I?m sure. Here is the procedure I tried recently. I wiped out the username and password, saved the changes. I added the username and password, saved the changes to no success. I overwrote all files on the servers and re-imported the 1.03-version. To no success.
Then - I?m on the Mac-side - I tried out the program "Twitterific" and this prog gave me an alert about my password, warning me about an incompatibility with the twitter-api, cause my password contained non-alphanumeric characters. I changed the password to contain only alphanumeric characters and now all is working like a charm!
But I had to add a template-edit manually to get the "Tweet this post"-link working. I?m using the Template Modification System within the postbit too, maybe this prevented the link to show up.
Sorry for causing the confusion! But to my exoneration the twitter-browser-site accepts and works with non-alphanumeric-characters within the password, so I didn?t suspect any issues so far.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitter.php on line 29
Hm. I will see about looking into that tomorrow.
Quote:
Originally Posted by Cybertims
Can you be a bit clearer? Do you mean change it? Not sure what you mean by "update your password"
Cheers.
All you need to do is edit your options, and just retype your password. If it was stored without an IV, it won't be able to decrypt. Upon changing your password, it'll update and store the required variables with your password.
Quote:
Originally Posted by drsli
Yep, I?m sure. Here is the procedure I tried recently. I wiped out the username and password, saved the changes. I added the username and password, saved the changes to no success. I overwrote all files on the servers and re-imported the 1.03-version. To no success.
Then - I?m on the Mac-side - I tried out the program "Twitterific" and this prog gave me an alert about my password, warning me about an incompatibility with the twitter-api, cause my password contained non-alphanumeric characters. I changed the password to contain only alphanumeric characters and now all is working like a charm!
But I had to add a template-edit manually to get the "Tweet this post"-link working. I?m using the Template Modification System within the postbit too, maybe this prevented the link to show up.
Sorry for causing the confusion! But to my exoneration the twitter-browser-site accepts and works with non-alphanumeric-characters within the password, so I didn?t suspect any issues so far.
Hey can you tell me the code for making the "tweettpopup" and what file and where you put it int the file? Thanks for the help!
BTW what do you mean everything will work w/ ajax?? Thanks
Sorry, but the tweet pop up will not appear until v1.1 is released. It requires significant code changes and additions to what is in v1.0.x. For this reason, it will not be "pre-released" as an individual feature to v1.0.x. And here's an AJAX screencast: