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)

Dragonsys 06-22-2010 03:17 PM

Quote:

Originally Posted by vilhiem (Post 2056996)
One more question ...

Not sure if anyone else here has noticed this ... but it doesn't seem to work if the new thread is "auto-generated". For instance, I'm using a couple mods that make new threads, yet no "twits" are generated:

(1) "BBR - Welcome Thread Upon Registration"; and
(2) "auto-reply"

I believe those mods submit the new auto-post straight to the DB, so they do not use the normal submit post method, and therefore they bypass this tweet mod all together.

vilhiem 06-22-2010 03:46 PM

Quote:

Originally Posted by Dragonsys (Post 2057513)
I believe those mods submit the new auto-post straight to the DB, so they do not use the normal submit post method, and therefore they bypass this tweet mod all together.

Thanks Dragonsys ... but can you imagine any way around this to get it to work ...?

Thanks and great mod!!!

Dragonsys 06-22-2010 06:08 PM

Quote:

Originally Posted by vilhiem (Post 2057531)
Thanks Dragonsys ... but can you imagine any way around this to get it to work ...?

Thanks and great mod!!!

All i can really suggest is to ask the author's of those mods if they can make them work with this one (or vice versa)

mimocherry 06-23-2010 05:33 AM

I got a headache reading through all the posts, and still can not resolve my issue...
I really would like to use bitz.ly, and I think that I have setup the API Key correctly.

however, I still get the following errors..according to other posts, I should use is.gd, but can I use bitzly, and resolve the following issue??

nvalid JSON-response on line 203 in /var/www/vhosts/website/httpdocs/forum/includes/bitly.php
#0 /var/www/vhosts/website/httpdocs/forum/includes/bitly.php(414): Bitly->doCall('shorten', Array)

thanks so muchhhh

Dragonsys 06-23-2010 01:09 PM

Quote:

Originally Posted by mimocherry (Post 2057925)
I got a headache reading through all the posts, and still can not resolve my issue...
I really would like to use bitz.ly, and I think that I have setup the API Key correctly.

however, I still get the following errors..according to other posts, I should use is.gd, but can I use bitzly, and resolve the following issue??

nvalid JSON-response on line 203 in /var/www/vhosts/website/httpdocs/forum/includes/bitly.php
#0 /var/www/vhosts/website/httpdocs/forum/includes/bitly.php(414): Bitly->doCall('shorten', Array)


thanks so muchhhh

As stated in the OP:

Q: I see an "INVALID_JSON" error

A: Disable bitly by setting $useBitly to false.

This is probably due to JSON being limited or not installed by your webhost. Check you phpinfo and make sure JSON is installed.

mikeo9043 06-23-2010 01:28 PM

Can we add more then 1 twitter account?

mimocherry 06-23-2010 02:32 PM

thanks for your kind reply.

1. I do have JSON enabled.
json
json support enabled
json version 1.2.1

2. how do I set $useBitly to false? which file?

thanks!

mimocherry 06-23-2010 02:56 PM

And that's it. Save and activate the plugin and create a test thread.

Now whenever a new thread is started, a tweet will be made to twitter instantly

#okay, I see it now..my god, it is a plugin......I was looking into the bitly.php and twitter.php forever....

sorry, I am new to this..

Dragonsys 06-23-2010 04:22 PM

Quote:

Originally Posted by mimocherry (Post 2058222)
And that's it. Save and activate the plugin and create a test thread.

Now whenever a new thread is started, a tweet will be made to twitter instantly

#okay, I see it now..my god, it is a plugin......I was looking into the bitly.php and twitter.php forever....

sorry, I am new to this..

you get it working?

mimocherry 06-23-2010 04:52 PM

Okay, I pasted the code as a hook, do I choose new_post_complete as the hook location?

no error message, but nothing happened as well :-(


All times are GMT. The time now is 01: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.01542 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
  • (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