vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - WS vBulletin Tweet Poster (https://vborg.vbsupport.ru/showthread.php?t=236278)

sose 05-11-2010 03:44 PM

Quote:

Originally Posted by CEO254 (Post 2003031)
Is there any way I can add "#Example" to the tweets?

I just went in and added a variable like this:

$posttitle = '#Example';

Right above this line:

$tweet = '';

Then, later in the code, I took this line:

$tweet .= $newpost['title'] . ' - ' . $shortURL;

And changed it to this:

$tweet .= $newpost['title'] . ' - ' . $shortURL . ' - ' . $posttitle;

You could replace #Example with any text.. It will show up at the end of the twitter message.

Uasuforos 05-11-2010 09:56 PM

Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in [path]/includes/twitter.php on line 189
/statuses/update.xml Could not authenticate you. Unauthorized on line 229 in /home/uasuforos/domains/uasuforos.com/public_html/includes/twitter.php
#0 /home/uasuforos/domains/uasuforos.com/public_html/includes/twitter.php(648): Twitter->doCall('statuses/update...', Array, true)
#1 /home/uasuforos/domains/uasuforos.com/public_html/newthread.php(273) : eval()'d code(33): Twitter->updateStatus('xzxczc - http:/...')
#2 /home/uasuforos/domains/uasuforos.com/public_html/newthread.php(273): eval()
#3 /home/uasuforos/domains/uasuforos.com/public_html/vbseo.php(1382): require('/home/uasuforos...')
#4 {main}

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

what problem?

Videx 05-11-2010 10:46 PM

Quote:

Originally Posted by Uasuforos (Post 2035406)
what problem?

The problem is that you haven't read the instructions. And I bet you didn't read through the rest of the thread before installing either. When installing mods you must do both, carefully.

delmarva 05-12-2010 02:00 PM

Quote:

Originally Posted by sose (Post 2035211)
There is a second link to the bitly.php file. Use that. It worked for me perfectly.

Sorry, but where is this "second link"? I also have the "Array" issue.

delmarva 05-12-2010 03:08 PM

Quote:

Originally Posted by sose (Post 2035220)
I just went in and added a variable like this:

$posttitle = '#Example';

Right above this line:

$tweet = '';

Then, later in the code, I took this line:

$tweet .= $newpost['title'] . ' - ' . $shortURL;

And changed it to this:

$tweet .= $newpost['title'] . ' - ' . $shortURL . ' - ' . $posttitle;

You could replace #Example with any text.. It will show up at the end of the twitter message.

Could you please tell me where you added this variable? Do you have an example?

Thanks

p@ndu 05-13-2010 01:29 PM

thanks a lot

replys also working

thanks a lot

Bob_R 05-13-2010 02:25 PM

Guess it must be my web host though they haven't found/admitted anything.

The author here claims everything works. The twitter.php author claims his class works which I don't doubt. Don't understand how many could get it to work when you need to instantiate the Twitter class with your username and password. And no one has mentioned that aspect.

Someone is wrong/mistaken because it doesn't work for me.

Bob_R 05-13-2010 03:31 PM

Actually the only thing I did find out is that the actual server software my webhost uses is LiteSpeed instead of Apache, in most cases this will not cause an issue since LiteSpeed is far superior than Apache.

Weeds 05-21-2010 01:29 PM

When you post sometimes it looks like twitter is down. I comes up like strange code can not connect to this plug in. Maybe should just ask the plug in to move on not show the code. I try to post it next time i see it

pant 05-27-2010 06:19 PM

Works.

Big thank you!

Would be nice if we could specify the poster name in the tweet too but I realise you're a busy man :)

uaewebmaster 05-28-2010 06:18 AM

Installed , Working Great, Thanks !

Mosh 06-07-2010 08:29 AM

IMPORTANT NOTICE: Through no fault of my own, this hack will cease to work on Wednesday 30th June 2010 as Twitter is turning off Basic authentication and only allowing the use of OAuth authentication (this hack currently uses a Basic authentication Twitter class to tweet your threads/posts). Please see this announcement by Twitter - http://dev.twitter.com/announcements for more information. There is no ETA when this hack will be updated to use OAuth authentication.

pant 06-07-2010 08:40 AM

Bummer.

Videx 06-07-2010 01:45 PM

It's the twitter class that needs to be updated? Surely that can be done in three weeks?

pant 06-08-2010 08:16 PM

I was getting errors when I first installed but that's because I had uploaded the files to the wrong place.

LuisManson 06-15-2010 12:23 AM

any status on the 0auth update?

Webbstre 06-15-2010 12:31 AM

Oh wow, I was planning on using this when my site goes live. I may have to rethink my plan if there isn't an update available.

eif 06-17-2010 06:16 PM

I installed as per the instructions. No errors, nothing is happening.

After i make a new thread or post, nothing is coming on twitter.

Vb version - 3.6.10
Php version - 5.2.12
Curl and JSON installed..

Can anyone suggest what may be the problem?

Dragonsys 06-20-2010 03:45 PM

Quote:

Originally Posted by eif (Post 2055140)
I installed as per the instructions. No errors, nothing is happening.

After i make a new thread or post, nothing is coming on twitter.

Vb version - 3.6.10
Php version - 5.2.12
Curl and JSON installed..

Can anyone suggest what may be the problem?

grab the twitter.php which is attached to this post. This fixed it for me

Dragonsys 06-20-2010 03:51 PM

The twitter class file has been updated to use Oauth (http://classes.verkoyen.eu/twitter_oauth)
Now this product just needs to be updated to use the new class (I tested, it does not work as is)

a7lameza.com 06-20-2010 07:33 PM

thank you

Alecsmith 06-22-2010 08:56 AM

Installed working perfectly thanks :)

mimocherry 06-23-2010 11:55 PM

No matter what I do, I keep getting this error...

"invalid body on line 655 in /var/www/vhosts/website/httpdocs/forum/includes/twitter.php
#0 /var/www/vhosts/website/httpdocs/forum/newthread.php(274) : eval()'d code(33): Twitter->updateStatus('testtweee - htt...')
#1 /var/www/vhosts/website/forum/newthread.php(274): eval()
#2 {main}:

can someone please shed some light?

mimocherry 06-24-2010 12:03 AM

okay, I followed the thread, and upgraded it to 2.00, now I got this error message

does it work with VB 4.04?

Fatal error: Call to undefined method Twitter::updateStatus() in /var/www/vhosts/website/httpdocs/forum/newthread.php(274) : eval()'d code on line 33

BatCave 06-24-2010 12:15 AM

I tried searching the thread and didn't see much of an answer (sorry if it's there and I missed it) but can this be set up so that it posts live CMS articles to twitter?

