vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vBulletin to Twitter, live tweets of new threads (https://vborg.vbsupport.ru/showthread.php?t=234288)

carrlos 09-03-2010 01:50 AM

This hack will no longer work because it does not support "OAuth" authorization. I have switched to Twitterfeed and it works like clockwork! ;)

Videx 09-03-2010 02:08 AM

Twitterfeed has serious limits which make it a less attractive alternative to direct posting via mod. Though I still do use it to post to FB since there is no mod for that.

*) Updates are at best every 30 minutes.
*) Maximum 5 updates every 30 minutes.

DAMINK 09-03-2010 04:52 AM

Yep not working anymore.
Time to switch.

Sparrow-Sean 09-03-2010 11:10 AM

Damn, such a good mod that now does not work, GRRR.

caciocode 09-04-2010 01:55 AM

What changes do we have to make to make it work?

This forum is dying because this is not working anymore, please help.

Videx 09-04-2010 02:02 AM

Quote:

Originally Posted by caciocode (Post 2093500)
What changes do we have to make to make it work?

This forum is dying because this is not working anymore, please help.

https://vborg.vbsupport.ru/showpost....&postcount=509

MikeCyber 09-05-2010 02:27 PM

edit, nevermind

fountainmass 09-06-2010 07:27 AM

I just got this working again. It was pretty simple.

First, like with the other mods, you will need to register a new Twitter Application (while logged with your normal Twitter account) - http://dev.twitter.com/apps/new

Note down the "Consumer Key" and "Consumer Secret" (Under App Details) as well as the "Access Token" and "Access Token Secret" (under My Access Token on the App details screen).

Step 1: Download Tijs Verkoyen's new twitter.php file (which supports OAuth) - http://classes.verkoyen.eu/modules/t...tter_2_0_1.zip

Step 2: Edit the file.
  1. add your Access Token to "private $oAuthToken = " (line 88)
  2. add your Access Token Secret to "private $oAuthTokenSecret =" (line 96).

Step 3: Upload it to the root directory of your forum (ie. replace your old twitter.php)

Step 4: Edit your vBulletin module, and change these two lines:

PHP Code:

$twitter = new Twitter('<twitter username>','<twitter password>');
$twitter->updateStatus($tweet); 

to

PHP Code:

$twitter = new Twitter('<Twitter Consumer Key>''<Twitter Consumer Secret>');
$twitter->statusesUpdate($tweet); 

All should be sweet now. :D

At least, it was for me...

Alecsmith 09-06-2010 11:19 AM

@ fountainmass Thanks for tip but its still giving error so i removed it.

Videx 09-06-2010 02:39 PM

Quote:

Originally Posted by fountainmass (Post 2094459)
I just got this working again. It was pretty simple.

At least, it was for me...

Not nearly as simple as just installing a mod (vBulletin2Twitter). Out of curiosity, why did you go to all this trouble instead?


All times are GMT. The time now is 03:46 AM.

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.01756 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete