UBB.Dev
Posted By: JoshPet Beta-[6.2-6.3] Post Details 1.1 - 03/15/2003 9:25 AM
Mod Name: Post Details 1.1

Description: This adds an extra required field below the subject in every post. What is entered will appear above the body of the post.
  Version 1.1 only requires the input in New Posts... and the field is optional in replies.

Author: JoshPet of www.joshuapettit.com
       For discussion and bug reports go to www.ubbdev.com

Credits: Commissioned by ScottCargill

Date: 3/15/03

Working Under: 6.2 & 6.3

Files Modified: addpost.php, newpost.tmpl, newreply.tmpl, addpost_preview.tmpl

New Files: none

Database Modifications: None

Notes: I think this will work fine under earlier versions if you skip adding the "get_input" function.


Attached File
73131-PostDetails1.1.txt  (103 downloads)
Posted By: Gardener Re: [6.2] Post Details 1.0 - 03/15/2003 8:02 PM
Thanks for this. Don't know what I would use it for though, do you have an example or some tips on what to use it for?
Posted By: JoshPet Re: [6.2] Post Details 1.0 - 03/15/2003 8:37 PM
I think Scott's wife runs a site where they post pictures of decorated cakes etc...
So he wanted a line for "who, what, where, when" that was required.
Posted By: ScottCargill Re: [6.2] Post Details 1.0 - 03/16/2003 4:52 AM
We're hopeing that this will maximize the search capabilities of the forum. As it is now people will post a quick message like "nice football cake I made." which in itself is nice if you do a search on football, but not real helpfull if you're search is for how it was made, or for what occassion.

Main thing is to give the search engine a bit more to key off of.

Posted By: JoshPet Re: [6.2] Post Details 1.1 - 03/16/2003 7:54 AM
OK - updated it to 1.1.

Version 1.1 only requires the field if it's a new post. It's optional in replies.
Posted By: JoshPet Re: [6.2] Post Details 1.1 - 03/16/2003 7:53 PM
Re uploaded to fix an error in my instructions.
Posted By: ScottCargill Re: [6.2] Post Details 1.1 - 06/23/2003 1:40 AM
Works in 6.3 too!

There were / was one mistake in the instructions that I don't know if it got fixed.

In the newpost.tmpl file



Code
 {$ubbt_lang['SUBJECT_TEXT']}<br /><br /><br /><input type="text" name="Subject" maxlength="{$config['subjectlength']}" class="formboxes" size="60" /> 


Should be

Code
<br /><br /><br />Who, What, Where, When (required)<br /><br /><br /><input type="text" name="requiredExtraInfo" maxlength="{$config['subjectlength']}" class="formboxes" size="60" />  
Posted By: JoshPet Re: [6.2] Post Details 1.1 - 06/23/2003 3:31 AM
Great - Thanks.
© UBB.Developers