Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

e-mail one forum in real time

Quote Reply
e-mail one forum in real time
Hi Guys, I've looked, I see various plug-ins that kind of do this.

I need one forum set-up to e-mail subscribers in real time. This would be used for time sensitive postings. Other forums would e-mail a digest every evening as they currently do. I have a small user base <120 so real time mailing of the odd post shouldn't be a big problem. Failing this...I need some other way of a gforum member to broadcast to all other members.

thoughts?

thanks folks.
Quote Reply
Re: [steven99] e-mail one forum in real time In reply to
hi steven99,

let your subscribe.pl run every 10 or 5 minutes with cron.


I know, that I know nothing.
Quote Reply
Re: [eoeser] e-mail one forum in real time In reply to
thanks for the reply. That's not going to work in this case. I need one forum that issues e-mails in more or less real time while the regular forums e-mail nightly (if a user is subscribed).

the idea is if there's a time dependent posting...."everyone who's interested, pub crawl tonight"....that message needs to go out now....while regular postings that aren't time sensitive can be sent via regular subscribe/cron at 4am..
Quote Reply
Re: [steven99] e-mail one forum in real time In reply to
ok, I know


you need to copy subscibe.pl to my_subscribe.pl

edit my_subscribe.pl


search for this line

Code:
my $sth = $DB->table('ForumSubscriber', 'User', 'Forum', 'Category')->select;

and change it to:

Code:
my $sth = $DB->table('ForumSubscriber', 'User', 'Forum', 'Category')->select({ forum_id => IN => [1,2,3,4] });

where 1,2,3,4 are your favored forums.

search this line:

Code:
$email->load("subscribe.eml");

and change it to:

Code:
$email->load("my_subscribe.eml");

copy the template subscribe.eml to my_subscribe.eml and modify whatever you want.


now let my_subscribe.pl frequently run.


I know, that I know nothing.

Last edited by:

eoeser: Aug 17, 2005, 7:51 AM
Quote Reply
Re: [eoeser] e-mail one forum in real time In reply to
sorry, for confusing

you have to copy and modify Subscribe.pm in admin/GForum

then

copy subscribe.pl in admin/cron to my_subscribe.pl

replace here all Subscribe with my_Subscribe


I know, that I know nothing.

Last edited by:

eoeser: Aug 17, 2005, 9:23 AM
Quote Reply
Re: [eoeser] e-mail one forum in real time In reply to
Thanks for getting back to me on this. I haven't installed the hack yet. No time at the moment and the fire has moved else where. I've post a review when I finally do have time. Thanks for the work.