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)

melbo 05-21-2010 12:08 AM

Works perfectly on my 3.8.5 forum. Is there a way I can make the regular twitter social bookmark button in every thread use my bit.ly? Also, do you have a 'post to Facebook' option??? Would be very cool.

tommac3 05-21-2010 01:15 AM

I would love to install if it works

stoute 05-22-2010 10:33 PM

I seem to have done something wrong here. I receive the error code below;

Warning: require_once(bitly.php) [function.require-once]: failed to open stream: No such file or directory in [path]/newthread.php(273) : eval()'d code on line 125

Fatal error: require_once() [function.require]: Failed opening required 'bitly.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tttsndcx/public_html/home/newthread.php(273) : eval()'d code on line 125

Any assistance with this would be great! I am using 4.0.3 if that makes a difference.

Videx 05-22-2010 11:43 PM

Quote:

Originally Posted by stoute (Post 2042028)
I seem to have done something wrong here. I receive the error code below;
Warning: require_once(bitly.php)

Can we assume you have already read back through all the pages in this thread and haven't found anyone else having the same error?

Hint: Forget bitly; you can't use it on your server.

jbd 05-23-2010 10:20 PM

I get the following error:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

--------------------------------------------------------------------------------

Invalid at the top level of the document. Error processing resource 'http://www.forum.com/newthread.php?do=postthread&...

</hash>

HipHopStan.com 05-23-2010 11:03 PM

i just installed. I'm on PHP 5.2.13 -- using vbSEO 3.3.2 -- and its working great so far for me. I'm also on vB 3.8.2

:up:

rrudeboy 05-24-2010 01:36 PM

works great, only thing i'm looking for is a way to have only posts made by users with an X amount of posts tweeted... you know, to prevent spam tweets.

thanks.

momon 05-25-2010 06:07 AM

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! :)

This is for ppl reporting problems with json still, after reading through the thread, this post in particular finally solved things for me and the plugin is working wonderfully now.

https://vborg.vbsupport.ru/showthrea...=234288&page=7

jahna 05-26-2010 08:13 AM

Mine is not working!
can anyone check the my code here please, thanks a lot:

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(3,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.mymarketingforum.ch/forum/showthread.php?t='.$newpost[threadid];

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

EconomicVoice 05-29-2010 08:51 AM

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! :)

This is the solution that worked for me too (like many others).

Although I didn't seem to have a 'CURLOPT_HEADER' in the bitly php, just changing the other two did the job.


All times are GMT. The time now is 09:08 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.01416 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)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