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)

Nordinho 01-27-2010 06:34 PM

Quote:

Originally Posted by buro9 (Post 1968233)
@Nordinho

I'm using vbseo, and I'm using both 3.8 and 4.0. So no, it's not vbseo that is causing it, and it's not 3.8 causing it.

Could it be this: "CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode "?

Are you in safe mode?

Nope, I'm not in safe mode.

buro9 01-27-2010 06:56 PM

@Nordinho

It appears to be a PHP cURL thing.

Could you try inserting this at line 136 (just after the CURL options) in bitly.php
[edit]snippped, see post 22[/edit]

IF twitter.php also needs it, then it's line 161 of that (after the options) where it will need to be inserted.

Try just putting it in bitly.php to start with and let me know how it goes.

LbR 01-27-2010 06:58 PM

Works Now :D

utahraves 01-27-2010 06:59 PM

I installed this, followed all directions, do not get errors, but do not see the post happening on Twitter.
twitter.com/utahraves
Posted several tests then deleted them after wards but still not posting

EDIT: Ahhhh, It wasn't really clear to me the ARRAY deal. I believe I fixed it now. I'll test

buro9 01-27-2010 07:13 PM

Quote:

Originally Posted by LbR (Post 1968260)
Getting this error

PHP Code:

You must be authenticated to access shorten on line 193 in /home/emonxco/public_html/forum/bitly.php
#0 /home/emonxco/public_html/forum/bitly.php(382): Bitly->doCall('shorten', Array)
#1 /home/emonxco/public_html/forum/newthread.php(262) : eval()'d code(10): Bitly->shorten('http://www.emon...')
#2 /home/emonxco/public_html/forum/newthread.php(262): eval()
#3 {main}


WarningInvalid error type specified in [path]/vb/vb.php on line 284 


The pertinent line: You must be authenticated to access shorten

Have you put in your bit.ly and twitter details?

buro9 01-27-2010 07:18 PM

Quote:

Originally Posted by utahraves (Post 1968261)
EDIT: Ahhhh, It wasn't really clear to me the ARRAY deal. I believe I fixed it now. I'll test

I've just made it clearer by splitting it out, and I've set it to exclude nothing by default.

LbR 01-27-2010 07:20 PM

Quote:

Originally Posted by buro9 (Post 1968268)
The pertinent line: You must be authenticated to access shorten

Have you put in your bit.ly and twitter details?


I have added Twitter Details and Bit.Ly details too i am not confirmed about this line

$shortUrl = $bitly->shorten('http://www.yourforumsdomain.com/showthread.php?t='.$newpost[threadid]);

utahraves 01-27-2010 07:22 PM

Works now. The array is for forums that are NOT supposed to post twitter updates... got it :)

Moondust 01-27-2010 07:23 PM

Quote:

Originally Posted by buro9 (Post 1968233)
@Moondust

Your error appears to be this: "You must be authenticated to access shorten "

Did you insert your bit.ly username and API key?
You probably want to insert your twitter details too.

The instructions do say to put your values in there.

Yes, i have edit the Bit.ly username and Api Key and my Twitter Account Detail in the Plugin PHP Text.

In Bit.ly i have put my twitter account details

buro9 01-27-2010 07:25 PM

Quote:

Originally Posted by LbR (Post 1968278)
I have added Twitter Details and Bit.Ly details too i am not confirmed about this line

$shortUrl = $bitly->shorten('http://www.yourforumsdomain.com/showthread.php?t='.$newpost[threadid]);

Did you put your domain in there?


All times are GMT. The time now is 05:56 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.01560 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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