pant 06-24-2010 06:04 AM

Quote:

Originally Posted by BatCave (Post 2058536)
I tried searching the thread and didn't see much of an answer (sorry if it's there and I missed it) but can this be set up so that it posts live CMS articles to twitter?

Not at present.

Dragonsys 06-24-2010 01:22 PM

Quote:

Originally Posted by mimocherry (Post 2058530)
okay, I followed the thread, and upgraded it to 2.00, now I got this error message

does it work with VB 4.04?

Fatal error: Call to undefined method Twitter::updateStatus() in /var/www/vhosts/website/httpdocs/forum/newthread.php(274) : eval()'d code on line 33

Do not use the OAuth twitter.php it does not work with this mod.
You need to use the twitter.php I mentioned earlier.

Quote:

Originally Posted by Dragonsys (Post 2056455)
grab the twitter.php which is attached to this post. This fixed it for me

Yes, this works perfectly on 4.0.4, on my site.

KURTZ 06-24-2010 05:43 PM

hi Mosh, just installed your hack onto my testing board, and when i try to create a new thread i got this:

Quote:

Invalid JSON-response on line 203 in /home/fniv/domains/fniv.it/public_html/latest/includes/bitly.php
#0 /home/fniv/domains/fniv.it/public_html/latest/includes/bitly.php(414): Bitly->doCall('shorten', Array)
#1 /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274) : eval()'d code(13): Bitly->shorten('http://www.fniv...')
#2 /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274): eval()
#3 {main}


