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!
EDIT: "Tweet this post" refuses to show up in Postbit_Legacy even after the manual update. Otherwise it works perfectly. I'm not sure that the problem is. Uninstall for now.
Same for me. Doesn't show up.
Its in the thread tools but doesn't show on the post.
Thanks for the plugin but I am not sure how I can make it works...
I am actually developing a huge customized skin for my vbulletin.
So far, I see the "Tweet this thread" under the "thread tools". When I click on it, it say that my tweet has been successfully sent with the following error on the top of the page:
PHP Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/init.php(301) : eval()'d code on line 5
However, nothing is published into my Twitter account (I use both a test account on my vbulletin and test twitter account).
Beside this, nowhere and never appears the link to "Tweet this post". Only when I use the default template (which is what I don't want) and it returns the same error as above.
At last, I am using vbulletin 3.8.4 and my board has been translated into french.
Thank for any idea how to debug this.
Quote:
Originally Posted by puertoblack2003
i do have that same error.But that just recently occured.but i can still post to twitter. not sure if its twitter or the board.
waiting for a solution.
I am getting a similar error as well on 3.8.4. I can still post to twitter without issue
PHP Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/init.php(304) : eval()'d code on line 613
Also when a user is logged in who has not setup there VBTwitter options and they try to tweet the following errors occur, and they have to hit the browser back button.
PHP Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/init.php(304) : eval()'d code on line 613
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3277) in [path]/tweet.php on line 12
I am getting a similar error as well on 3.8.4. I can still post to twitter without issue
PHP Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/init.php(304) : eval()'d code on line 613
Also when a user is logged in who has not setup there VBTwitter options and they try to tweet the following errors occur, and they have to hit the browser back button.
PHP Code:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/init.php(304) : eval()'d code on line 613
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/class_core.php:3277) in [path]/tweet.php on line 12
Any ideas?
Thanks this is an awesome hack
I'm still looking at to what the original error is, but the tweet link shouldn't appear to those who haven't set it up.
I'm still looking at to what the original error is, but the tweet link shouldn't appear to those who haven't set it up.
I wil try re-installing and see what happens. I will post back with results
Thanks
Edit:
I re-installed and I am still seeing the same issues. I checked out this site which has your mod installed and when I click on the "tweet this post" icon it takes me to twitter and asks for my login info. How can I make this happen for my forum as well, am I missing something?