Twitter Mod, Auto Post to Twitter

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Suggested Hosts
mabaega
Registered User
Posts: 14
Joined: Tue May 14, 2013 6:01 am

Re: Twitter Mod, Auto Post to Twitter

Post by mabaega »

yupzzzz..

i got Php error on posting.php
;)

maxrpg
Registered User
Posts: 67
Joined: Thu Jul 30, 2009 12:33 am

Re: Twitter Mod, Auto Post to Twitter

Post by maxrpg »

Yes it stopped working but I have fixed the files in my original post to use the new v1.1 API. Just download and extract/override the twitter files in your forum root and it will work again :)

Updated files: http://sdrv.ms/1aewGuG

TheDani
Registered User
Posts: 356
Joined: Tue Apr 10, 2012 12:48 pm

Re: Twitter Mod, Auto Post to Twitter

Post by TheDani »

maxrpg wrote:This can be done by doing the following.
Hi, I tried your method.

I am using Joomla with JFusion and a Joomla module called iTwitterWidget. That module just pulls latest tweets from a Twitter account and displays them on the site. I am trying to use _another_ Twitter account for this MOD. So when I post, I get this message:

Code: Select all

Fatal error: Cannot redeclare class OAuthException in /path/to/modules/mod_iTwitterWidget/lib/twitteroauth/OAuth.php on line 8
Any suggestions?

mabaega
Registered User
Posts: 14
Joined: Tue May 14, 2013 6:01 am

Re: Twitter Mod, Auto Post to Twitter

Post by mabaega »

maxrpg wrote:Yes it stopped working but I have fixed the files in my original post to use the new v1.1 API. Just download and extract/override the twitter files in your forum root and it will work again :)

Updated files: http://sdrv.ms/1aewGuG
Thank's for update..

it work...
:D :D :D

TheDani
Registered User
Posts: 356
Joined: Tue Apr 10, 2012 12:48 pm

Re: Twitter Mod, Auto Post to Twitter

Post by TheDani »

Found another easier solution for this. Just use http://twitterfeed.com/. No MODs and editing of files needed.

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: Twitter Mod, Auto Post to Twitter

Post by Mess »

TheDani wrote:Found another easier solution for this. Just use http://twitterfeed.com/. No MODs and editing of files needed.
Its a really good solution, unless you need it posted without delay. ;)

TheDani
Registered User
Posts: 356
Joined: Tue Apr 10, 2012 12:48 pm

Re: Twitter Mod, Auto Post to Twitter

Post by TheDani »

Interval is 30 minutes. It's a free service, so it's good enough for me :) More important is the order, than it's updated every millisecond.

mabaega
Registered User
Posts: 14
Joined: Tue May 14, 2013 6:01 am

Re: Twitter Mod, Auto Post to Twitter

Post by mabaega »

https://skydrive.live.com/redir?resid=B ... 5DF101!117

Auto Twitt Mod
based on maxrpg post

tested on phpBB 3.0.11.

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: Twitter Mod, Auto Post to Twitter

Post by Mess »

mabaega wrote:https://skydrive.live.com/redir?resid=B ... 5DF101!117

Auto Twitt Mod
based on maxrpg post

tested on phpBB 3.0.11.
Cool beans! :ugeek:

Swanny
Registered User
Posts: 452
Joined: Sun Apr 14, 2002 2:11 am
Location: Canada

Re: Twitter Mod, Auto Post to Twitter

Post by Swanny »

I use TwitterFeed. It's not perfect, but hey it's free and easy to use.

User avatar
allingeneral.com
Registered User
Posts: 72
Joined: Wed Apr 11, 2007 12:16 pm
Contact:

Re: Twitter Mod, Auto Post to Twitter

Post by allingeneral.com »

mabaega wrote:https://skydrive.live.com/redir?resid=B ... 5DF101!117

Auto Twitt Mod
based on maxrpg post

tested on phpBB 3.0.11.
Thanks for the mod. Two things...

1) Would be nice if the DIY instructions had some explanation of the process required to create an app in twitter and set read/write and OAuth keys, etc.

2) In the code changes for includes/acp/acp_forums.php the following line appears to have been changed at some point:

Find:

Code: Select all

$user->add_lang(array(
In-line Add after:

Code: Select all

'mods/info_acp_auto_twitt',
This is the only code that I found in that file, and it seems to take care of it with no changes:

Code: Select all

$user->add_lang('acp/forums');
Last issue:
One other thing - all forums are allowing tweets, seemingly not caring about the forum_auto_twitt setting in the forums table.
Last edited by allingeneral.com on Sat Jan 04, 2014 3:06 am, edited 1 time in total.

User avatar
allingeneral.com
Registered User
Posts: 72
Joined: Wed Apr 11, 2007 12:16 pm
Contact:

Re: Twitter Mod, Auto Post to Twitter

Post by allingeneral.com »

For the last issue that I posted above, update as follows

In file: /includes/functions_posting.php
replace:

Code: Select all

if ($enable_twitt)
with:

Code: Select all

if ($enable_twitt['forum_auto_twitt'] == '1')
The check of $enable_twitt was returning an array instead of the value in that column, and was thus always TRUE when checked, as there was something being returned (ARRAY(enable_twitt -> 0 or 1). Corrected it by checking the value and if it's 1 (enabled), call the code to tweet, otherwise don't tweet.

User avatar
forumdotabaco
Registered User
Posts: 3
Joined: Thu Jan 16, 2014 4:32 pm

Re: Twitter Mod, Auto Post to Twitter

Post by forumdotabaco »

maxrpg wrote:Yes it stopped working but I have fixed the files in my original post to use the new v1.1 API. Just download and extract/override the twitter files in your forum root and it will work again :)

Updated files: http://sdrv.ms/1aewGuG
hello it stopped working again, because of the changes to SSl https://dev.twitter.com/discussions/24239
does anyone has the updates?
thanks in advance

User avatar
ViolaF
Registered User
Posts: 1503
Joined: Tue Aug 14, 2012 11:52 pm

Re: Twitter Mod, Auto Post to Twitter

Post by ViolaF »

@richardhyland Richard Hyland

I thought I was all SSL'd over until I found a single line in my twitter4j implementation that had an oauth call over plain HTTP. All fixed now :)
Means: just edit the twitter4j.js (or similar).
See file-posting some posts down (after quoted post) in your link ..

User avatar
forumdotabaco
Registered User
Posts: 3
Joined: Thu Jan 16, 2014 4:32 pm

Re: Twitter Mod, Auto Post to Twitter

Post by forumdotabaco »

Im not really sure how many i have to edit on the files,the files i have are twitter.class.php and OAuth.php
i believe i have to edit in twitter.class.php all the requests in http to https but im not really sure about it.
can you please pm maxrpg since he is the one who did this mod?
i cant pm him because i don't have enough posts done.

Locked

Return to “[3.0.x] MOD Requests”