Module: Twitter new posts
Posted by Brian Moon
May 20, 2009 07:36PM |
Admin Registered: 16 years ago Posts: 8,532 |
They will learn to love it ;-)
Good to hear that this is working for you now. Have fun with it!
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Good to hear that this is working for you now. Have fun with it!
Maurice Makaay
Phorum Development Team



Re: Module: Twitter new posts June 07, 2009 07:01AM |
Registered: 13 years ago Posts: 61 |
This is pretty slick. I'm using rtetzloff's edits to pull new threads from only two of our forums on pmwf.com and tweeting them at twitter.com/pmwf.
But, I have a question, or more of a request, I suppose.
PMWF users love their smileys (icons, as we call 'em) over there and the subjects of our posts are chock full of them. So, a tweet comes across showing the trigger text for the smiley. For example:
Is there some way that those trigger texts could be stripped out before being passed to Twitter? It would sure make things cleaner. All of our subject smileys use a consistent trigger format of "subjectsmileyXX!" where XX is a two digit number.
I'm far (very far) from a programmer and have no idea if this is possible. Appreciate any thoughts.
As always, Thanks!
James
Wallet Friendly Watch Forum
www.wf-wf.com
But, I have a question, or more of a request, I suppose.
PMWF users love their smileys (icons, as we call 'em) over there and the subjects of our posts are chock full of them. So, a tweet comes across showing the trigger text for the smiley. For example:
Quote
subjectsmiley61! How do you like me new Classic Vintage Diver? subjectsmiley64! [tinyurl.com] 10 hours ago from web
Is there some way that those trigger texts could be stripped out before being passed to Twitter? It would sure make things cleaner. All of our subject smileys use a consistent trigger format of "subjectsmileyXX!" where XX is a two digit number.
I'm far (very far) from a programmer and have no idea if this is possible. Appreciate any thoughts.
As always, Thanks!
James
Wallet Friendly Watch Forum
www.wf-wf.com
June 07, 2009 08:28AM |
Admin Registered: 19 years ago Posts: 4,495 |
Replace:
$status = urlencode($message["subject"]." ".$url);With:
$subject = preg_replace('/subjectsmiley\d+!/', "", $message["subject"]); $status = urlencode($subject." ".$url);Untested.
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: Module: Twitter new posts June 07, 2009 04:32PM |
Registered: 13 years ago Posts: 61 |
Quote
Brian Moon
Replace:
$status = urlencode($message["subject"]." ".$url);With:
$subject = preg_replace('/subjectsmiley\d+!/', "", $message["subject"]); $status = urlencode($subject." ".$url);Untested.
Thanks, Brian! That looks to have worked just fine.
Wallet Friendly Watch Forum
www.wf-wf.com
Re: Module: Twitter new posts June 15, 2009 05:48PM |
Registered: 13 years ago Posts: 61 |
Another question/request for this mod:
Suppose I want to have two twitter feeds? Say, one for our discussion forum and a second for our sales forum. That way users could choose which to follow. Is there a way to copy this module and upload a second time to do this? I'd assume there would have to be some sort of change to the code to allow?
TIA for any input.
Wallet Friendly Watch Forum
www.wf-wf.com
Suppose I want to have two twitter feeds? Say, one for our discussion forum and a second for our sales forum. That way users could choose which to follow. Is there a way to copy this module and upload a second time to do this? I'd assume there would have to be some sort of change to the code to allow?
TIA for any input.
Wallet Friendly Watch Forum
www.wf-wf.com
Re: Module: Twitter new posts June 23, 2009 11:09PM |
Registered: 13 years ago Posts: 61 |
Re: Module: Twitter new posts October 29, 2009 05:56PM |
Registered: 11 years ago Posts: 17 |
Hi,
Sorry, I can't use the module it give me (i verified my account ... it's good) :
Fatal error: Call to undefined function curl_init() in C:\wamp\www\FORUM\mods\twitter\twitter.php on line 31
[forum.gpit.fr]
Sorry, I can't use the module it give me (i verified my account ... it's good) :
Fatal error: Call to undefined function curl_init() in C:\wamp\www\FORUM\mods\twitter\twitter.php on line 31
[forum.gpit.fr]
Re: Module: Twitter new posts October 29, 2009 06:19PM |
Registered: 15 years ago Posts: 51 |
Re: Module: Twitter new posts October 30, 2009 11:07AM |
Registered: 11 years ago Posts: 17 |
ohhh so sorry and thx a lot ^^
we must enable in the PHP.INI : extension=php_curl.dll
:-)
Thx again
NB: WORKS LIKE A CHARM !! :) [twitter.com]
Edited 1 time(s). Last edit at 10/30/2009 11:40AM by iznogoud.
we must enable in the PHP.INI : extension=php_curl.dll
:-)
Thx again
NB: WORKS LIKE A CHARM !! :) [twitter.com]
Edited 1 time(s). Last edit at 10/30/2009 11:40AM by iznogoud.
Re: Module: Twitter new posts October 30, 2009 02:23PM |
Registered: 12 years ago Posts: 753 |
Sorry, only registered users may post in this forum.