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

Home » FUDforum Development » Plugins and Code Hacks » Add searchable field to message?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Add searchable field to message? [message #12196 is a reply to message #12168] Thu, 31 July 2003 00:31 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
  1. Add a text field to post.tmpl, pereferable with msg_ prefix attached to it's name.
  2. Modify the msg table adding either a VARCHAR or TEXT field depending on the length of the data you intend to store
  3. Modify imsg_edt adding a variable to fud_msg class under the same name as the field, minus the msg_ prefix.
  4. Modify the add() & sync() methods of fud_msg_edit class to insert the field into the databse.
  5. Modify the post.php.t code to handle the new field. You'll need to handle editing & creation.
  6. Modify drawmsg.php.t/drawmsg.tmpl to display field.
  7. Modify all scripts using tmpl_drawmsg() to fetch the field in their message fetching query.




FUDforum Core Developer
[Message index]
 
Read Message icon6.gif
Read Message
Read Message
Previous Topic: how can i build a page with fudforum's header and footer?
Next Topic: OQ(OICQ) Hack for chinese sites.
Goto Forum:
  

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

Current Time: Wed Nov 27 06:22:46 GMT 2024

Total time taken to generate the page: 0.04786 seconds