Firefox PHP

Module: Twitter new posts

Posted by Brian Moon 
Re: Module: Twitter new posts
May 20, 2009 07:36PM
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
Re: Module: Twitter new posts
June 07, 2009 07:01AM
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:

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
Re: Module: Twitter new posts
June 07, 2009 08:28AM
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
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
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
Re: Module: Twitter new posts
June 23, 2009 11:09PM
No thoughts on this? I've tried a couple things myself, but have so far only managed to screw things up. :D

Wallet Friendly Watch Forum
www.wf-wf.com
Re: Module: Twitter new posts
October 29, 2009 05:56PM
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]
Re: Module: Twitter new posts
October 29, 2009 06:19PM
Re: Module: Twitter new posts
October 30, 2009 11:07AM
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.
Re: Module: Twitter new posts
October 30, 2009 02:23PM
Is it possible to only receive threadstarters of a folder/forum? Thank you!
Sorry, only registered users may post in this forum.

Click here to login