Setting default body content for a single forum [message #10636] |
Thu, 05 June 2003 22:02 |
jmartinson
Messages: 12 Registered: June 2003
Karma: 0
|
Junior Member |
|
|
We have one forum inside FUD where a user enters a completed form and then someone else approves it by replying. Is there any way to create some default body content for all new threads in one of the forums so users don't have to manually enter it every time?
I was looking through post*.tmpl but then realized that would affect all forums.
Thanks!!!
-Jacob
|
|
|
|
Re: Setting default body content for a single forum [message #10641 is a reply to message #10637] |
Thu, 05 June 2003 23:04 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Inside the post.php.t add something like this:
<?php if ($frm_id == your_forum_id && !isset($msg_body)) { $msg_body = "your stuff goes here"; } ?>
This code should go probably below this line:
<?php $message_err = get_err('msg_body', 1); ?>
FUDforum Core Developer
|
|
|
|