Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
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
  #612  
Old 09-05-2009, 07:42 PM
designBox's Avatar
designBox designBox is offline
 
Join Date: Oct 2003
Location: Europa
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
I will look into it, vBulletin version?
Any update on this?
Reply With Quote
  #613  
Old 09-06-2009, 12:13 AM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you tell me what line 301 is in your init.php?
Reply With Quote
  #614  
Old 09-06-2009, 08:13 PM
mattwmc2001 mattwmc2001 is offline
 
Join Date: Jun 2009
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sdavis2702 View Post
Awesome hack thanks alot!

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.

version 3.83

*Found a fix: https://vborg.vbsupport.ru/showpost....&postcount=590

Couple posts or so below tells you where to but the code in the postbit_legacy

Now how to put an image there?
Reply With Quote
  #615  
Old 09-08-2009, 07:19 AM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This Mod will still not work. Clicked Link "Tweet this Thread" and nothing shows up at Twitter.
Reply With Quote
  #616  
Old 09-08-2009, 06: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 redlabour View Post
This Mod will still not work. Clicked Link "Tweet this Thread" and nothing shows up at Twitter.
Set up your account?
Reply With Quote
  #617  
Old 09-11-2009, 07:02 PM
surfer2124 surfer2124 is offline
 
Join Date: Sep 2009
Location: NJ
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by designBox View 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:
Warningarray_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 View Post
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:
Warningarray_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:
Warningarray_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/init.php(304) : eval()'d code on line 613

WarningCannot modify header information headers already sent by (output started at [path]/includes/class_core.php:3277in [path]/tweet.php on line 12 

Any ideas?


Thanks this is an awesome hack
Reply With Quote
  #618  
Old 09-12-2009, 06:35 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 surfer2124 View Post
I am getting a similar error as well on 3.8.4. I can still post to twitter without issue

PHP Code:
Warningarray_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:
Warningarray_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/init.php(304) : eval()'d code on line 613

WarningCannot modify header information headers already sent by (output started at [path]/includes/class_core.php:3277in [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.
Reply With Quote
  #619  
Old 09-12-2009, 11:19 PM
surfer2124 surfer2124 is offline
 
Join Date: Sep 2009
Location: NJ
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
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?
Reply With Quote
  #620  
Old 09-13-2009, 05:34 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That uses v1.0.4, which version do you have installed?
Reply With Quote
  #621  
Old 09-13-2009, 07:46 PM
surfer2124 surfer2124 is offline
 
Join Date: Sep 2009
Location: NJ
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
That uses v1.0.4, which version do you have installed?
v1.0.4


I am also running the following hacks, doea anyone know of any conflicts I overlooked?

Cyb - Advanced Forum Rules 4.0.2
Debug Mode 1.0.0
Enhanced Captcha Image Verification 1.11
v3 Arcade 1.1.1
vB Nexus 1.0
vbStopForumSpam 0.6
vBTwitter 1.0.4
vBulletin Tweet Poster 1.0.6


Edit: King it looks like is being caused by VBnexus. Once I disable it I have no issues and I am getting the same result as the forum listed above.


Thanks for the assistance
Reply With Quote
Reply


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 03:37 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09562 seconds
  • Memory Usage 2,386KB
  • 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
  • (7)bbcode_php
  • (8)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