vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - vBulletin 2 Twitter - Take Your News Straight To Twitter! (https://vborg.vbsupport.ru/showthread.php?t=208488)

SBlueman 06-19-2009 01:32 AM

Is this modification now dead? Is there anyone who can help solve the issues people are having?

SBlueman 06-19-2009 03:25 AM

BTW, it looks like this modification is a re-write of some sorts of this open source modification:

http://paulstamatiou.com/stammy-scri...tter-using-php

Don't know if that helps out to any of the php-saavy people out there who might be using this modification and would be willing to help us in need.

SBlueman 06-20-2009 11:02 AM

This is now beyond frustrating....this was the perfect modification for my site's needs and now it has stopped working out of the blue and the mod author is completely AWOL even though this is marked as a supported modification.

SBlueman 06-23-2009 09:18 AM

No support....

***uninstalled***

A825F933D42B 07-18-2009 09:07 PM

Quote:

Originally Posted by Kolbi (Post 1828821)
Bist deutsch oder? :)
Welche Datei und welche Zeile?
Ja die Umlaute sind wohl das Problem.

Ja, aber ich schreib trotzdem in Englisch, f?r die anderen ;-)
Just write on line 24, of twitask.php, just where the error message of the add-on occures:
Quote:

} else { die('Error: RSS file not found, dude.'); }

$title = str_replace("<![CDATA[", "", "$title");
$title = str_replace("]]>", "", "$title");
$title = str_replace("&", "and", "$title");

$title = utf8_encode ($title); //for the bloody umlaute

m2006 07-20-2009 04:32 AM

Thank you for nice mods

Daisyboo 08-03-2009 07:21 AM

What is the url I use to use more than one forum for Tweets?
Not sure I have this working.

hoangzu 09-23-2009 11:10 PM

Quote:

Originally Posted by A825F933D42B (Post 1828573)
I added the following code:
Code:

$title = utf8_encode ($title); //for the bloody umlaute
just after the lines fixing the CDATA-issue. Now, all Umlaute and special characters will be submitted to Twitter. Just if it helps someone else too

Can you PL tell me where I can add this code into?
Thank you

Brandon Sheley 09-23-2009 11:16 PM

Quote:

Originally Posted by SBlueman (Post 1833239)
This is now beyond frustrating....this was the perfect modification for my site's needs and now it has stopped working out of the blue and the mod author is completely AWOL even though this is marked as a supported modification.

there are several mods that do this but much better.. This one (vBulletin Tweet Poster!) will even link back to your site as the source link :up:
and it works prefect ;)

SomeDude-GP 09-24-2009 04:11 PM

rss not found.. DUDE

TurkeySub 10-25-2009 04:31 AM

Hi,

Any chance you might consider adding the ability to monitor multiple RSS feeds? Reason being, I have news posted in various sections on the site and not all in one and having the ability to track multiple would be awesome!

Xencored 11-07-2009 02:54 PM

vBulletin to Twitter Task
300 Video with Rammstein http://tinyurl.com/yjr2qw9
Fatal error: Call to undefined function curl_init() in /home/*********/public_html/includes/cron/twitask.php on line 28

:(

JαρŘα?σoζ 11-07-2009 04:43 PM

Every time I click the tiny URL that linked to my forum thread it shows me an error message.

"No Thread specified. If you followed a valid link, please notify the administrator"

Can someone help me with this? Thanks before...

JαρŘα?σoζ 11-07-2009 05:29 PM

Quote:

Originally Posted by JαρŘα?σoζ (Post 1911360)
Every time I click the tiny URL that linked to my forum thread it shows me an error message.

"No Thread specified. If you followed a valid link, please notify the administrator"

Can someone help me with this? Thanks before...

Now it works... Wew... So confused... Sometimes it works, sometimes it doesn't work !!!

LbR 11-12-2009 04:42 PM

Just Installed Works great thanks a bunch :)

sailnet 11-19-2009 05:51 PM

I get RSS file not found even though I am pointed properly to my external.php and have supplied a correct forumid on ?f=

sailnet 11-19-2009 06:37 PM

this mod totally sucks. the vb people should remove the thread.

