FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Setting default body content for a single forum
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Setting default body content for a single forum [message #10636] Thu, 05 June 2003 22:02 Go to next message
jmartinson is currently offline  jmartinson   United States
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 #10637 is a reply to message #10636] Thu, 05 June 2003 22:04 Go to previous messageGo to next message
jmartinson is currently offline  jmartinson   United States
Messages: 12
Registered: June 2003
Karma: 0
Junior Member
The "form" is basically text they paste in like this:

NAME:
REQUEST:
RESPONSE CHANNEL:

It isn't actually an HTML form.
Re: Setting default body content for a single forum [message #10641 is a reply to message #10637] Thu, 05 June 2003 23:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: Setting default body content for a single forum [message #10670 is a reply to message #10641] Fri, 06 June 2003 15:10 Go to previous message
jmartinson is currently offline  jmartinson   United States
Messages: 12
Registered: June 2003
Karma: 0
Junior Member
Wow, that worked beautifully!

Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: User delete posts.
Next Topic: Problems with PATH_INFO temlate set
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 22:57:40 GMT 2024

Total time taken to generate the page: 0.02751 seconds