Fatal error: Invalid JSON-response on line 203 in [path]/includes/bitly.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, Invalid JSON-response on line 203 in /home/fniv/domains/fniv.it/public_html/latest/includes/bitly.php , /home/fniv/domains/fniv.it/public_html/latest/vb/vb.php, 287, Array ([exception] => BitlyException Object ([] => Invalid JSON-response,[] => ,[] => 0,[] => /home/fniv/domains/fniv.it/public_html/latest/includes/bitly.php,[] => 203,[] => Array ([0] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/includes/bitly.php,[line] => 414,[function] => doCall,[class] => Bitly,[type] => ->,[args] => Array ([0] => shorten,[1] => Array ([longUrl] => http://www.fniv.it/latest/showthread.php?t=19))),[1] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274) : eval()'d code,[line] => 13,[function] => shorten,[class] => Bitly,[type] => ->,[args] => Array ([0] => http://www.fniv.it/latest/showthread.php?t=19)),[2] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/newthread.php,[line] => 274,[function] => eval))),[code] => 256)) called at [(null):0] #1 trigger_error(Invalid JSON-response on line 203 in /home/fniv/domains/fniv.it/public_html/latest/includes/bitly.php , 256) called at [/home/fniv/domains/fniv.it/public_html/latest/vb/vb.php:287] #2 vB::handleException(BitlyException Object ([] => Invalid JSON-response,[] => ,[] => 0,[] => /home/fniv/domains/fniv.it/public_html/latest/includes/bitly.php,[] => 203,[] => Array ([0] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/includes/bitly.php,[line] => 414,[function] => doCall,[class] => Bitly,[type] => ->,[args] => Array ([0] => shorten,[1] => Array ([longUrl] => http://www.fniv.it/latest/showthread.php?t=19))),[1] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274) : eval()'d code,[line] => 13,[function] => shorten,[class] => Bitly,[type] => ->,[args] => Array ([0] => http://www.fniv.it/latest/showthread.php?t=19)),[2] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/newthread.php,[line] => 274,[function] => eval)))) called at [(null):0]

Dragonsys 06-24-2010 07:55 PM

Quote:

Originally Posted by KURTZ (Post 2058941)
hi Mosh, just installed your hack onto my testing board, and when i try to create a new thread i got this:


Question:

I see an "INVALID_JSON" error

Answer:

Select is.gd in your AdminCP Options instead of bit.ly for url shortening.

KURTZ 06-24-2010 08:23 PM

Quote:

Originally Posted by Dragonsys (Post 2059016)
Question:

I see an "INVALID_JSON" error

Answer:

Select is.gd in your AdminCP Options instead of bit.ly for url shortening.

sure and got this:

Quote:

invalid body on line 655 in /home/fniv/domains/fniv.it/public_html/latest/includes/twitter.php
#0 /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274) : eval()'d code(33): Twitter->updateStatus('te st test test...')
#1 /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274): eval()
#2 {main}


Fatal error: invalid body on line 655 in [path]/includes/twitter.php in [path]/vb/vb.php on line 287
#0 vb_error_handler(256, invalid body on line 655 in /home/fniv/domains/fniv.it/public_html/latest/includes/twitter.php , /home/fniv/domains/fniv.it/public_html/latest/vb/vb.php, 287, Array ([exception] => TwitterException Object ([] => Array ([100] => Continue,[101] => Switching Protocols,[200] => OK,[201] => Created,[202] => Accepted,[203] => Non-Authoritative Information,[204] => No Content,[205] => Reset Content,[206] => Partial Content,[300] => Multiple Choices,[301] => Status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.,[302] => Status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.,[303] => See Other,[304] => Not Modified,[305] => Use Proxy,[306] => (Unused),[307] => Temporary Redirect,[400] => Bad Request,[401] => Unauthorized,[402] => Payment Required,[403] => Forbidden,[404] => Not Found,[405] => Method Not Allowed,[406] => Not Acceptable,[407] => Proxy Authentication Required,[408] => Request Timeout,[409] => Conflict,[411] => Length Required,[412] => Precondition Failed,[413] => Request Entity Too Large,[414] => Request-URI Too Long,[415] => Unsupported Media Type,[416] => Requested Range Not Satisfiable,[417] => Expectation Failed,[500] => Internal Server Error,[501] => Not Implemented,[502] => Bad Gateway,[503] => Service Unavailable,[504] => Gateway Timeout,[505] => HTTP Version Not Supported),[] => invalid body,[] => ,[] => 0,[] => /home/fniv/domains/fniv.it/public_html/latest/includes/twitter.php,[] => 655,[] => Array ([0] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274) : eval()'d code,[line] => 33,[function] => updateStatus,[class] => Twitter,[type] => ->,[args] => Array ([0] => te st test test - http://is.gd/d2zU4)),[1] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/newthread.php,[line] => 274,[function] => eval))),[code] => 256)) called at [(null):0] #1 trigger_error(invalid body on line 655 in /home/fniv/domains/fniv.it/public_html/latest/includes/twitter.php , 256) called at [/home/fniv/domains/fniv.it/public_html/latest/vb/vb.php:287] #2 vB::handleException(TwitterException Object ([] => Array ([100] => Continue,[101] => Switching Protocols,[200] => OK,[201] => Created,[202] => Accepted,[203] => Non-Authoritative Information,[204] => No Content,[205] => Reset Content,[206] => Partial Content,[300] => Multiple Choices,[301] => Status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.,[302] => Status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.,[303] => See Other,[304] => Not Modified,[305] => Use Proxy,[306] => (Unused),[307] => Temporary Redirect,[400] => Bad Request,[401] => Unauthorized,[402] => Payment Required,[403] => Forbidden,[404] => Not Found,[405] => Method Not Allowed,[406] => Not Acceptable,[407] => Proxy Authentication Required,[408] => Request Timeout,[409] => Conflict,[411] => Length Required,[412] => Precondition Failed,[413] => Request Entity Too Large,[414] => Request-URI Too Long,[415] => Unsupported Media Type,[416] => Requested Range Not Satisfiable,[417] => Expectation Failed,[500] => Internal Server Error,[501] => Not Implemented,[502] => Bad Gateway,[503] => Service Unavailable,[504] => Gateway Timeout,[505] => HTTP Version Not Supported),[] => invalid body,[] => ,[] => 0,[] => /home/fniv/domains/fniv.it/public_html/latest/includes/twitter.php,[] => 655,[] => Array ([0] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274) : eval()'d code,[line] => 33,[function] => updateStatus,[class] => Twitter,[type] => ->,[args] => Array ([0] => te st test test - http://is.gd/d2zU4)),[1] => Array ([file] => /home/fniv/domains/fniv.it/public_html/latest/newthread.php,[line] => 274,[function] => eval)))) called at [(null):0]
obviously i edited the two files like Mosh said in the FAQ ...

edit: anyway with is.gd i can send the tweets but i got the error that i noticed above ...

Dragonsys 06-24-2010 09:46 PM

Quote:

Originally Posted by KURTZ (Post 2059028)
sure and got this:



obviously i edited the two files like Mosh said in the FAQ ...

edit: anyway with is.gd i can send the tweets but i got the error that i noticed above ...

Quote:

Originally Posted by Dragonsys (Post 2056455)
grab the twitter.php which is attached to this post. This fixed it for me

The twitter.php which the OP links to does not work properly with this mod.

phkk 06-25-2010 08:53 PM

What if you do not want to use a url shortening service?

What if you do not want to use a url shortening service?

What if you do not want to use a url shortening service?

KURTZ 06-26-2010 09:30 AM

Quote:

Originally Posted by Dragonsys (Post 2059060)
The twitter.php which the OP links to does not work properly with this mod.

with that file i got this:

Quote:

Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in [path]/includes/twitter.php on line 189
/statuses/update.xml Could not authenticate you. Unauthorized on line 229 in /home/fniv/domains/fniv.it/public_html/latest/includes/twitter.php
#0 /home/fniv/domains/fniv.it/public_html/latest/includes/twitter.php(648): Twitter->doCall('statuses/update...', Array, true)
#1 /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274) : eval()'d code(33): Twitter->updateStatus('test test test ...')
#2 /home/fniv/domains/fniv.it/public_html/latest/newthread.php(274): eval()
#3 {main}


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

merk_aus 06-27-2010 06:00 AM

Quote:

Originally Posted by phkk (Post 2059564)
What if you do not want to use a url shortening service?

What if you do not want to use a url shortening service?

What if you do not want to use a url shortening service?

This has already been answered in the thread instead of just posting, especially the same question over and over, read the thread.

EDIT: See how hard this was looking at page three of an eight page thread - click here.

I do wish people would read what has been said instead of just posting a new thread would allow everything to run smoother.

Dragonsys 06-28-2010 01:32 PM

Quote:

Originally Posted by KURTZ (Post 2059788)
with that file i got this:

Please read the 1st Post.... This is answered in the Q&A listed there

Quote:

Question:

I see an error that says "Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in [path]/bitly.php"

Answer:

Looks like that is a safe_mode issue... but should be easily fixable. In bitly.php, find:
PHP Code:
$options[CURLOPT_FOLLOWLOCATION] = true;
Change it to:
PHP Code:
$options[CURLOPT_FOLLOWLOCATION] = false;
$options[CURLOPT_HEADER] = true;
You may also want to do the above in twitter.php as well, if you are still getting the same error message just to be on the safe side.

pant 06-28-2010 02:03 PM

Wonder when we'll get an update for this?

Dragonsys 06-29-2010 03:02 PM

Quote:

Originally Posted by pant (Post 2061116)
Wonder when we'll get an update for this?

since it is unsupported I would not hold my breath.

I got it to work with OAuth on my site, it only requires a couple of minor changes to the product, the new twitter.php file, a custom app on Twitter.com, and your consumerKey, consumerSecret, oauthKey & oAuthSecret...

pant 06-29-2010 06:58 PM

Would you mind doing a write up or explaining how to do what you've said? I and many others would really appreciate it.

Mosh 06-30-2010 08:14 PM

IMPORTANT NOTICE UPDATE: Through no fault of my own, this hack will now cease to work on [S]Wednesday 30th June 2010[/S] Monday 16th August 2010 (that is an extra six week reprieve) as Twitter is turning off Baic authentication and only allowing the use of OAuth authentication (this hack currently uses a Basic authentication Twitter class to tweet your threads/posts). Please see this announcement by Twitter - http://dev.twitter.com/announcements for more information.

There is no ETA when this hack will be updated to use OAuth authentication, but just to let you know that I have started working on it, and it should be released before xAuth is turned off.

Videx 06-30-2010 08:42 PM

Whew! Good news, thanks for sharing. And for working on the update.


All times are GMT. The time now is 11:37 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.02099 seconds
  • Memory Usage 1,861KB
  • 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
  • (20)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