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)

lovechandigarh 01-30-2010 03:57 PM

Quote:

Originally Posted by lovechandigarh (Post 1970451)

Installed it on another of my sites www.lovechandigarh.com working on vb 3.x.
Thanks again... Appreciated!

Alibass 01-30-2010 11:22 PM

Quote:

Originally Posted by imported_nimbus (Post 1970242)
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;

Then all error messages gone! :)

Mate this done the trick for me. Mine is working as it should be now. Thanks for posting. :)

Alibass 01-30-2010 11:34 PM

@buro9

Fantastic mod mate and thanks for sharing. It's really bringing in the traffic! :D

Jesh 01-30-2010 11:40 PM

Quote:

Originally Posted by LbR (Post 1970294)
This tool is insane, I get 500+ Guests after every thread is posted woha!! thanks man

I didn't see an increase, but my site is very new. I got about 20 spiders hit me at once though.

Bouncer222 01-31-2010 04:02 AM

Quote:

Originally Posted by buro9 (Post 1969320)
Feel free to PM me your plugin PHP and I'll take a look.

Do you not get any errors at all visible?

Here is my php.. what did I do wrong?


HTML 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(0);

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

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

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

Please someone help me :)

kall 01-31-2010 04:09 AM

You've got a space at the end of your bit.ly key (which you might want to remove from the code block here..)

Videx 01-31-2010 04:14 AM

I don't remember your specific problem, but I see you have the infamous extra space after your bitly API.

However, I still can't get bit.ly to authenticate me regardless.

Bouncer222 01-31-2010 04:21 AM

I fixed it, and now my host enabled CURL, JSON is enabled as well.. did I miss something??

EDIT: It still wont work.

Bouncer222 01-31-2010 04:41 AM

K it works, thanks to all who helped!

EDIT: wow and the second I go back to my home page, my spiders on my site went from 11 to 22 and growing...nice!

JADM 01-31-2010 06:21 AM

Quote:

Originally Posted by Videx (Post 1970441)
Uh no. You're supposed to replace the <> symbols AND everything between them.

PS I am not seeing any sort of influx of guests; certainly not 500. But then we've never had a presence and have few followers. Not sure what we could do with 500 lurkers knocking about anyway.

Okay, let's play semantics. What are you "replacing" the <> symbols with? If it is nothing, then that is not replacing them, it is deleting them AND replacing the info in between them.

Don't know why this would warrant a snarky comment from you and, even more, one that takes exception to the post and then seeks to correct it with....wait for it....an equally incorrect statement.


All times are GMT. The time now is 10:14 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.01242 seconds
  • Memory Usage 1,745KB
  • 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_html_printable
  • (5)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