|
Re: Add searchable field to message? [message #12196 is a reply to message #12168] |
Thu, 31 July 2003 00:31 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
- Add a text field to post.tmpl, pereferable with msg_ prefix attached to it's name.
- Modify the msg table adding either a VARCHAR or TEXT field depending on the length of the data you intend to store
- Modify imsg_edt adding a variable to fud_msg class under the same name as the field, minus the msg_ prefix.
- Modify the add() & sync() methods of fud_msg_edit class to insert the field into the databse.
- Modify the post.php.t code to handle the new field. You'll need to handle editing & creation.
- Modify drawmsg.php.t/drawmsg.tmpl to display field.
- Modify all scripts using tmpl_drawmsg() to fetch the field in their message fetching query.
FUDforum Core Developer
|
|
|
|