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)

iguano 01-31-2010 09:50 AM

It works but when i go on twitter i see "unknow file"and when i click on the link come out 404 Not Found

( Not Found

The requested URL /showthread.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.)

cagbaazee 01-31-2010 01:35 PM

With due regards I would like to bring to your kind notice and would like

to have your kind favour in solving my problem.

1. When some one post it immediately goes to twitter site and by clicking

on it - it displays "No Thread specified. If you followed a valid link,

please notify the administrator."

2.Secondly, When somebody adds new thread, it doesnot appears, but when he add it twice then it appear.

3. When someone post it , but it doesnot mention the name of title at bid.ly, it only mention gs community

I, therefore, like to have your kind favour to get it solved as soon as

possible as I need the "TITLE" to be displayed. Kindly guide me in this

matter.

Regards
copy of screenshot here

buro9 01-31-2010 01:40 PM

Quote:

Originally Posted by iguano (Post 1971125)
It works but when i go on twitter i see "unknow file"and when i click on the link come out 404 Not Found

( Not Found

The requested URL /showthread.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.)

Do you have your forums in a different folder? Did you adjust the URL to match your forums?
Quote:

Originally Posted by cagbaazee (Post 1971249)
With due regards I would like to bring to your kind notice and would like

to have your kind favour in solving my problem.

1. When some one post it immediately goes to twitter site and by clicking

on it - it displays "No Thread specified. If you followed a valid link,

please notify the administrator."


2.Secondly, When somebody adds new thread, it doesnot appears, but when he add it twice then it appear.

3. When someone post it , but it doesnot mention the name of title at bid.ly, it only mention gs community

I, therefore, like to have your kind favour to get it solved as soon as

possible as I need the "TITLE" to be displayed. Kindly guide me in this

matter.


Regards
copy of screenshot here

1) Do you have your forums in your forum root? Did you adjust the URL to match your site?

2) There's no reason for it to be called twice, the plugin will either work all the time, or fail all the time. Please double-check the instructions.

3) Twitter will show precisely what you tell it to, bit.ly statistics on the other hand will go and fetch the page and will show the title of the page it fetched. So in the case of bit.ly it is resolving and fetching the URL and show the title of that page. You've already said that problem #1 is that you get a 404 not found, which suggests that your URL is wrong. bit.ly is showing the title of your 404 page because that's currently where the URL ends. Fix #1 and #3 will also be fixed.

cagbaazee 01-31-2010 01:47 PM

No i donot any other forum at my site , just one forum.

2. can u tell how to fix it #1 & #3.. do i hv install and follow the instruction again.

Do reply

Thanks

Quote:

Originally Posted by buro9 (Post 1971258)
Do you have your forums in a different folder? Did you adjust the URL to match your forums?

1) Do you have your forums in your forum root? Did you adjust the URL to match your site?

2) There's no reason for it to be called twice, the plugin will either work all the time, or fail all the time. Please double-check the instructions.

3) Twitter will show precisely what you tell it to, bit.ly statistics on the other hand will go and fetch the page and will show the title of the page it fetched. So in the case of bit.ly it is resolving and fetching the URL and show the title of that page. You've already said that problem #1 is that you get a 404 not found, which suggests that your URL is wrong. bit.ly is showing the title of your 404 page because that's currently where the URL ends. Fix #1 and #3 will also be fixed.


buro9 01-31-2010 01:54 PM

See this bit:
PHP Code:

$shortUrl 'http://www.yourforumsdomain.com/showthread.php?t='.$newpost[threadid]; 

I'm pretty sure you've set it to:
PHP Code:

$shortUrl 'http://www.gurusecret.info/showthread.php?t='.$newpost[threadid]; 

When it should be:
PHP Code:

$shortUrl 'http://www.gurusecret.info/vbforum/showthread.php?t='.$newpost[threadid]; 

Assuming I've googled correctly and that is your site.

cagbaazee 01-31-2010 02:20 PM

here is my config..

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

if (!in_array($foruminfo[forumid], $excludedForums)) {
// http://classes.verkoyen.eu/bitly
require_once 'bitly.php';

// http://classes.verkoyen.eu/twitter/
require_once 'twitter.php';

$bitly = new Bitly('guru', 'R_d3383e27ad33b187a20e78d68c063be');
$shortUrl = $bitly->shorten('http://www.mysite.info/vbforum/showthread.php?t='.$newpost[threadid]);

$tweet = '';
if (isset($newpost['prefixid']) && $newpost['prefixid'] != '') {
$tweet = $vbphrase['prefix_'.$newpost['prefixid'].'_title_plain'].' ';
}
$tweet .= $newpost['title'].' '.$shortUrl;

$twitter = new Twitter('guru','mypassword');
$twitter->updateStatus($tweet);
}

please check whether is it okay or not

If it s okay.. but i didnot make any change on it . it is same config what i do.
or if it is wrong then please explain correct config.

Do reply

tenjinzan 02-01-2010 12:40 PM

Got it working perfectly first try. I read through the comments here, but I didn't see it (I may have missed, so forgive me if I did). Is there a way to include the Poster's name in the tweet? I'm not sure what the syntax would be for the tweet line.

Basically, I just want it to say "Thread name" by "Poster" ... bit.ly/url I can see WHERE to put it, but I'm not sure of the variable that refers to the poster of a thread.

tobe12 02-01-2010 06:45 PM

Is there a way to make it tweet RSS feeds as well?

nextslit 02-04-2010 02:01 AM

I would like to thank you for this great mod buro9 , realy nice try : )
and working perfect in 4.0.1

Videx 02-04-2010 02:26 AM

Not working with the new BBR - vB Event Forums. Posting an event doesn't tweet the event. :(


All times are GMT. The time now is 02:10 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.02151 seconds
  • Memory Usage 1,757KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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