Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
vBTwitter Details »»
vBTwitter
Version: 1.0.4, by King Kovifor King Kovifor is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

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
  1. Upload files in the /upload/ folder of the .zip into the directories as is.
  2. Install product file.
  3. Register an OAuth Application here, using:
  4. Click Install on vB.org
  5. Tell Your users.
  6. Enjoy
Upgrading to v1.0.4
  • Upload all files, overwrite everything.
  • Install product file.
  • Register an OAuth Application here, using:
  • Gain and copy the Consumer Key & Secret into vBulletin Options.
Upgrading to v1.0.3 or before.
  • Upload all files, overwrite everything.
  • install product file.
  • Remove template edits. For the record, they are here:
    • Open the postbit or postbit_legacy template (depending on what you use). Find:
      HTML Code:
      <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
      Add before that:
      HTML Code:
      <if condition="$post['twitter_username']"><a href="tweet.php?do=post&amp;id=$post[postid]&amp;c=$post[postid]">Tweet this post!</a></if>
    • Open the SHOWTHREAD template.
      Find:
      HTML Code:
      	<if condition="$show['addpoll']">
      	<tr>
      		<td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
      	</tr>
      	</if>
      Add After:
      HTML Code:
      	<if condition="$vbulletin->userinfo['twitter_username']">
      	<tr>
      		<td class="vbmenu_option">
      			<a href="tweet.php?do=thread&ampid=$threadinfo[threadid]">Tweet This  Thread!</a>
      		</td>
      	</tr>
      	</if>
      Find:
      HTML Code:
      		<if condition="!$show['search_engine']">
      
      			<div><img class="inlineimg" src="$stylevar[imgdir_button]/printer.gif" alt="$vbphrase[show_printable_version]" vspace="1" /> <a href="printthread.php?$session[sessionurl]t=$threadid" rel="nofollow">$vbphrase[show_printable_version]</a></div>
      			<div><img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[email_this_page]" vspace="1" /> <a href="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=$threadid" rel="nofollow">$vbphrase[email_this_page]</a></div>
      		</if>
      Add After:
      HTML Code:
      		<if condition="$vbulletin->userinfo['twitter_username']"><a href="tweet.php?do=thread&amp;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!

Download Now

File Type: zip vBTwitter v1.0.4.zip (13.2 KB, 1233 views)

Screenshots

File Type: jpeg tweet1.jpg.jpeg (81.8 KB, 0 views)
File Type: jpeg tweet2.jpg.jpeg (89.5 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #232  
Old 03-05-2009, 01:51 PM
abroad abroad is offline
 
Join Date: Mar 2007
Posts: 231
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

get this error:

Call to undefined function mcrypt_get_iv_size() in /var/www/htm/profile.php(2155) : eval()'d code on line 16
Reply With Quote
  #233  
Old 03-05-2009, 02:50 PM
Lima Bean Lima Bean is offline
 
Join Date: Dec 2007
Location: Cody, Wyoming
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Regards,
Lima Bean
Reply With Quote
  #234  
Old 03-05-2009, 08:39 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by drsli View Post
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 View Post
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 View Post
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 View Post
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 View Post
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 View Post
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 View Post
get this error:

Call to undefined function mcrypt_get_iv_size() in /var/www/htm/profile.php(2155) : eval()'d code on line 16
You don't have mcrypt installed.
Reply With Quote
  #235  
Old 03-06-2009, 12:15 AM
SABRSox SABRSox is offline
 
Join Date: Apr 2007
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get the following error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in twitter.php on line 29
Reply With Quote
  #236  
Old 03-06-2009, 12:42 AM
smnet smnet is offline
 
Join Date: Feb 2009
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* smnet is waiting for 1.1 [/high]
Reply With Quote
  #237  
Old 03-06-2009, 06:11 AM
Cybertims Cybertims is offline
 
Join Date: Nov 2005
Location: Bedfordshire
Posts: 203
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Update your password, it should have an IV parameter stored with it.
Can you be a bit clearer? Do you mean change it? Not sure what you mean by "update your password"

Cheers.
Reply With Quote
  #238  
Old 03-06-2009, 11:59 AM
drsli's Avatar
drsli drsli is offline
 
Join Date: Jan 2008
Location: Germany
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
Hm. Are you sure you uploaded the new tweet.php?
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.

Thank you for this neat addon! Clicked Installed.
Reply With Quote
  #239  
Old 03-06-2009, 09:41 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SABRSox View Post
I get the following error:


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 View Post
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 View Post
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.

Thank you for this neat addon! Clicked Installed.
Glad you figured it out.
Reply With Quote
  #240  
Old 03-07-2009, 10:32 PM
wmlvb's Avatar
wmlvb wmlvb is offline
 
Join Date: May 2008
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ragtek View Post
Allright

In version 1.1 we added a tweetpopup menu to the navbar
Attachment 95799
For all users without js there will be a own page.

The second new thing(all followers of our tweet profil will know*g*) is, that now "everything" will work with ajax.
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
Reply With Quote
  #241  
Old 03-07-2009, 10:47 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wmlvb View Post
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:

http://screencast.com/t/CkcUQkUErUm

Notice the time stamp doesn't change. (Cause there is NO reload!)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12526 seconds
  • Memory Usage 2,378KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_html
  • (2)bbcode_php
  • (14)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete