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)

betts02 06-01-2010 08:11 AM

Used the files from here and got it working fine

Only thing i ask is ?

If i do not enter any forum ID's to be restricted, Even though they are restricted on my site, Will it show the thread to members who have no access ?

Cheers

anthony parsons 06-01-2010 09:15 AM

Quote:

Originally Posted by mtlcore (Post 1984315)
Here what I did, I went into twitter.php and set the following to false.
$options[CURLOPT_FOLLOWLOCATION] = false;

You are a lad... thank you. This was the fix for me... I just kept getting an XML error in 4.0.3PL1 and running on my own VPS... headache material. That did the trick though with bit.ly turned off.

Videx 06-01-2010 05:00 PM

Quote:

Originally Posted by betts02 (Post 2046422)
If i do not enter any forum ID's to be restricted, Even though they are restricted on my site, Will it show the thread to members who have no access ?

Cheers

Currently, yes. All activity in all forums is sent unless you specifically exclude (or include) them.

MorgUk 06-01-2010 08:50 PM

Couldn't get it going, keeps flagging errors. Did exactly what you said and fix's others had, version 4.0.3 Thanks for trying though :(

michelle86 06-03-2010 02:27 PM

Had to uninstall this. Everytime I would create a new post, I would try to reload the page, and it would give me a database error which would last for a couple minutes until I was able to successfully view the page. Also, the visitor count went up by 20-60 visitors. I have live Clicky Analytics stats, and would have only a few visitors on the page, not 64 as it once claimed! I don't know what's up with this mod, but everything has gone back to normal after uninstalling.

iguano 06-03-2010 02:54 PM

Quote:

Originally Posted by michelle86 (Post 2047671)
Had to uninstall this. Everytime I would create a new post, I would try to reload the page, and it would give me a database error which would last for a couple minutes until I was able to successfully view the page.

see this:

Originally Posted by imported_nimbus View Post

Let me share my solution.

bitly.php:
I set the following Curl options:
$options[CURLOPT_FOLLOWLOCATION] = false;
$options[CURLOPT_HEADER] = false;

and for twitter.php:
$options[CURLOPT_FOLLOWLOCATION] = false;

After this, works to me

Michlerish 06-04-2010 08:18 AM

This is really awesome, thank you. :)

sportsbuddys 06-07-2010 05:59 AM

Works great! Very nice hack :)

cbehan 06-07-2010 07:09 PM

OK, I followed the instructions, and the process is creating the bit.ly link and the twitter post with the link, but there's no thread title information or thread ID in the link or twitter post.

That has to be something with the plugin, correct?

JHUMON 06-08-2010 10:35 AM

not its working nice.Thanks

pant 06-08-2010 11:43 AM

There's a better mod available that is easier to install and has lots of lovely options.

giorgino 06-08-2010 11:52 AM

Quote:

Originally Posted by pant (Post 2050402)
There's a better mod available that is easier to install and has lots of lovely options.

link? :)

xabo 06-08-2010 12:00 PM

Hello

Im getting this error when posting in my forum:

Fatal error: Call to undefined method Twitter::updateStatus() in /home/raverno/public_html/oddseksperten.no/newthread.php(273) : eval()'d code on line 26

Any clue?

Videx 06-08-2010 12:49 PM

Quote:

Originally Posted by xabo (Post 2050411)
Fatal error: Call to undefined method

That's a new one. You sure you uploaded the classes files to the right place?

BTW, Twitter is changing authorization at the end of the month and this mod is presumably going to stop working then.

pant 06-08-2010 08:15 PM

Quote:

Originally Posted by giorgino (Post 2050405)
link? :)

https://vborg.vbsupport.ru/showthread.php?t=236278

Mosh 06-08-2010 10:45 PM

Quote:

Originally Posted by Videx (Post 2050425)
BTW, Twitter is changing authorization at the end of the month and this mod is presumably going to stop working then.

Yes, Videx is correct, this hack will stop working, the same as with my version.

pant 06-09-2010 07:29 AM

Would it not be fairly easy for a coder to get it working again?

ragtek 06-14-2010 09:26 AM

Is there any working add-on for vB4?

Videx 06-14-2010 11:40 AM

Quote:

Originally Posted by ragtek (Post 2053358)
Is there any working add-on for vB4?

You mean like the one linked 3 posts above yours? :)

Note that this whole thing is very dependent on lots of server settings and some people have been unable to get it working.

CRDeveloper 06-15-2010 03:57 AM

Tonight i started getting this error after new threads:

Code:

Bad Gateway on line 229 in /home/toxxxic/public_html/foro/twitter.php
#0 /home/toxxxic/public_html/foro/twitter.php(648): Twitter->doCall('statuses/update...', Array, true)
#1 /home/toxxxic/public_html/foro/newthread.php(262) : eval()'d code(26): Twitter->updateStatus('Lesbians Becomi...')
#2 /home/toxxxic/public_html/foro/newthread.php(262): eval()
#3 {main}


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

The tweets still working but what about that??

I red about this mod and the other one will stop working, so is twitter.com already making changes???

Whats up with this mod https://vborg.vbsupport.ru/showthread.php?t=216346 ?
That one uses OAuth authentication but for 3.8.x boards...

Anyways im confuse, im gonna have to uninstall this mod since it will stop working and tell my users to tweet them selfs haha

merk_aus 06-15-2010 04:34 AM

Any assistance in getting this for the CMS only with Articles?

Crazyfruitbat 06-15-2010 08:33 AM

yeah I'm after the cms one too - that is way more important that twittering forum posts on my site

pant 06-15-2010 08:51 AM

The main concern should be to get this working with openauth or whatever you call it otherwise you can forget the CMS tweets altogether.

Videx 06-15-2010 01:52 PM

Quote:

Originally Posted by Crazyfruitbat (Post 2053919)
yeah I'm after the cms one too - that is way more important that twittering forum posts on my site

In our case most of our articles are promoted from the forums so have already been tweeted. New articles are usually bumped in the forums so get tweeted. No real need just to tweet a new article by itself.

merk_aus 06-15-2010 01:58 PM

Quote:

Originally Posted by Videx (Post 2054022)
In our case most of our articles are promoted from the forums so have already been tweeted. New articles are usually bumped in the forums so get tweeted. No real need just to tweet a new article by itself.

Maybe not for you but for those of us who run a news service with the message board there for fun there is a point.

Our articles are written into the CMS. Users who want to hang around after reading can then go to the forums and posts etc.

puppetmaster222 06-15-2010 02:47 PM

Is there any fix for when Twitter is over capacity? I get gnarly looking failed database messages when it's over-cap and I try to post a thread. Turning it off for now even though it is a nice mod. I rather just not risk the site looking like it totally died on new members making Intro threads or something.

Videx 06-15-2010 04:14 PM

Quote:

Originally Posted by merk_aus (Post 2054026)
Our articles are written into the CMS.

Didn't this just come up somewhere? The CMS is just another forum, isn't it? All articles there start a thread in the CMS forum vBCms Comments. So why can't you tweet this forum? Maybe if it was unhidden?

AURFSCAN 06-16-2010 01:45 AM

Heres an error and Im assuming the attached image is the culprit. Apart from this happening once ...everthing works as it should thx


Code:


Bad Gateway on line 229 in /home/********/public_html/twitter.php
#0 /home/********/public_html/twitter.php(648):
Twitter->doCall('statuses/update...', Array, true)
#1 /home/********/public_html/newthread.php(262) : eval()'d code(26):
Twitter->updateStatus('Greetings (my i...')
#2 /home/********/public_html/newthread.php(262): eval()
#3 {main}


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


cronjob78 06-16-2010 01:58 PM

A cool option would be if seperate forums could be assigned to seperate tweets rather than just being able to exclude certain forums. The forum I admin has very diverse sub-forums so anyone interested in music doesn't want sports tweets and vice versa.

