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!

Mosh 07-27-2010 04:18 AM

I am going to remind everyone who insists on installing this hack yet again, that it will just stop working in less than three (3) weeks time:

IMPORTANT NOTICE: On Monday 16th August 2010 this hack will cease to work unless the author updates this hack to use OAuth authentication, as that is the date Twitter is turning off Basic authentication (which is what this hack is currently using) and thus only allowing the use of OAuth authentication (see this announcement by Twitter - http://dev.twitter.com/announcements for more information).

mmacrypt 08-01-2010 05:52 AM

Thanks Mosh for the Update, mine went to crap tonight but I'm not sure if it's what you are talking about or not. It's still posting to Twitter but I'm getting this now.

Code:

Internal Server Error on line 229 in /home6/mmacrypt/public_html/forum/twitter.php
#0 /home6/mmacrypt/public_html/forum/twitter.php(648): Twitter->doCall('statuses/update...', Array, true)
#1 /home6/mmacrypt/public_html/forum/newthread.php(262) : eval()'d code(31): Twitter->updateStatus('Rampage? Jackso...')
#2 /home6/mmacrypt/public_html/forum/newthread.php(262): eval()
#3 {main}


Warning: Invalid error type specified in [path]/vb/vb.php on line 284


IsMaR 08-01-2010 10:45 AM

Quote:

Originally Posted by Mosh (Post 2075078)
I am going to remind everyone who insists on installing this hack yet again, that it will just stop working in less than three (3) weeks time:

IMPORTANT NOTICE: On Monday 16th August 2010 this hack will cease to work unless the author updates this hack to use OAuth authentication, as that is the date Twitter is turning off Basic authentication (which is what this hack is currently using) and thus only allowing the use of OAuth authentication (see this announcement by Twitter - http://dev.twitter.com/announcements for more information).

You going to make updated version?

Mosh 08-02-2010 12:33 AM

Quote:

Originally Posted by IsMaR (Post 2077567)
You going to make updated version?

This is not my hack, so the hack author needs to update this hack to work with OAuth authentication.

However, I upgraded my hack to use OAuth authentication a month ago, see my vBulletin2Twitter hack for more information.

doobiefillin 08-02-2010 03:01 AM

is there any way to focus my tweets to new threads made in a specific forum instead of the whole site?

will this mod be supported for future Twitter updates?

godtfred 08-02-2010 01:56 PM

Brilliant,works like a charm, thanks.

Generates a lot more traffic too !!

microlight 08-05-2010 07:28 PM

Thanks, worked a tread once I'd stopped the shortening of the threads.

paradox1666 08-06-2010 11:34 AM

please help me as ap

error:
Code:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/newthread.php(274) : eval()'d code on line 4


my hook code:

Code:

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


caciocode 08-09-2010 02:17 AM

I get this error:

Fatal error: Class 'Twitter' not found in *REMOVED*sheersoftware.com/newthread.php(273) : eval()'d code on line 17

Please help. Great mod by the way.

caciocode 08-09-2010 02:19 AM

I have uploaded the files in the root directory.

caciocode 08-09-2010 02:35 AM

Fixed it! Just moved the require_once 'twitter'; to the top.

Is that safe?

caciocode 08-09-2010 09:14 PM

Is it safe to not shorten the links? I think it might add some SEO advantages if I don't shorten the links/urls

TalkDisneyChann 08-15-2010 05:23 AM

Problem here. After the thread is tweeted, it says the thread title, then 'array'. There is no bit.ly link. How can I fix this?

acyk 08-15-2010 01:30 PM

i have a question here

can I add more than two exclude forum here ?

such as

$excludedForums = array(7, 12,123,23,142,343,221,25,442);

In my twitter , it shows " My title name Array "

there is no link and no url , so I think it won't work more than two forums id

Videx 08-15-2010 02:50 PM

Quote:

Originally Posted by acyk (Post 2084238)
can I add more than two exclude forum here ?
In my twitter , it shows " My title name Array "

Sure. If it really twits a line of text like that then you must have messed up the edit somehow. I'd get rid of that space before the 12 for starters. But read back a page. This is going to stop working any day now, so you're wasting your time messing with it.

caciocode 08-18-2010 12:37 AM

There has been some changes with twitter. Will this affect this mod?

Videx 08-18-2010 01:27 AM

Quote:

Originally Posted by caciocode (Post 2085548)
There has been some changes with twitter. Will this affect this mod?

OMG do you read at all?

YES THIS MOD WILL STOP WORKING 8/30/2010. EVERYONE STOP INSTALLING IT FOR GOD'S SAKE!

caciocode 08-18-2010 01:56 AM

Should we expect something similar soon?

Videx 09-01-2010 01:19 AM

The direct replacement for this mod is here: vBulletin2Twitter

Now people, please don't reply to this thread any longer as it will just bump this information lower. This particular mod no longer works because Twitter changed their requirements. Please go to the mod above.

iguano 09-01-2010 07:09 AM

Quote:

Originally Posted by Videx (Post 2085556)
YES THIS MOD WILL STOP WORKING 8/30/2010. EVERYONE STOP INSTALLING IT FOR GOD'S SAKE!


But why works again to me?

StokoE 09-01-2010 10:49 AM

Quote:

Originally Posted by iguano (Post 2092325)
But why works again to me?

Works for me too.. I just installed it today

MagiKelly 09-01-2010 07:51 PM

Working fine for me too.

Looks like an attempt to steel a hacks users and try to get them to then upgrade to the paid version o their hack.

If there was a real issue with this hack why not let the original developer upgrade it as required as happens with other hacks.

So, just to repeat. My site is still tweeting away to its hearts content. are there actually any users of this hack who have experienced any problem since this deadline?

Videx 09-01-2010 09:08 PM

I have no clue why Basic Auth is still working. Their latest blog entry on 8/30 reiterates that oauth will be required as of 9/1/10.
Twitter Applications and OAuth
http://www.computerworld.com/s/artic...7&pageNumber=1

Oh, and just to clear things up - the author of the new version doesn't charge for it. He only charges for support. Myself, in the spirit of supporting vb authors, bought an $11 subscription even though no support is required by me - it worked fine right out of the box.

amagab 09-02-2010 12:53 AM

Mine is not working anymore. :-(

Videx 09-02-2010 01:44 AM

I imagine they have a whole slew of servers and some will go down quicker than others.

BTW, I forgot Mosh does currently charge for the latest 404 version of his hack. But he'll be releasing it in a couple weeks for free, and in the meantime if you really don't think it's worth it, the 403 (free) version works just fine.

vilhiem 09-02-2010 02:47 AM

Mine is not working either as of this evening.

Getting an authentication error.

vbreal 09-02-2010 04:28 PM

*edit*

MagiKelly 09-02-2010 06:31 PM

My apologies for my earlier post. This mod has now stopped working on my forum and I am in the process of installing the new one.

mmacrypt 09-02-2010 07:28 PM

Quote:

Originally Posted by Videx (Post 2092662)
I imagine they have a whole slew of servers and some will go down quicker than others.

BTW, I forgot Mosh does currently charge for the latest 404 version of his hack. But he'll be releasing it in a couple weeks for free, and in the meantime if you really don't think it's worth it, the 403 (free) version works just fine.

Thank you for you input. I had read this so I knew it "could" be coming. As soon as I had a problem this morning, I knew what to do and where to look so again, thank you. I will look at installing the other Twitter mod tonight.

StokoE 09-02-2010 08:57 PM

Mine isnt well either.. stopped working for me too :( boo hoo


All times are GMT. The time now is 05:16 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.01873 seconds
  • Memory Usage 1,826KB
  • 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
  • (3)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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