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!
The million dollar answer is I don't do any converting once so ever. That tinyurl converting is not done by my modification.
Quote:
Originally Posted by plumbingskool
Hi ,
Can I just make a simple suggestion?
Hope about just doing something like this:
PHP Code:
<a href="http://twitter.com/home?status=Currently reading <?php the_VB THREAD FUNCTION(); ?>" title="Click
to send this page to Twitter!" target="_blank">Share on This On Twitter!</a>
AND THEN
that will bring them to twitter and they can login or it will post the message if they are already logged in as most people are all day long anyhow.
I think trying to bridge the log in is just way over board for a simple "twitter"
I love the module though, and I would just just the above to keep it simple
That won't be done as it'll be bridged in several new ways in the next update.
Quote:
Originally Posted by member007
I installed this and test it out on twitter and it posts a link to Check this out! http://tinyurl.com/dxk7kq . When I click on this link my spyware blocks it said this site is a spy site. Beware.
That's the fault of either (a) your site being considered spam or (b) tinyurl is considered SPAM. It's not my modification.
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.
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/password/public_html/forums/includes/twitter.php on line 29
It appears as though I have all my requirements installed on the server.
Please, if you know...I'm just wondering if you know what code I need to change so that the "tweet" title reflects the title of the post "tweeted".
For the record, this took 69 lines of code in a preliminary testing stage. With error checking it does error checking in several steps:
Format Tweet with post title.
Find length of tweet + link, if under 140, skip to the last number.
If above 140, it uses the TinyURL API to create a shortened link and recreates the Tweet.
Rechecks length, if under 140 skip to the last step.
If above 140, it takes the post title and shrinks it so that the tweet is exactly 140 characters and adds a '...' to the end of the chopped off title.
Send Tweet
This needs to be coded for thread titles, so it'll be at least another 69 lines of code, compared to the 10 it was before this detailed tweet functionality.
oh i see. is it possible to release a patch for this version with this functionality?
i know the members are burning for it. It's just that 1.1 is feature packed. I wonder if it will take a good deal of time to code and debug. I realize you do this for free so your time and availability has to be considered to.
That's a major feature I'm quickly depending on your mod.
oh i see. is it possible to release a patch for this version with this functionality?
i know the members are burning for it. It's just that 1.1 is feature packed. I wonder if it will take a good deal of time to code and debug. I realize you do this for free so your time and availability has to be considered to.
That's a major feature I'm quickly depending on your mod.
I am no longer developing 1.0.x; it would require fundamental changes to how the plugin works, which is why I am saving it for 1.1 / 2.0.
is it right to be posted with link not by title?
my title is only "introduce yourself" why its posted as a link in twitter? Check this out! http://myurl/tt.php?i=14444
cant change to Check this out! Introduce yourself
and the last one, why it has to be with this ess than 5 seconds ago from vBTwitter
can i change vbtwitter to WEB or myurl? i dont want ppl mislink to here.
thanks for this great mod kovivor