Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.
Attachments
73131-PostDetails1.1.txt (0 Bytes, 103 downloads)

Last edited by JoshPet; 06/22/2003 8:31 PM.
Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
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?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
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.

Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
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.


Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK - updated it to 1.1.

Version 1.1 only requires the field if it's a new post. It's optional in replies.

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Re uploaded to fix an error in my instructions.

Joined: Feb 2001
Posts: 104
Journeyman
Journeyman
Offline
Joined: Feb 2001
Posts: 104
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" />  

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Great - Thanks.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)