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 :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
icon6.gif  Add searchable field to message? [message #12168] Wed, 30 July 2003 12:30 Go to next message
Oliver is currently offline  Oliver   United States
Messages: 8
Registered: June 2003
Location: Friday Harbor WA
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I would be extremely grateful if someone could provide a step by step tutorial on how to add an additional text field to a standard message. I'm sure this would interest a wide variety of webmasters becuase the addition of an additional field has so many uses. *ANY* tips or info would be appreciated! Smile
Re: Add searchable field to message? [message #12196 is a reply to message #12168] Wed, 30 July 2003 20:31 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
add to buddy list
ignore all messages by this user
  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
Re: Add searchable field to message? [message #12309 is a reply to message #12168] Sun, 03 August 2003 23:53 Go to previous message
Oliver is currently offline  Oliver   United States
Messages: 8
Registered: June 2003
Location: Friday Harbor WA
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Thanks a lot, I'll try this and let you know.

Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Tue Dec 12 22:44:13 EST 2017

Total time taken to generate the page: 0.00671 seconds