Default "follow-topic" status?
Posted by optimal
Default "follow-topic" status? April 21, 2008 08:10PM |
Registered: 16 years ago Posts: 57 |
Re: Default "follow-topic" status? April 21, 2008 08:17PM |
Registered: 16 years ago Posts: 57 |
Re: Default "follow-topic" status? April 21, 2008 08:20PM |
Admin Registered: 19 years ago Posts: 8,532 |
This forum is okay for your request. There is no such module yet, but it should not be a really hard one to write. Try pasting the code from below in a file mods/mod_setfollowtopic.php in your phorum directory. Go to the modules page to activate the module. I did not test the code at all, but you might get lucky ;-)
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Edited 1 time(s). Last edit at 12/02/2009 10:35AM by Maurice Makaay.
Language: PHP<?php /* phorum module info hook: before_register|phorum_mod_setfollowtopic title: Force the follow topic status at registration desc: This module will set the default follow topic status to follow topic and mail on reply. */ function phorum_mod_setfollowtopic($userdata) { $userdata[';email_notify';] = 2; return $userdata; } ?>
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Edited 1 time(s). Last edit at 12/02/2009 10:35AM by Maurice Makaay.
Re: Default "follow-topic" status? April 21, 2008 08:24PM |
Registered: 16 years ago Posts: 57 |
Re: Default "follow-topic" status? April 21, 2008 08:30PM |
Registered: 16 years ago Posts: 57 |
Re: Default "follow-topic" status? April 21, 2008 08:50PM |
Admin Registered: 19 years ago Posts: 8,532 |
My wife's suggestion (a nice shortcut): If it moves, kill it, then eat it.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Default "follow-topic" status? April 21, 2008 10:40PM |
Registered: 16 years ago Posts: 57 |
Re: Default "follow-topic" status? April 22, 2008 12:22AM |
Admin Registered: 19 years ago Posts: 8,532 |
I have an awesome wife for sure. I think the rest of the Phorum team can back me up on that ;-)
Have you been able to figure out what to do with that code from above? It's really simple, but you seem to have been scared away a bit on this. Just in case, what you need to do is simply put that code in some.php file (the exact name doesn't really matter, as long as it has the .php extension) inside your Phorum's "mods" directory. This is the whole module in the special single file module format. If you have put this in the PHP file, then you will be able to see the module in the admin.php interface under "Modules", where you can enable it.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Have you been able to figure out what to do with that code from above? It's really simple, but you seem to have been scared away a bit on this. Just in case, what you need to do is simply put that code in some.php file (the exact name doesn't really matter, as long as it has the .php extension) inside your Phorum's "mods" directory. This is the whole module in the special single file module format. If you have put this in the PHP file, then you will be able to see the module in the admin.php interface under "Modules", where you can enable it.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Default "follow-topic" status? April 22, 2008 03:46PM |
Registered: 16 years ago Posts: 57 |
Re: Default "follow-topic" status? April 23, 2008 05:14PM |
Admin Registered: 19 years ago Posts: 8,532 |
The docs should give you a good start (docs -> developer). And of course the plethora of modules that we're building up. If you have any question, just kick me. I'd be happy to help you out.
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.