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 04-30-2010 02:44 AM

Quote:

Originally Posted by Bob_R (Post 2029352)
Same here.

Assuming you aren't on dedicated servers, I hope you both immediately opened tickets with your hosts asking this same question? We need to know exactly what they're doing to break things and how to fix it.

Bob_R 05-01-2010 11:56 AM

Quote:

Originally Posted by Videx (Post 2029355)
Assuming you aren't on dedicated servers, I hope you both immediately opened tickets with your hosts asking this same question? We need to know exactly what they're doing to break things and how to fix it.

I did submit a ticket yesterday morning.

In the meantime I can tell you this. I switched web hosts this week. Since then this vbulletin to twitter, live tweets of new threads hasn't worked.

Any other suggestions?

ukiya006 05-02-2010 10:26 AM

Quote:

Originally Posted by Xeon3D (Post 2024183)
I'm getting the word "Array" appended to the end of each message and no link to the thread as you can check here:

http://twitter.com/xeon3dinfo/

here's my plugin contents:

PHP Code:

// 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(5,6);

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

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

    if (
$useBitly) {
      
// http://classes.verkoyen.eu/bitly
      
require_once 'bitly.php';
      
$bitly = new Bitly('realusernamehere''realAPIkeyhere');
      
$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('realusernamehere','realpasswordhere');
    
$twitter->updateStatus($tweet);



I am having the same problem as him =(
Any solutions so far?

I came across tis error a few mins ago..
it seems related..

Quote:

Status is a duplicate. on line 204 in /home/cbnoobco/public_html/thesgmall/twitter.php
#0 /home/cbnoobco/public_html/thesgmall/twitter.php(648): Twitter->doCall('statuses/update...', Array, true)
#1 /home/cbnoobco/public_html/thesgmall/newthread.php(514) : eval()'d code(26): Twitter->updateStatus(' Array')
#2 /home/cbnoobco/public_html/thesgmall/newthread.php(514): eval()
#3 {main}


Fatal error: Status is a duplicate. on line 204 in [path]/twitter.php in [path]/vb/vb.php on line 287

ukiya006 05-02-2010 10:46 AM

Quote:

Status is a duplicate. on line 204 in /home/cbnoobco/public_html/thesgmall/twitter.php
#0 /home/cbnoobco/public_html/thesgmall/twitter.php(648): Twitter->doCall('statuses/update...', Array, true)
#1 /home/cbnoobco/public_html/thesgmall/newthread.php(514) : eval()'d code(26): Twitter->updateStatus(' Array')
#2 /home/cbnoobco/public_html/thesgmall/newthread.php(514): eval()
#3 {main}


Fatal error: Status is a duplicate. on line 204 in [path]/twitter.php in [path]/vb/vb.php on line 287
Ok.. Manage to solve that.. Realised that I hooked it to the wrong location..

Hmm.. but now still got the word "Array" instead of the short url it's suppose to be showing.

ukiya006 05-02-2010 11:54 AM

Quote:

Originally Posted by ukiya006 (Post 2030515)
Ok.. Manage to solve that.. Realised that I hooked it to the wrong location..

Hmm.. but now still got the word "Array" instead of the short url it's suppose to be showing.

Solved.. by uploading the bitly.php that's available here instead of the one in the main website.

your24hourstore 05-02-2010 02:23 PM

Quote:

Originally Posted by Videx (Post 1979953)
Sure, for those that have bitly working (not me).

man i have tried everything , to getthis hack to work its just not working i have had all the error did all the fixs and still cant use it :confused:

Even though i get the errors , when i refreshed the error page it sent the tweets through, so its almost kinda working



NOT installed

SlackerAPM 05-07-2010 07:32 PM

I apologise if this has been asked before, I did look through the thread but couldn't find anything...

Is it possible to specify forums to include rather than exclude as I only want to include 2 forums. It would easier for me do that rather than exclude 35 other forums.

Thanks.

your24hourstore 05-07-2010 07:37 PM

Quote:

Originally Posted by SlackerAPM (Post 2033344)
I apologise if this has been asked before, I did look through the thread but couldn't find anything...

Is it possible to specify forums to include rather than exclude as I only want to include 2 forums. It would easier for me do that rather than exclude 35 other forums.

Thanks.

really live up to your name dont you :)

SlackerAPM 05-07-2010 07:41 PM

I should maybe change to EfficientAPM ;)

Videx 05-07-2010 07:45 PM

Near the first line there's a !. Take it out to make it an inclusion list.
Quote:

if (!in_array


All times are GMT. The time now is 10:32 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.01569 seconds
  • Memory Usage 1,759KB
  • 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
  • (9)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