I tried to be clever and rename the .xml file and rename the productID and <title> in the file itself. It imports fine but doesn't show up in admincp->settings alongside the first copy which is a bit perplexing.

If anyone has a suggestion I'd love to hear it.

Might be something worth considering to include in the hack for the future.

Videx 06-16-2010 03:00 PM

Quote:

Originally Posted by AURFSCAN (Post 2054281)
Heres an error and Im assuming the attached image is the culprit.

Ha. That's Twitter's "Fail whale". Their servers have been overwhelmed by the World Cup. Word is that they're going to have to take the whole thing down for a while soon to implement changes.

Quote:

Originally Posted by cronjob78 (Post 2054532)
A cool option would be if seperate forums could be assigned to seperate tweets rather than just being able to exclude certain forums

No doubt the mod can use a lot of improvement. But you might have better luck posting over at https://vborg.vbsupport.ru/showthread.php?t=236278 where it's an actual mod, not just a code hack. Be advised he charges for support, but if he can do this I bet others may help you pay for it.

sassou2009 06-17-2010 02:42 AM

Hi,

It's Working Fine and thank's but it does not support Arabic !

Micronichos 06-17-2010 07:41 PM

Working perfect, some problem with tildes in spanish, for example:

Remi Gaillard, posiblemente el tipo m?genuino de Internet

instead of

Remi Gaillard, posiblemente el tipo m?s genuino de Internet

If you need my help contact me ;) thank you for such useful mod.

vilhiem 06-19-2010 12:38 AM

OK ... I'm totally confused.

I did everything as instructed ... but just so you know, in your PHP code displayed here ... NOTHING in the code is BOLDED !!!

So, I put in the variables for everything between the '< and >'
Set up all the Twitter and Bit accounts ... put in the info ...

And ... NOTHING happens (no errors either).

So now it makes me wonder if the instructions are not being exactly clear.
For instance, do I need to enter something where it says ... 'prefixid' ...?

Or said another way ... am I supposed to modify everything between the ... ' and ' ...?
Because the instructions say replace either the BOLD (which doesn't show) or everything between the '< and >' (which still doesn't account for the URL, because it's not between the < and> )

Videx 06-19-2010 01:47 AM

The bolding may be long gone, but did you read the first few pages of this mod? They make it very clear what needs to be done. Never ever install a mod without reading the entire thread.

Juggernaut 06-19-2010 01:53 AM

I'm not very good at installing mods, but I installed this mod a while back, following the instructions here, and didn't have any problems at any time, with the installation, the instructions are very clear :D

vilhiem 06-19-2010 02:15 AM

ok ... my bad ... got it working (sorry I jumped the gun there)

But I do have a question ... it works great ... but is there a simple way to get this to work on "replies" ...? I saw someone in this thread posted a possible solution ... just not sure if it's the best.

Thnx!

LuisManson 06-19-2010 05:36 PM

there seems to be an upgrade to twitter.class here:
http://classes.verkoyen.eu/twitter_oauth

no idea if the api is the same

vilhiem 06-20-2010 03:08 AM

so ... I incorporated the mod to this mod (contributed by lhridley) ... the one allowing for 'replies' to work too ... and it worked fine! Just be sure to be careful with the code, there's a missing "m" in the ".com" portion of the URL (and I think a few other things). Otherwise, works great!

QUESTION: Is there any way I can transfer the "tags" from new posts to the "#keywords" in the code for this plugin ...?

Thanks!

vilhiem 06-21-2010 04:14 PM

One more question ...

Not sure if anyone else here has noticed this ... but it doesn't seem to work if the new thread is "auto-generated". For instance, I'm using a couple mods that make new threads, yet no "twits" are generated:

(1) "BBR - Welcome Thread Upon Registration"; and
(2) "auto-reply"

jhellein 06-22-2010 02:14 PM

Do I need to create a separate plugin to auto-tweet blog posts in 4.0.3? Will the same code work or does it need to be modified? Thank you.


All times are GMT. The time now is 05:55 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.01640 seconds
  • Memory Usage 1,829KB
  • 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_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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