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)

LifesGreatestGift 04-13-2010 07:42 AM

Thanks for the fix!

https://vborg.vbsupport.ru/showpost....&postcount=287

Works perfect now! No more bit.ly or twitter php issues.

zelnik 04-14-2010 09:47 AM

Installed and working great first time!

Thanks a million!

zelnik 04-14-2010 03:35 PM

Just noticed that my RSS feeds are not being directed to Twitter?!?!

Noticed a lot of people saying the same.. I wouldn't mind making a small finanical donation if you could get RSS posts to be posted on Twitter?!

I'm sure others would also.

osayidan 04-15-2010 04:09 PM

is bit.ly having issues? I can not seem to register...
"There was a problem posting your request. Please try again."

Been trying for quite some time now.

edit: never mind, that was disgusting... i couldn't sign up with FF 3.6, loaded up my old IE 6 and it worked...

Chicken Racer 04-16-2010 01:10 PM

Quote:

Originally Posted by zelnik (Post 2021205)
Just noticed that my RSS feeds are not being directed to Twitter?!?!

Noticed a lot of people saying the same.. I wouldn't mind making a small finanical donation if you could get RSS posts to be posted on Twitter?!

I'm sure others would also.

Yes I 2nd that !

Videx 04-16-2010 02:49 PM

Why don't you just use Twitterfeed (or similar) to forward RSS to Twitter? Seems to me you're going to have trouble with any but the very shortest posts.

zelnik 04-16-2010 03:34 PM

Quote:

Originally Posted by Videx (Post 2022215)
Why don't you just use Twitterfeed (or similar) to forward RSS to Twitter? Seems to me you're going to have trouble with any but the very shortest posts.

I'm not sure what the problem is with RSS feeds to twitter on vb4 as there are a couple of addons for vb3.8 which work very very well. :(

mmacrypt 04-17-2010 02:32 AM

Just installed, seems to be working great, thank you very much.

Gene Steinberg 04-17-2010 03:44 PM

This is very poorly designed. Why not just build a standard plugin with a traditional Admin CP interface to insert the relevant details for this linkage? As it stands, all I see is an amateurish hack. Does anyone know how to do this correctly?

Peace,
Gene

Xeon3D 04-20-2010 05:54 AM

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);




All times are GMT. The time now is 10:12 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.02347 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)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