the problem with the other tweet posted is that is requires 5.2 and that sucks too

I'll jyst be satisfied with letting people post tweet individual posts for now until someone comes along with a reliable tweet poster that doesn't require everything and the kitchen sink too.

vietdjclub 01-05-2010 11:27 PM

it's working fine on vbb4

BBR-APBT 01-18-2010 07:38 AM

Seems to post over and over on vB 4.0.1

Reverted to twitterfeed.com

luket79 01-23-2010 06:01 AM

Any reason why the cron runs every minute? It was making my server crawl because the cron is set to run every minute. Can there be an option for this in a future release?

MotMann 01-31-2010 02:38 PM

Quote:

Originally Posted by AHealthForum (Post 1771197)
AdminCP -> vBulletin Options -> External Data provider

WExternal Dat provider? I don't found that.. just "Feed- RSS, Java" Feeds settings

And what i can do, that linkbacks still be working? if i click ob linkback, then the URL goes back to my Forum.

dd009 02-16-2010 03:28 AM

Quote:

Originally Posted by hollosch (Post 1769622)
thanx for this.

-1 cron-job in my vB

I am not able to download this

KDawg08 04-03-2010 07:34 PM

Any reason it is doing this?

<![CDATA[BTN IE/FF Toolbar 2 minutes ago via API

It shows the TITLE of the update, but the title was "BTN IE/FF Toolbar" not the <!CDATA[ part...

A825F933D42B 04-23-2010 07:59 PM

use my updated code so it checks if the post has already been tweeted.

sweetguy2004 05-18-2010 10:32 AM

Thanks interesting but i cannot use it coz posting adult twits i can get ban

Nano_ 06-13-2010 10:51 PM

Works in 4.0.3PL1?

NAZIA 07-15-2010 04:59 AM

Quote:

Originally Posted by KDawg08 (Post 2015283)
Any reason it is doing this?

<![CDATA[BTN IE/FF Toolbar 2 minutes ago via API

It shows the TITLE of the update, but the title was "BTN IE/FF Toolbar" not the <!CDATA[ part...

same problem is here with me.. is there any solution for this?:confused:

lol
even this bug is also there in the developer twitter


NAZIA 07-15-2010 05:45 AM

Quote:

Originally Posted by gordietbh (Post 1811982)
here is the code I've implemented to get around the duplicate issue.

The issue arose when the latest thread was not the current status of the twitter account, so I updated the code to search the entire feed page for the thread title. It now checks the contents of your twitter page and looks for a match with the title of the first item in the RSS feed, if it finds it it does not try to repost. If it does not find a match it will call the twitter API and submit the message.

I then had an issue where it was posting <![CDATA[thread title]]. I discovered that this only occurred when there was an apostrophe in the thread title, so I added a replace command to strip out the CDATA text.

There was also an issue where if your server did not receive a response from the twitter page in a timely fashion the script would not find a match for the latest title thread and would repost. I added a line in the script to search for your account name in the page, and if it finds it then call the twitter API. This ensures that there is no more double posting.

You need to replace the contents of the twitask.php file in the includes\cron folder with the script below. You need to replace the ACCOUNTNAME text in the line http://twitter.com/ACCOUNTNAME with the name of your twitter account. this needs to be in the same case as the account name appears on your twitter page.

PHP Code:

<?php
// vBulletin2Twitter Provided Via http://ahealthforum.com
// Inspiration from Reuqests and various free open source scripts
// twitask.php may not be reproduced without prior written permission
// See vbtotwitt.php for open source script usage
// 
// Set error status
error_reporting(E_ALL & ~E_NOTICE);

// Check database connection
if (!is_object($vbulletin->db))
{
    exit;
}
include_once(
'vbtotwitt.php');
$u $vbulletin->options['vb2twitter_u'];
$p $vbulletin->options['vb2twitter_p'];
$twurl 'http://twitter.com/statuses/update.xml';
$f $vbulletin->options['vb2twitter_f']; 
$rss = new lastRSS;
if (
$rs $rss->get($f)){
    
$title $rs[items][0][title];
    
$url $rs[items][0][link];
} else { die(
'Error: RSS file not found, dude.'); }

$title str_replace("<![CDATA[""""$title"); 
$title str_replace("]]>""""$title"); 
$title str_replace("&""and""$title"); 

$tiny_url =  file_get_contents("http://tinyurl.com/api-create.php?url=" $url);
$status $title " " $tiny_url;
echo 
$status//just for status if you are directly viewing the script

$twitterfeed file_get_contents("http://twitter.com/ACCOUNTNAME");

$stringtocheckfor $title;
if(
strstr($twitterfeed,$stringtocheckfor)) {
    echo 
"<br />status update already exists";
} else {

    
$accountstring $vbulletin->options['vb2twitter_u'];
    if(
strstr($twitterfeed,$accountstring)) {

        
$curl_handle curl_init();
        
curl_setopt($curl_handle,CURLOPT_URL,"$twurl");
        
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
        
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
        
curl_setopt($curl_handle,CURLOPT_POST,1);
        
curl_setopt($curl_handle,CURLOPT_POSTFIELDS,"status=$status");
        
curl_setopt($curl_handle,CURLOPT_USERPWD,"$u:$p");
        
$buffer curl_exec($curl_handle);
        
curl_close($curl_handle);
        if (empty(
$buffer)){echo '<br/>message';}else{echo '<br/>success';}
    
        
// log message
        
$logmsg 'Twitter Update';

        
// Output Log Status
        
log_cron_action($logmsg$nextitem);
    } else {
        echo 
'<br />twitter page not found';
    }
}


?>

If you have $cronimage in your footer template and have the twitter scheduled task set to run every minute each time a new thread is started the title will be updated. You will also need to set the refresh time on your RSS feed in vboptions to 0 if you want to ensure that every new thread is updated to your twitted feed. If the refresh time is 60 minutes you will only have the latest thread submitted every hour when the RSS cache is refreshed.

I've been running with the above script and options for the last several days and have eliminated the duplicate posting issues.

Nice work... working fine for me...
thanks a lot.. :)

do you have any idea about the plain text password?
why we can not use

HTML Code:

  <input type="password">
in Admin Cp.
Any idea please

NAZIA 09-13-2010 12:23 AM

Quote:

Originally Posted by Loco.M (Post 1776313)
btw, how is this different than using twitfeed?
http://twitterfeed.com/

cheers

:) good idea. just added my feed here... :) hope will work,, :)

:mad:Actually this mod stopped publishing feeds on twitter by 1st September. may be due to change in Twitter policies, what ever i dont know :)

Smitty 09-13-2010 02:36 AM

Quote:

Originally Posted by Loco.M (Post 1776313)
btw, how is this different than using twitfeed?
http://twitterfeed.com/

cheers

Been using twiterfeed for quite a while now. It works. Not every post is tweeted in big, active forums, but it is a very good automatic twitter feed. I have no use for twitter, but for 'SEO' purposes one should have a twitter account.

Dr.osamA 03-14-2011 03:50 AM

Works in 4.1.2????

hope yes

vvdven 03-24-2011 02:54 PM

Hi There,

I have this mod installed but it seems to also post the rss feeds from our rss widget (with external rss feeds) to our twitter account.

Is there any way to turn this off?

Thanks.

c0der 04-11-2011 06:41 PM

thx
can u make another one for fb and other network sites

Uberguilds 05-31-2011 10:14 PM

Quote:

This move is a direct assault on services like TwitPic and yFrog. With Twitter Pictures, you’ll be able to upload from Twitter.com and the clients and you’ll get a nice, tidy URL that links to your picture (and a small thumbnail may now appear in your stream).

Threads to twitter.

Now

Forum images to twitter.



plz?
http://techcrunch.com/2011/05/31/twitter-pictures-ios5/

Bonjax 07-23-2011 03:29 PM

If you want another option... TwitterFeed.com accomplishes this same thing and is solid as a rock. Easy to set up with some nice features. Grabs the RSS and posts thread titles to your Twitter account.

AK47- 02-22-2013 10:02 PM

does this work on vb4.2.0?

GhostHunter2010 05-07-2020 12:27 AM

pss this doesnt work at all


All times are GMT. The time now is 01:33 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.01806 seconds
  • Memory Usage 1,849KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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