Version: 1.3.0, by harmor19
Developer Last Online: May 2023
Category: New Posting Features -
Version: 3.6.4
Rating:
Released: 10-07-2006
Last Update: 05-03-2007
Installs: 221
DB Changes Uses Plugins Template Edits
No support by the author.
What you can do with this hack is add multiple fields when someone creates a new thread. You can specify what fields can go in which forums.
To add, edit, or delete a custom field go into your ACP Forums & Moderators --> Threads Field Manager
################## Updates ##################
1.0.0 - Initial Release
1.1.0 - Fixed bug
1.2.2 - Added the ability to add a field to multiple forums more easily
1.3.0 - Fixed some crucial bugs
1.4.0 - Added more features
################## Updates ##################
If you have installed this add-on on your board please click Install to the bottom right of this post You are not permitted to redistribute this add-on on any site.
If you feel this add-on deserves Mod of the Month please click to nominate it
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Working for me but, the fields appear twice under the Message area.
Also is there a way to remove the message area and only use these fields when Posting with this section.
I got rid of the two areas by deleting the template addon plugin that was installed with the mod & then manually editing the template putting the code where I needed it. My only prob now is trying to get the post that was made with it to be in the same output format as the input was. For example: I have this:
Just installed this hack on my vB 3.70,
it works fine, except the message preview concatenates all the fields into one message in the default message textfield... is this the way it is? or is there something wrong?
I was expecting the message preview to disseminate the custom inputs into their respective custom fields.... ? yes ? no ?
I've hacked around with the newthread.php file before this install, trying my own hand at customizing it for the exact purpose this hack is for... but my major problem was trying to get around the preview issue, (and validation, which this hack does the ok, so i have made progress)... I thought this hack would resolve the preview issue... maybe not..?
btw i reverted to the original v. of newthread.php (pre my own hack) before i installed this hack.
I unstalled the hack and reinstalled it again.. no joy.. can anyone help?
I got it installed on vB 3.7 and have taken care of most of the html issues. Unfortunately, when using a "Text Area" style field, <br /> Tags are placed after each line entry. Yes, I know I dont have HTML turned on, I dont want it on. Below is what it places into my edit box.
This worked for me as a solution to this issue:
using the plugin manager edit newthread_post_start
comment out the line:
Code:
$value = nl2br($value);
so it becomes
Code:
// $value = nl2br($value);
as this is the line inserting the <br />s
worked for mee...
I've noticed that the above hack works if the poster is using standard entry for their message box. However, if you have a user using the enhanced editor, doing the above hack will take out all of the line returns in the post, making the BR tags necessary.
I've since uncommented the code, and forced my users to use the enhanced message box for consistency.
Everything seemed to install well and the custom field HTML table is showing on the newthread page, but it is blank and no fields are showing up. I have double and tripled checked the forum ID under the Threads Field Manager and everything looks OK. It is as if the $customform variable in the template is empty or undefined. Any clues?
PS I did have to manually edit the newthread template, but I cut and paste the text from the instructions verbatim and did not change it.
PSS The only thing that may be unusual about my custom field is mine is a select box with 63 values. (State and province names)
Everything seemed to install well and the custom field HTML table is showing on the newthread page, but it is blank and no fields are showing up. I have double and tripled checked the forum ID under the Threads Field Manager and everything looks OK. It is as if the $customform variable in the template is empty or undefined. Any clues?
PS I did have to manually edit the newthread template, but I cut and paste the text from the instructions verbatim and did not change it.
PSS The only thing that may be unusual about my custom field is mine is a select box with 63 values. (State and province names)
Never mind - didn't realize I had to turn on an option in the VBulletins option page. So I undid my manual template changes, turned the option on; and viola` - custom field is present. Thanks!