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)

Videx 07-19-2010 02:58 PM

Pretty obviously a server error, but you didn't tell us a thing about your server. So try it without bitly.

A reminder: This mod is going to stop working in August since it has not been modified to work with Twitter's new oauth. Everyone should stop fooling with it.

ErnieTheMilk 07-22-2010 07:27 AM

I've been trying for awhile now to get this working on 3.8.4 with no luck :(

I get no error messages, but it posts nothing to twitter at all..

Here is my code, can anyone see anything obviously wrong with it?

Quote:

// The array below are the ids of non-public forums, update these to be your admin forum ids or anything non-public by default
$excludedForums = array(27);

// If you are having trouble getting bitly URL shortening to work... disable it!
$useBitly = false;

if (!in_array($foruminfo[forumid], $excludedForums)) {
$shortUrl = 'http://www.mysite.net/showthread.php?t='.$newpost[threadid];

if ($useBitly) {
// http://classes.verkoyen.eu/bitly
require_once 'bitly.php';
$bitly = new Bitly('username','API Key');
$shortUrl = $bitly->shorten($shortUrl);
}

$tweet = '';
if (isset($newpost['prefixid']) && $newpost['prefixid'] != '') {
$tweet = $vbphrase['prefix_'.$newpost['prefixid'].'_title_plain'].' ';
}
$tweet .= $newpost['title'].' '.$shortUrl;

// http://classes.verkoyen.eu/twitter/
require_once 'twitter.php';
$twitter = new Twitter('twitname','password');
$twitter->updateStatus($tweet);
}

Thanks

Videx 07-22-2010 02:26 PM

It looks okay to me. But why are you screwing with it? It's going to stop working in a couple weeks regardless what you do. Stop messing with this one people!

The working one is at vBulletin2Twitter .

ErnieTheMilk 07-22-2010 02:40 PM

Quote:

Originally Posted by Videx (Post 2072930)
It looks okay to me. But why are you screwing with it? It's going to stop working in a couple weeks regardless what you do. Stop messing with this one people!

The working one is at vBulletin2Twitter .

Thanks, so why doesn't it work :D

And why is this one going to stop working in a week or so? I don't understand why it should stop working...

Videx 07-22-2010 02:57 PM

Quote:

Originally Posted by ErnieTheMilk (Post 2072937)
And why is this one going to stop working in a week or so? I don't understand why it should stop working...

Twitter is switching to oauth - a different type of authentication. They've extended the date once already; hard to say if they will do it again.

bandare 07-22-2010 03:18 PM

I've done loads of searching now but don't understand why there isn't a plugin that can automatically upload an article to twitter from the CMS rather than from forum. Could someone explain the difficulty please?

ErnieTheMilk 07-22-2010 03:28 PM

Quote:

Originally Posted by Videx (Post 2072942)
Twitter is switching to oauth - a different type of authentication. They've extended the date once already; hard to say if they will do it again.

Ah OK, many thanks :)

Will have to figure out another way round it!

Dj Smuggla 07-24-2010 01:22 PM

Thanks buro this works great...

nikosb 07-26-2010 07:14 PM

Thanks
Works fine with vb 4.0.5

blacksurfer 07-27-2010 02:55 AM

Finally got it to work. I forgot to make the plug-in active. Duh!


All times are GMT. The time now is 04:35 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.01540 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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