View Full Version : New Posting Features - Custom Thread Fields
harmor19
10-07-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominatehotm&t=128587)
harmor19
10-08-2006, 05:19 PM
Reserved
UltraVR
10-08-2006, 06:51 PM
This is a great idea. I'm going to try it when I get a chance. Good job!
Question: How many queries does this add?
harmor19
10-08-2006, 07:11 PM
It only adds two to "newthread.php".
harmor19
10-08-2006, 07:27 PM
New feature is being coded so if you haven't installed this yet please wait atleast 5-10 minutes.
The new feature allows you to select if the field is required or not.
chimaira
10-08-2006, 07:29 PM
Have no use for this. But i can seeing it being a very usefull hack for someone... Sure is a good idea. Nice one mate.
soletrader
10-08-2006, 07:45 PM
I dont see any Thread Fields Manager. Where is it located?
harmor19
10-08-2006, 07:48 PM
I dont see any Thread Fields Manager. Where is it located?
To add, edit, or delete a custom field go into your ACP
Forums & Moderators --> Threads Field Manager
I didn't want to create another category for one little link.
harmor19
10-08-2006, 08:10 PM
I have updated this hack to allow fields to be required or not.
If you are upgrading overwrite every file.
soletrader
10-08-2006, 09:09 PM
Doesnt exist in 3.6.0.
harmor19
10-08-2006, 09:28 PM
Did you upload "cpnav_custom_thread_fields.xml" which is located in "includes/xml/" to "your_site/your_forums/includes/xml/"?
hotwheels
10-08-2006, 11:18 PM
very nice work......
Comalies
10-09-2006, 12:37 AM
Doesn't work on 3.6.0.
harmor19
10-09-2006, 12:48 AM
Doesn't work on 3.6.0.
What part doesn't work?
Comalies
10-09-2006, 01:01 AM
I can't find any options in admin panel under Forums & Moderators and I uploaded all the files to the correct spots and imported the product. *Shrug*
harmor19
10-09-2006, 02:01 AM
I can't find any options in admin panel under Forums & Moderators and I uploaded all the files to the correct spots and imported the product. *Shrug*
I'll install 3.6.0 soon and see if I can figure it out.
harmor19
10-09-2006, 02:52 AM
I forgot to change the product ID of the XML file.
For those who have downloaded this hack please download the attachment in this file and overwrite "cpnav_custom_thread_fields.xml" located in "includes/xml/"
bchertov
10-09-2006, 04:10 AM
How does this differ from the 3.5 (reported to work in 3.6) Extra Threadfields Lite (https://vborg.vbsupport.ru/showthread.php?t=108888)hack?
harmor19
10-09-2006, 04:48 AM
How does this differ from the 3.5 (reported to work in 3.6) Extra Threadfields Lite (https://vborg.vbsupport.ru/showthread.php?t=108888)hack?
I haven't used that hack so I don't know.
novalogix
10-09-2006, 08:23 AM
Harmor19,
Great mod here, just 1 little question i have in mind, can a few forums share the same custom field? In this way, i dont have to create the same field over and over again to make it work in some of the forums.
I have tried a few methods in this mod to let a few forums share them, but apparently it only reads 1 forum ID. Maybe it can be done by using a comma to concatenate the IDs.
Hornstar
10-09-2006, 09:40 AM
Harmor19,
Great mod here, just 1 little question i have in mind, can a few forums share the same custom field? In this way, i dont have to create the same field over and over again to make it work in some of the forums.
I have tried a few methods in this mod to let a few forums share them, but apparently it only reads 1 forum ID. Maybe it can be done by using a comma to concatenate the IDs.
Id love to see that feature as well. it would really save a lot of effort.
Snake
10-09-2006, 10:22 AM
Wow this is great. Thansk! :D
soletrader
10-09-2006, 10:47 AM
yea the thread fields manager wont show up in 3.6
paul41598
10-09-2006, 11:26 AM
the hack has potential, I'd still like to see like radio buttons, checkboxes, etc. I know Geologist stopped working on extra thread fields lite, so Id rather not use that product anymore. Need something different, but along those lines
harmor19
10-09-2006, 09:11 PM
yea the thread fields manager wont show up in 3.6
Have you tried the attachment on this post (https://vborg.vbsupport.ru/showpost.php?p=1092798&postcount=17)?
novalogix
10-10-2006, 02:46 AM
Harmor19,
Great mod here, just 1 little question i have in mind, can a few forums share the same custom field? In this way, i dont have to create the same field over and over again to make it work in some of the forums.
I have tried a few methods in this mod to let a few forums share them, but apparently it only reads 1 forum ID. Maybe it can be done by using a comma to concatenate the IDs.
Harmor19,
I will really like to hear your view on this matter. This is important because i have been looking for a mod like your's for very long and I need a few custom fields to work on more than 10 forums on my board. Hope you can shed some light in this matter. Thanks for your work!
harmor19
10-10-2006, 03:26 AM
I will make it so you can separate forum IDs with commas. The custom field will show up on the forum IDs you've typed in.
novalogix
10-10-2006, 04:06 AM
Thanks for your prompt reply, I will really be looking forward to that happening. This mod has the potential to be an essential mod to vB.
3dsoft
10-10-2006, 07:26 AM
I'd still like to see like radio buttons, checkboxes
This hack could easly be a "hack of the month"!
harmor19
10-10-2006, 09:05 AM
This hack could easly be a "hack of the month"!
I would prefer "vHosting" get HotM because I put so much time into it.
I stayed up for hours coding it, adding features, making sure no one can circumvent areas, making sure all the input variables were cleaned.
I even put time into writing the instructions.
The one thing that could be improved is the use of joining queries where appropriate. I didn't know how to use "LEFT JOIN" when I started writing vHosting.
3dsoft
10-11-2006, 05:04 PM
I would prefer "vHosting" get HotM because I put so much time into it.
I voted for it since you prefer it. ;)
paul41598
10-11-2006, 06:33 PM
I'd like to see more addons to this great hack. For example the below screenshots. I've added the ability to add the custom thread field to the thread title or leave it in the body, either or.
novalogix
10-12-2006, 03:00 AM
I'd like to see more addons to this great hack. For example the below screenshots. I've added the ability to add the custom thread field to the thread title or leave it in the body, either or.
Wow, that's nice. I am wondering if you face the same issue as me. Maybe you can help me out here, i have more than 1 field to add to more than 10 forums, in this current mod i have to create them repeatedly.
Do you know how to go around it? I am not much of a coder, but i know it is due to the forumid field in the table being a mediumint, do you think changing it to a string will help? Please advise.
PS - Harmor did say he will make the amendment to the mod, but i am guessing he will take quite a while since he got so many mods going on. :cool:
harmor19
10-12-2006, 03:05 AM
I am forcing myself to add the ability to add a field to multiple forums by Saturday. If I don't then click the "Uninstall" button.
I'll add radio button, and check boxes someday.
novalogix
10-12-2006, 05:33 AM
I am forcing myself to add the ability to add a field to multiple forums by Saturday. If I don't then click the "Uninstall" button.
I'll add radio button, and check boxes someday.
Harmor,
Thanks for those assuring words, much appreciated! Even if you dont, i will still keep this mod, i will still support a good mod!
bchertov
10-12-2006, 01:48 PM
I'd like to see more addons to this great hack. For example the below screenshots. I've added the ability to add the custom thread field to the thread title or leave it in the body, either or.How about posting your great addon, Paul?!?
paul41598
10-12-2006, 02:29 PM
How about posting your great addon, Paul?!?
Sorry, dont think its a good idea. Cant take authors code and redistribute it with open modifications without permission. Who knows, maybe we'll kinda work together on it though putting in addons
harmor19
10-13-2006, 12:48 AM
Sorry, dont think its a good idea. Cant take authors code and redistribute it with open modifications without permission. Who knows, maybe we'll kinda work together on it though putting in addons
You can do it as an add-on hack.
I have add the ability to add a field to multiple forums more easily.
novalogix
10-13-2006, 02:46 AM
Harmor,
Thanks for the tremendous efforts. You have saved me from entering 40 over custom fields.
This is indeed a good mod!
SeQual
10-15-2006, 03:03 PM
Is there a way to have a textarea instead of input box?
trilljester
10-16-2006, 06:28 PM
What would be awesome for this mod, would be the ability for users to choose an option from a drop-down box and have that option appear in the post.
I.E. I'd love to have a simple movie/music review forum where users can select their rating of a movie with that drop down box, and it could show a summary of ratings based on people's votes.
paul41598
10-18-2006, 05:38 PM
Not sure if this deserves its own thread, so I guess I'll post my addon here. Ability to have opening and closing tags for the fields
paul41598
10-18-2006, 06:39 PM
Ok, last update. Sorry. Added the ability to put a display length, and max length for the text boxes. Also a description :classic:
harmor19
10-19-2006, 08:10 AM
What would be awesome for this mod, would be the ability for users to choose an option from a drop-down box and have that option appear in the post.
I.E. I'd love to have a simple movie/music review forum where users can select their rating of a movie with that drop down box, and it could show a summary of ratings based on people's votes.
I'll add it when I have the motivation.
Thank you Paul for the add-ons.
SeQual
10-19-2006, 09:54 PM
Is there a way to have a textarea instead of input box?
Tried it myself, but the normal vb message box gets all mixed up with it. :ermm:
harmor19
10-19-2006, 11:20 PM
It's being coded in the next version.
Gripemaster
10-19-2006, 11:36 PM
This will be a great addition to my "Flea Market" section on my forum. Excellent work! Thank you!
*Clicks Installed* ;)
SeQual
10-20-2006, 06:56 AM
It's being coded in the next version.
Cool thanks, will be a great addition :up:
Greek76
10-20-2006, 09:44 PM
I have a problem. For some reason Im doing a specific forum which is 37 and it works fine. But how come its affecting three more forums which are under different id's? The reason why I know because when I attempt to post in those three forums its says please fill out required fields... What went wrong?
novalogix
10-21-2006, 03:05 AM
I have a problem. For some reason Im doing a specific forum which is 37 and it works fine. But how come its affect three more forums which are under different id's? The reason why I know because when I attempt to post in those three forums its say please fill out required fields... What went wrong?
Hey, it is a bug! I have the same problem. Harmor, pls help!:p
novalogix
10-23-2006, 04:24 PM
Hey, it is a bug! I have the same problem. Harmor, pls help!:p
Harmor,
Is there a fix coming for this?
paul41598
10-24-2006, 12:36 AM
u know what I just realized is this hack works badly if a usergroup can't post HTML. all the html tags show up in the body of the thread. At least on my end
Neutral Singh
10-24-2006, 01:25 AM
It would be great if it could support profile like options like drop down menu, bigger text area etc.
trilljester
10-24-2006, 04:54 PM
I'll add it when I have the motivation.
Thank you Paul for the add-ons.
Excellent! That would be a great addition. For now, I can add the custom fields for the Movie/Music review forum I'm setting up, at least that can give the users a kick in the right direction.
The drop-down thing would be awesome, thanks again.
lazyseller
10-24-2006, 08:01 PM
textarea would be awesome any plans when the next version will be released ?
category
10-25-2006, 09:36 PM
it uploads give me a table error
Greek76
10-26-2006, 10:56 PM
So harmor how abou it have any ideas on how to stop that from happening?
murekhalir
10-27-2006, 11:10 PM
I'm getting it too, so I'm uninstalling this unless theres a solution.. o.o
Greek76
10-28-2006, 01:15 PM
Yes I uninstalled it as well. Its a good hack but unfortunately no answers to these problems that we are having..
novalogix
11-01-2006, 06:35 AM
Harmor,
I hope you have not given up on this mod, it is very useful to the community using vBulletin. Please say something about the bug in this mod.
Thanks for your contribution.
category
11-01-2006, 09:08 PM
he gave up there is a similar mod for 3.5.2 that works for 3.6.0
paul41598
11-01-2006, 11:27 PM
I composed a fix for everyone. Hopefully should work for everyone like it did me.
When in doubt, leave it up to me to fix da bugs ;)
If you don't wanna re-import the XML then goto your plugin manager
FIND: newthread_post_start
if($forms['required'] == 1)
{
if(empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
}
replace with:
if($forms['required'] == 1)
{
$forumids = explode(",", $forms['forumid']);
if(in_array($foruminfo['forumid'], $forumids))
{
if(empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
}
}
Don't forget to check out my addons for this hack here (https://vborg.vbsupport.ru/showpost.php?p=1099628&postcount=42) and here (https://vborg.vbsupport.ru/showpost.php?p=1099679&postcount=43) !
Greek76
11-02-2006, 04:53 PM
Make sure "Allow Overwrite" is "No" and click "Import" is what you say , but if the original one is on it wont let you import the product with out overwriting the original file. So what I did was edit the code with you quoted up above. I also added the Custom thread field add on and all I see is just text boxes after the Required field...
Add a New Custom Field
Enter the Forum IDs for the field to be placed in
Seperate each ID with a comma, Use -1 to include all forum IDs
Title:
Required
When I click save I get this database error....
Database error in vBulletin 3.6.2:
Invalid SQL:
UPDATE custom_thread_forms SET
forumid = '37',
title = 'For Sale',
required = '1',
prefixed = '0',
opentag = '',
closetag = '',
textboxsize = '0',
textboxmax = '0',
textboxdesc = ''
WHERE custom_formid = 1;
MySQL Error : Unknown column 'prefixed' in 'field list'
Error Number : 1054
paul41598
11-02-2006, 06:10 PM
you know what though, which I failed to mention. My addon is the code from the original hack version. You cant enter in extra forum id's seperated by columns, etc. I've never wrote my addon to reflect the most recent update of this hack with is more than 1 forum id.
So dont use my addon basically..
boywonder
11-02-2006, 07:10 PM
Is there any way that the fields names can form additional top columns in the list of threads ( eg so you could have "Thread Title", "Custom Field 1" "Custom Field 2", Last Post, Replies etc) - with the entries for the fields listed below (and ideally sortable) as entries in the new thread columns?
This would be fantastic!
tekstylez
11-03-2006, 01:15 PM
I am getting the following code when posting a new thread
<br /><br />
----------------------------------------<br />
----------------------------------------<br />
Is there a fix for this?
I am getting the following code when posting a new thread
<br /><br />
----------------------------------------<br />
----------------------------------------<br />
Is there a fix for this?
THat's because u prolly have html-code set to off ;)
Go to ur plugins
edit: Custom Thread Forms [newthread_post_start]
In the big text-box with the php-code, scroll down to the bottom and find:
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "<br /><br />
----------------------------------------<br />
$custom_message
----------------------------------------<br />";
replace it with:
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "
----------------------------------------
$custom_message
----------------------------------------
";
So, the <br> tages just become an enter ;)
(make sure they are within "")
You prolly might have the same problem with the custom tags and answers..
Above that area u just fixed, find:
if(in_array($foruminfo['forumid'], $forumids))
{
$custom_message .= "<b>".$forms['title']."</b>: $value<br />";
}
Change it into this:
if(in_array($foruminfo['forumid'], $forumids))
{
$custom_message .= "".$forms['title'].": ".$value."
";
If u want colored titles, do something like:
$custom_message .= "".$forms['title'].": ".$value."
";
Notice that I removed the "" from "[/B]NAVY"]
(somehow placing a \ in front of them isn't working)
[COLOR="Green"]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
I would like to see an option in type of field, like I want to have a textarea sometimes.
And also the ability for an url-field.
So u get:
._________ . .___________
|_link-field_| |_name-field_|
for example ;)
taydu
11-04-2006, 02:57 AM
great mod harmor19,
How do i make the text of the custom field appear before the actual post content?
Currently you have
The content of the post here
----------------------------
Custom field text area
----------------------------
How do I make it
----------------------------
Custom field text area
----------------------------
The content of the post here
Is there a way to produce these tags individually like the custom profile fields works? I need to merge 2 fields wrapped in an if statment dependant on the first. I don't Need titles/questions before the fields either. It's so my members can add a proper html link without having to have HTML rights. I'll install if there is a way to do that.
Nice to see someone started a new one since the Extra Fields one went bye bye. :)
great mod harmor19,
How do i make the text of the custom field appear before the actual post content?
Currently you have
The content of the post here
----------------------------
Custom field text area
----------------------------
How do I make it
----------------------------
Custom field text area
----------------------------
The content of the post here
Easy, go to the relevant plugin, I mentioned 2 posts above urs.
then:
change:
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "<br /><br />
----------------------------------------<br />
$custom_message
----------------------------------------<br />";
into:
$vbulletin->GPC['message'] = "<br />
----------------------------------------<br />
$custom_message
----------------------------------------<br /><br />" . $vbulletin->GPC['message'];
taydu
11-05-2006, 02:05 AM
please excuse me but where do I go to edit ???
Go to ur plugins
edit: Custom Thread Forms [newthread_post_start]
ry215
11-05-2006, 05:53 AM
So I downloaded the zip file from Harmor, followed the instruction...even overwrite the old cpnav_custom...
When I tried to import the xml file, it give me error message...
any help is appreciated.
harmor19
11-05-2006, 10:10 AM
What was the error?
ry215
11-05-2006, 05:31 PM
here is the error message....
Invalid SQL:
CREATE TABLE `d60299324custom_thread_forms` (
`custom_formid` mediumint(10) unsigned NOT NULL auto_increment,
`forumid` mediumint(10) unsigned NOT NULL default '',
`title` varchar(130) NOT NULL default '',
PRIMARY KEY (`custom_formid`)
);;
MySQL Error : Invalid default value for 'forumid'
Error Number : 1067
Date : Sunday, November 5th 2006 @ 02:28:27 PM
Script : http://www.tinhthoviet.com/forum/admincp/plugin.php?do=productimport
Referrer : http://www.tinhthoviet.com/forum/admincp/plugin.php?do=productadd
IP Address : 71.225.126.57
Username : nhk
Classname : vb_database
please excuse me but where do I go to edit ???
in your admin panel / Manage Plugins
You see the plugin Custom Thread Forms [newthread_post_start] in there ;)
taydu
11-06-2006, 05:22 AM
Thanks LaCN it work like charm
taydu
11-08-2006, 08:37 AM
Please help my custom thread field doesn't goes to the new line after each custom field
custom field 1: xxx custom field 2: yyy custom field 3: zzz
I want it like this
custom field 1: xxx
custom field 2: yyy
custom field 3: zzz
Message
follow is the code from newthread_post_start
$getcustomthreadfields = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "custom_thread_forms ");
while($forms = $db->fetch_array($getcustomthreadfields))
{
$custom_formid = "custom_$forms[custom_formid]";
$value = htmlspecialchars($_POST[$custom_formid]);
if($forms['required'] == 1)
{
if(empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
}
if($forms['forumid'] != "-1")
{
$forumids = explode(",", $forms['forumid']);
if(in_array($foruminfo['forumid'], $forumids))
{
$custom_message .= "".$forms['title']." ".$value."
";
}
}
if($forms['forumid'] == "-1")
{
$custom_message .= "<b>".$forms['title']."</b>: $value<br />";
}
}
$vbulletin->GPC['message'] = "
$custom_message
" .$vbulletin->GPC['message'];
Guess my question was missed?
https://vborg.vbsupport.ru/showpost.php?p=1110497&postcount=69
No I haven't clicked install yet because I haven't installed yet. Just asking questions before hand to know if it will work how I want first.
taydu
11-09-2006, 08:54 PM
it would be nice to not display the custom fields thread in the post if nothing is available. This way when user edit there post it won't be doublicate
field 1
field 2
if edit one
field 1
field 2
field 1
field 2
FractalizeR
11-13-2006, 02:26 PM
`forumid` mediumint(10) unsigned NOT NULL default '',
Your MySQL is running in STRICT mode. Change this line to
`forumid` mediumint(10) unsigned NOT NULL default 0,
FractalizeR
11-13-2006, 02:28 PM
Executing this MySQL query may be also required for latest version. It is broken in archive:
ALTER TABLE `f_custom_thread_forms` ADD `required` TINYINT UNSIGNED NOT NULL DEFAULT '0';
mgurain
11-27-2006, 04:56 AM
I got it parsed incorrectly in the post :
<br /><br />
----------------------------------------<br />
<b>source</b>: some text<br /><b>related topic</b>: the hack<br />
----------------------------------------<br />
where it should be :
----------------------------------------
source : some text (http://www.vbulletin.org)
related toipc : the hack (https://vborg.vbsupport.ru/showthread.php?t=128587)
----------------------------------------
?!
djneural
11-27-2006, 09:37 AM
Hi,
I'd like to add a thread content language list as input field.
The user will have to chose among available languages that I'll have defined.
I'd like to do a multi-language forums site where all languages can reside in the same forums.
A bit like youtube, where you choose a language for your content and then you post it.
If it's not implemented in this plug-in, I think it would be a really interesting improvement.
An easy implementation would be to allow the user to define a list of choices separated by commas in the control panel and add a checkbox for select drop down or box.
And I don't know if it's easy but if you want to go further, your plug-in could also add the custom fields choices as criterias in vBulletin's advanced search feature.
Thanks
mauro1947
12-03-2006, 01:02 PM
Hi!
This is a great mod, but when i install in my vB 3.6.4 i got this error:
Database error in vBulletin 3.6.4:
Invalid SQL:
CREATE TABLE `vB_custom_thread_forms` (
`custom_formid` mediumint(10) unsigned NOT NULL auto_increment,
`forumid` mediumint(10) unsigned NOT NULL default '',
`title` varchar(130) NOT NULL default '',
PRIMARY KEY (`custom_formid`)
);;
MySQL Error : Invalid default value for 'forumid'
Error Number : 1067
Date : Sunday, December 3rd 2006 @ 03:59:01 PM
Script : http://www.------.com/foro/admincp/plugin.php?do=productimport
Referrer : http://www.----------.com/foro/admincp/plugin.php?do=productadd
IP Address : 24.xxx.xx.34
Username : mauro1947
Classname : vb_database
How can i fix this???
I want this mod on my vB
Thanks a lot!!!
OmniBuzz
12-03-2006, 04:07 PM
I thought that once the fields was set, it was not possible to come back and edit them...
and you can do that right away...
Meaning it is a nice hack, but useless for me as I want to require a validation from my customers. If they can come back and edit the fields in the thread your hack will not help me...
Anyone has an idea about where I could find some sort of "one way validation system" in a thread ?
ex : are you happy with our answer ? Yes or No.
--- and if it is yes, it stays yes :)
OmniBuzz
12-03-2006, 06:34 PM
I installed the original hack without any modification and I keep having this :
----------------------------------------
----------------------------------------
in each first posts, including in the forums where the hack is not supposed to be active...
Any help would be appreciated a lot.
mauro1947
12-03-2006, 06:39 PM
Hi!
Anyone can help me with my problem (a few post ago)??
Please, i need your help!
Thanks!!!!!! a lot!!!!
marcoasura
12-14-2006, 11:57 AM
Can I move the filed to the message box same as bleow image
https://vborg.vbsupport.ru/
mauro1947
12-19-2006, 03:08 PM
Hi!
I really need this mod, but it can't works on vBulletin 3.6.4.
When i try to install i received this message:
Database error in vBulletin 3.6.4:
Invalid SQL:
CREATE TABLE `vB_custom_thread_forms` (
`custom_formid` mediumint(10) unsigned NOT NULL auto_increment,
`forumid` mediumint(10) unsigned NOT NULL default '',
`title` varchar(130) NOT NULL default '',
PRIMARY KEY (`custom_formid`)
);;
MySQL Error : Invalid default value for 'forumid'
Error Number : 1067
Date : Sunday, December 3rd 2006 @ 03:59:01 PM
Script : http://www.------.com/foro/admincp/p...=productimport
Referrer : http://www.----------.com/foro/admin...?do=productadd
IP Address : 24.xxx.xx.34
Username : mauro1947
Classname : vb_database
Have you any solution???
Thanks a lot
Bye!
novalogix
12-21-2006, 02:59 PM
Hi all, i am having the display of the custom fields working fine when i post from a PC. however, when i tried doing it on a Mac, it doesn't seem to be reading the <br /> tags and ends up being like this:
<br /><br />
----------------------------------------<br />
value 1 value 2 value 3
----------------------------------------<br />
I understand in the previous posts that this is due to the xhtml tags not being read. I have tried the solution given but that makes me post from pc messed up, so any suggestion to make it owkr on a mac and pc?
OmniBuzz
01-01-2007, 07:19 PM
I installed the original hack without any modification and I keep having this :
----------------------------------------
----------------------------------------
in each first posts, including in the forums where the hack is not supposed to be active...
Any help would be appreciated a lot.
Any chance to have an answer ?
OmniBuzz
01-12-2007, 09:15 AM
https://vborg.vbsupport.ru/external/2010/06/10.gif
Right.
killugood9000
01-14-2007, 08:40 PM
I have uploaded all files and imported product. Works good up until I try to submit the thread at which time it tells me to go back and fill out all reqiured custom fields. I have tried to make them not required but says same thing. I am using vb 3.6.4.
Thanks for hack
DeMiNe0
01-16-2007, 04:00 PM
I am having this same problem but on ALL threads..
I have uploaded all files and imported product. Works good up until I try to submit the thread at which time it tells me to go back and fill out all reqiured custom fields. I have tried to make them not required but says same thing. I am using vb 3.6.4.
Thanks for hack
imranbaig
02-25-2007, 07:56 AM
Nice hack thanks alot.
DSdad
03-17-2007, 09:43 AM
I can't get it to run...copied the 2 files (custom_thread_fields.php and cpnav_custom_thread_fields.xml) to appropriate spots, opened ACP and selected Browse...selected product-custom_thread_forms.xml (off my hard drive correct since browsing?), and keep getting a database error. Any suggestions? Thanks
here's the actual error:
Invalid SQL:
CREATE TABLE `custom_thread_forms` (
`custom_formid` mediumint(10) unsigned NOT NULL auto_increment,
`forumid` mediumint(10) unsigned NOT NULL default '',
`title` varchar(130) NOT NULL default '',
PRIMARY KEY (`custom_formid`)
);;
MySQL Error : Invalid default value for 'forumid'
Error Number : 1067
Further to the last post, I'm also running vbPortal...not sure if that would affect the installation but I've tried it again and continue to get hte same database error message.
Thanks for any help!
anywares
03-17-2007, 01:25 PM
*clicks install
DSdad
03-17-2007, 01:36 PM
not sure what that means? there an attachment/link in your post?
Thanks
tutusinghsohi
03-18-2007, 12:22 AM
thanks a lot buddy........
installing it right now...
DSdad
03-18-2007, 12:28 AM
reposting earlier message b/c I don't have a clue what the last 2 messages have to do with my question (yes, it's true - I don't have a clue...):
I can't get it to run...copied the 2 files (custom_thread_fields.php and cpnav_custom_thread_fields.xml) to appropriate spots, opened ACP and selected Browse...selected product-custom_thread_forms.xml (off my hard drive correct since browsing?), and keep getting a database error. Any suggestions? Thanks
here's the actual error:
Invalid SQL:
CREATE TABLE `custom_thread_forms` (
`custom_formid` mediumint(10) unsigned NOT NULL auto_increment,
`forumid` mediumint(10) unsigned NOT NULL default '',
`title` varchar(130) NOT NULL default '',
PRIMARY KEY (`custom_formid`)
);;
MySQL Error : Invalid default value for 'forumid'
Error Number : 1067
Further to the last post, I'm also running vbPortal...not sure if that would affect the installation but I've tried it again and continue to get hte same database error message.
Thanks for any help!
harlita
03-18-2007, 09:39 AM
I don't know if the previous two folks were having the same issue as me, but after install I had no options until I edited in Vbull Options.
You have to then go to your VBulletin Options. Scroll all the way down in the list and it will be there. You can edit the options available at that time. It's working for me in 3.6.5
But that's just my experience, anyhow.
I dont need it, so i wont use it. But it a very good idea.
nitro
03-28-2007, 07:39 PM
The create table in the product file is bad: wants to be I would think.
`forumid` mediumint(10) unsigned NOT NULL default '0',
instead of:
`forumid` mediumint(10) unsigned NOT NULL default '',
maybe more a mysql 5 requirement so those on mysql 4 wont suffer the error DSdad (https://vborg.vbsupport.ru/showpost.php?p=1205487&postcount=96) suffered ?
EnIgMa1234
04-12-2007, 04:13 PM
this isnt showing the fields when i try to post a new thread
wolfe
04-17-2007, 12:03 PM
is it possible to make an option to choose from input to textarea ? thx in advance
also it does not show the boxes on edit.
wolfe
04-18-2007, 05:09 PM
getting this error in a forum where i dont want the custom fields to show up.
Please go back and fill out all required custom fields.
my members cant post.
harmor19
05-04-2007, 05:10 AM
I have fixed a few things.
When a field is required it won't give you an error even though you have typed in it.
The fieldset along with the field(s) will only appear on forums that are supposed to have them.
I properly clean the data from the custom fields.
lowfd
05-04-2007, 08:01 AM
Great mod.
Mine works.. however I do have a question. Although I've setup some fields to display in certain forums, and that is working well.. in other forums where I have set no fields at all, i still get the "custom fields" box which is blank. It shows up on all forums, simply putting fields into it where they exist.
is there anyway to make it disappear in the other forums that aren't using it?
harmor19
05-04-2007, 09:30 AM
They shouldn't show up on forums that have no fields.
I'll look into it more.
harmor19
05-04-2007, 09:34 AM
You don't need to do the template edit in the Install_Instructions.txt
harmor19
05-04-2007, 01:00 PM
I have added more features.
You can create custom fields for your thread using..
Single-Line Input Box
Radio Buttons
Drop Down Selection Box
Text Area
I have updated the screenshots to reflect the changes
EnIgMa1234
05-04-2007, 02:46 PM
im sorry but this isnt working for me. i installed everything right and added custom fields, but they arent showing
harmor19
05-04-2007, 03:02 PM
im sorry but this isnt working for me. i installed everything right and added custom fields, but they arent showing
Did you go to vBulletin Options --> Custom Thread Fields Settings and make sure both are set to 'Yes'?
tschai
05-04-2007, 04:00 PM
Just 'discovered' this mod and it's simply brilliant...
PS: I'm using it for new user to intoduce themselfs in a specific thread, by 'forcing' them to fill out some required fields...
Truely a very usefull mod and it works like a charm on 3.6.4
Fungsten
05-04-2007, 05:33 PM
I also swicthed it to a category and it still didn't show.
trgreen
05-05-2007, 08:28 PM
Can you search by the Custom Fields?
For example, I will have checkboxes or dropdowns for 'City" and I would like my users to be able to search for all posts in a particular city. Is that possible?
Great mod BTW, exactly what I need.
EnIgMa1234
05-05-2007, 08:32 PM
Did you go to vBulletin Options --> Custom Thread Fields Settings and make sure both are set to 'Yes'?
lol i feel so embarrased :p
trgreen
05-05-2007, 08:43 PM
Another question: can you have the values of some or all of the custom fields show up in "forumdisplay" so users might be able to more easily tell if they want to click?
Or better yet, how does it work on this site (vBulletin.org), when you're searching for mods and there's that row of dropdowns at the top and the "Show Mods" button?
Here's an example: https://vborg.vbsupport.ru/forumdisplay.php?f=194
thetradingforum
05-05-2007, 08:55 PM
Just installed this mod.
Working great so far.
But how can I change the size of the "Text Area"?
harmor19
05-05-2007, 08:59 PM
Another question: can you have the values of some or all of the custom fields show up in "forumdisplay" so users might be able to more easily tell if they want to click?
Or better yet, how does it work on this site (vBulletin.org), when you're searching for mods and there's that row of dropdowns at the top and the "Show Mods" button?
Here's an example: https://vborg.vbsupport.ru/forumdisplay.php?f=194
Can you search by the Custom Fields?
For example, I will have checkboxes or dropdowns for 'City" and I would like my users to be able to search for all posts in a particular city. Is that possible?
Great mod BTW, exactly what I need.
No. It's not possible. I add the data from the custom fields to the message before it goes to the database. I didn't want to create another table.
harmor19
05-05-2007, 09:03 PM
Just installed this mod.
Working great so far.
But how can I change the size of the "Text Area"?
You'll need to edit the plugin title "Custom Thread Forms [newthread_form_start]".
Here is the code for the text area
$custom_form .= "<tr><td nowrap='nowrap'><label for='".$form['title']."'> ".$form['title']."$required <br /><textarea cols='70' rows='12' name='custom_$form[custom_formid]' ></textarea></label></td></tr>";
thetradingforum
05-05-2007, 09:04 PM
Just installed this mod.
Working great so far.
But how can I change the size of the "Text Area"?
Never mind, found it, you have to edit the XML which you import into admincp.
thetradingforum
05-05-2007, 09:05 PM
Yeah found it literally seconds after posting!
thetradingforum
05-05-2007, 09:25 PM
I'm getting this error when posting in a section which doesn't require custom fields:
Please go back and fill out all required custom fields.
I've disabled the mod until I find a fix - Help! :o
tschai
05-13-2007, 03:54 PM
Me too...
Ik works good: too good.
It keeps saying I should fill out the required custom fields, also in the thread's which have none.
Please fix this asap, because othewise it's a very cool and usefull mod...
RedGTiVR6
06-07-2007, 07:44 PM
This looks like an ideal solution to the forms modification.
Currently, I'm using the Forms hack, but it's pretty intensive to set-up - especially if you're going to be using it on multiple areas of the forum.
This looks like it would be much easier!
Has anyone compared the two yet? Any results or comments?
soulweaver
06-09-2007, 04:33 PM
i keep getting the same error please post in all required fields any thoughts on how to fix it.
redskins_43
06-26-2007, 12:19 AM
This looks like an ideal solution to the forms modification.
Currently, I'm using the Forms hack, but it's pretty intensive to set-up - especially if you're going to be using it on multiple areas of the forum.
This looks like it would be much easier!
Has anyone compared the two yet? Any results or comments?
RedGTiVR6, did you get an answer to this comparison? I am curious on using this or the Forms hack...which does look very involved.
RedGTiVR6
06-26-2007, 12:47 AM
Nope - no answer that I know of....:(
wluther
06-28-2007, 03:54 PM
This is so Awesome!!! Thank you so very very much...
This works better than anything else I have tried (especially the Forms Hack mentioned above, which seemed to cause me more and more problems everytime I changed any of the fields...)
This mod is sooooooooo easy to use, works perfectly (I'm using v 3.6.7 PL1), I love how easy it is to make tons of fields and then assign each one to an individual forum, a group of forums, none of the forums, or even all of the forums.
It allowed me to, so easily, create a group of drop down select boxes in my "On Call" forum to allow those needed to create an updated and ever changing on call list of the people who will be on call each week...
AND...
It allowed me to create another group of drop down select boxes to allow those in need to post a super quick "Daily Events/Check List"...
OMG!! seriously... THANK YOU SO MUCH!!
redskins_43
06-28-2007, 06:19 PM
wluther,
can you provide your url ....i would like to see how you implemented it.
thanks!
RedGTiVR6
06-29-2007, 04:11 AM
agreed - I'd love to see this actually implemented.
PM is fine if you don't wish to post it here.
benjaminbih
06-29-2007, 09:06 AM
i installed the great mod and it works fine, but how can i change on editing thread the custom thred filed. I see no option for this on editing.
RedGTiVR6
06-29-2007, 03:10 PM
Did you go to vBulletin Options --> Custom Thread Fields Settings and make sure both are set to 'Yes'?
I was running into the same issue. This is not mentioned anywhere in the instructions. Perhaps it should be?
RedGTiVR6
06-29-2007, 03:19 PM
THat's because u prolly have html-code set to off ;)
Go to ur plugins
edit: Custom Thread Forms [newthread_post_start]
In the big text-box with the php-code, scroll down to the bottom and find:
replace it with:
So, the <br> tages just become an enter ;)
(make sure they are within "")
You prolly might have the same problem with the custom tags and answers..
Above that area u just fixed, find:
Change it into this:
if(in_array($foruminfo['forumid'], $forumids))
{
$custom_message .= "".$forms['title'].": ".$value."
";
If u want colored titles, do something like:
$custom_message .= "".$forms['title'].": ".$value."
";
Notice that I removed the "" from "[/B]NAVY"]
(somehow placing a \ in front of them isn't working)
[COLOR="Green"]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
I would like to see an option in type of field, like I want to have a textarea sometimes.
And also the ability for an url-field.
So u get:
._________ . .___________
|_link-field_| |_name-field_|
for example ;)
I'm running into the same issue that prompted this fix.
Unfortunately, it appears that the plug-in has changed since this fix was posted.
Here is the current "Custom Thread Forms [newthread_post_start]" that I have installed.
if($vbulletin->options['custom_thread_fields_enabled'])
{
$getcustomthreadfields = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "custom_thread_forms");
while($forms = $db->fetch_array($getcustomthreadfields))
{
$custom_formid = "custom_$forms[custom_formid]";
$value = $vbulletin->input->clean_gpc('p', $custom_formid, TYPE_STR);
if($forms['required'] == 1 && empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
if($forms['fieldtype'] == 1)
$value = nl2br($value);
$forumids = explode(",", $forms['forumid']);
if(!empty($value))
{
if(in_array($foruminfo['forumid'], $forumids) OR $forms['forumid'] == "-1" )
{
$custom_message .= "".$forms['title'].": $value<br /><br />";
$break = "<br /><br />";
}
}
}
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "$break $custom_message";
}
Anyone have any ideas? I don't really want to allow users to use HTML code on the forums....
Stefano Virgill
07-05-2007, 01:21 AM
Hi guys,
cause my customized fields are always the same 3, I'm wondering if it's possible to set a 3 options drop down menu instead of a text field.
Thanks in advance
Steve
soletrader
07-15-2007, 03:00 AM
getting this error in a forum where i dont want the custom fields to show up.
my members cant post.
BUMP!
Nice idea, but there will be displayed the html code like <br/><br/>.
RedGTiVR6
07-15-2007, 02:37 PM
No there's not?
Gratisites
07-15-2007, 08:30 PM
Greets, is there a way for the "Custom Field" fieldset etc.. to disappear if there's no custom fields for the forum?
I tried something like...
<if condition="$forum[forumid] == 30">
<br />
<fieldset>
<legend>Custom Fields</legend>
<table cellpadding="1" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
$custom_form
</table>
</fieldset>
</if>
But it didn't work... any ideas?
captainron19
07-20-2007, 10:54 AM
Ran into the following problem with my custom fields when installed.
First I got it set up and working just fine. The only original problem I ran into is when I copied and pasted the text
<br />
<fieldset>
<legend>Custom Fields</legend>
<table cellpadding="1" cellspacing="$stylevar[cellspacing]" border="0" width="100%">
$custom_form
</table>
</fieldset>
after the <!-- / message area -->
When I did this the fields I set up all showed up twice when creating a new thread. I deleted the code above form the "newthread template" and it worked fine (showing the fields only once).
This week I had to switch servers for my board located at www.newjerseyboards.com and after the database transfer was complete, no members were able to post a new message. They were told they had to complete all custom fields first. I suspected it was a problem with the "Custom Fields Thread" so when I went ahead and disabled it and the problem was gone and pasting was again allowed.
So, I went into Manage products, I uninstalled the Cutom Fields Thread Product and reinstalled it but the problem re-ocurred. It only happens with a new thread and not with a reply.
For the time being I have the Custom Fields Thread option turned off until I can figure out what is going wrong.
anyone?
nnjj.net
08-08-2007, 02:48 PM
hi
but he still can post the thread as well right?
and does it work on 3.6.8?
also I need it to work in some sections only not all forum
hobbystoresearc
08-08-2007, 07:37 PM
Seems like a great Mod - something I can actually use....maybe someone can help me with a few changes I would need...
1) Anyway of making one of the profile fields the title of the post so I can remove the 'Title field'
2) Any way of putting the custom fields above the text area for the post? I saw a previous post about this but it appears the mod might have changed because my plugin code doesnt match what the post is saying to change.
3) How can I make the post look like this:
Custom Field Question
Custom Field Answer
Instead of
Custom Field Question: Custom Field Answer
I want to add the break in there so the answer goes under the question
Techno05
08-15-2007, 06:07 AM
I love this feature but I can't get it above the vbeditor.. its below and I want it above.. can you help.
nnjj.net
08-15-2007, 07:34 AM
hellllllllo any one?
but he still can post the thread as well right?
and does it work on 3.6.8?
also I need it to work in some sections only not all forum
rafa3l
08-17-2007, 07:47 PM
I'm on 3.6.8 and the Custom Fields area is empty
// ------------------------------------------------
Sorry, now all work fine. Maybe is better make enable this by default in the vBulletin Options -> Custom Thread Fields Settings
rafa3l
08-17-2007, 09:49 PM
Hello all,
This is mod is wonderful, but I would like put a custom field in the title like a prefix, for example:
[customfield] title of the thread
And the others custom fields to work inside the saved post. Maybe at the beginning and not at the end.
If this is possible I'll happy :)
// ------------------------------------------------
I found the solution making a few harcode changes in the plugin Custom Thread Forms [newthread_post_start]
I add this line:
$vbulletin->GPC['subject'] = "[$prefix] " . $vbulletin->GPC['subject'];
above this:
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "$break $custom_message";
and this:
if($forms['title'] == "custom field title")
$prefix = $value;
below this:
$value = nl2br($value);
Regards
rafa3l
08-21-2007, 12:24 PM
Nice idea, but there will be displayed the html code like <br/><br/>.
This is because your normal user have by default html off.
But I create a custom <br /> tag in the BB code. For example:
example = <br>example</br>
And then in the plugin:
$custom_message .= "".$forms['title'].": $value"."";
$break = "---------------------------";
Regards
nnjj.net
08-21-2007, 01:11 PM
any update?
giorgiotave
08-24-2007, 07:53 AM
This hack is Great.
I want use together with this (https://vborg.vbsupport.ru/showpost.php?p=1099679&postcount=43). But, if i do, the first hack disappears.
The first hack, when i make many fields, don't work. User can't post.
I Think the problem is when create a non imput box.
Anyone can hel me?
giorgiotave
08-24-2007, 08:15 AM
Please go back and fill out all required custom fields.
I put only imput box in one forum :(
Wolf42
08-28-2007, 06:13 AM
Thx! After some problems (and reading the whole thread) I got your hack to work. :D
nnjj.net
08-28-2007, 02:04 PM
any update for 3.6.8?
AtaPulja
08-29-2007, 02:46 PM
Update?
jluerken
09-05-2007, 11:47 AM
This is a great hack and I would like to use it.
I installed it on my vb 3.6.8 board but it is not working. the custom fields area is always empty.
Is there a fix/update available?
XxBuLLeTz
09-05-2007, 05:01 PM
With this hack, can you delete the reply box and just have the custom fields? So they just fill out the custom fields and hit submit.
XxBuLLeTz
09-09-2007, 05:32 PM
With this hack, can you delete the reply box and just have the custom fields? So they just fill out the custom fields and hit submit.
any ideas?
grazianno
09-13-2007, 05:20 PM
thanks for this plugin :)
Mad Woman
09-22-2007, 05:44 PM
This would be LOVELY if it displayed the answer to the extra field in the forum display. I'm still looking for something that would do that. :(
Sorry. I mean it's STILL lovely. I just need it to do a little bit extra.;)
wolfe
09-28-2007, 01:03 PM
is it possible to completely remove the message box in the forums im using this mod in so i can just have custom fields and also is it possible to make an image box that automatically parses it with the img tags
also would it be possible to display the same fields when i post is edited instead of just the text in the message box like the new boxes ? so i can completely remove the message box from the relevant forums
wolfe
09-30-2007, 11:16 PM
bump
reddyink
10-01-2007, 04:13 AM
Custom fields section is empty with just heading Custom fields in new thread page. I added new feilds through Add new fields form and also when I query through Execute Sql Query window. Records are showing up. but not showing up in form I tried forum ID -1 and also empty. Fields are not showing up. I also enabled settings in Vbbulletin options.
wolfe
10-01-2007, 10:06 AM
m8 did you edit the templates because sometimes auto edit does not work.
applyimage
10-02-2007, 12:21 PM
Hi, where do we find forum id's? :)
wolfe
10-02-2007, 02:22 PM
m8 example http://www.url.com/forumdisplay.php?f=71 the number after the f is the forum id.
toucan42
10-10-2007, 05:12 PM
Anyone know if this is working on 3.6.8?
Fungsten
10-11-2007, 06:17 PM
Anyone know if this is working on 3.6.8?
Yes it does.
indie
10-12-2007, 07:53 PM
Do the results become a part of the actual post or are they stored in a separate table that is part of this mod and displayed in the post? I ask because if this mod is removed it is important that the results are not removed from the post. Thanks
osousous
10-12-2007, 10:46 PM
When I try and import the product I get an error: "XML Error: No error at Line 0"
I have followed the instructions exactly and am running 3.6.8.
Any idea why this might be?
osousous
10-13-2007, 07:01 PM
Anybody?
osousous
10-14-2007, 10:26 PM
Ok change of tactic - how much would it cost me to get this working on my site?:rolleyes:
wolfe
10-14-2007, 11:21 PM
m8 attach your xml file will take a look
osousous
10-15-2007, 04:54 PM
m8 attach your xml file will take a look
I haven't edited it. It is the same one you download for the mod.
TJFweb
11-09-2007, 06:26 AM
Is it possible to have fields insert themselves into the title of the thread? For example, I want users to have to specify a category from a drop-down box. Can it insert this into the title of the thread, i.e. so it appears on the forumdisplay as:
[CATEGORY] Post title
???
mjname
11-27-2007, 08:20 AM
I love this hack... but so far I can only get custom feilds to show up in the new thread I can't get the actual feilds to show up. I've been through the directions 3 times, I'm running 3.6.8 and I've edited the newthread template.
any other ideas. I've also read this entire post history all 12 pages. WOW
I think this mod is so desireable it needs it's own developement forum.
Anyway if anyone can help please do so
au.2dogsdiving.com
mjname
11-27-2007, 08:37 AM
neer mind I deleted the custom feilds, re-installed the product and it now works, actually it works too well I have two sets of the same feild. LOL I need to go and remove my edits to the newthreds template. Thanks again!
mjname
11-27-2007, 09:44 AM
Me Again
Quick question is there anyway to get radio button to be multiple select? It seems like this should be an easy customization? or to have to radio options one multiple on single select.
RedGTiVR6
11-27-2007, 07:51 PM
One bug that I've just noticed.
If you have a long question in the thread field manager, it doesn't warp and hold width according to the forum width. It will stretch outside of the boundaries offered by the forum.
Is there a way to fix this eles where bychance?
RedGTiVR6
11-27-2007, 07:53 PM
Is it possible to have fields insert themselves into the title of the thread? For example, I want users to have to specify a category from a drop-down box. Can it insert this into the title of the thread, i.e. so it appears on the forumdisplay as:
[CATEGORY] Post title
???
I'd like to know this as well...for instance, I'm trying to use this for bug reporting. i'd like to have two fields auto populate the thread title: Issue Description and Version...posted like this:
Issue Description - Version
I can do this with the form hack I'm using, but if I can do this with this hack it might just replace that hack.
Also, as a nice added feature, it would be cool if you could display a larger text box for longer, more detailed fields. Though I realize this might be outside of the scope of this mod, it's a thought I thought I would throw out there.
C.Birch
12-01-2007, 09:57 AM
hi does anyone know how to edit this so the info shows at $template_hook[postbit_userinfo_right_after_posts] and not with the post itself?
Razasharp
12-04-2007, 03:02 PM
Hi, does this hack create new fields in the database or does it just create form inputs where the data is added to the post?
I need a hack where when you click edit the actual fields can be edited seperately - can this hack do that?
Cheers.
ZomgStuff
12-04-2007, 09:33 PM
I found a problem w/ 3.6.8 pl2.
I have selected it to only show in one forum and I have it as a required field, now any other forum that you try to create a thread in it says go back and fill out all custom fields, so the only place you can make a thread is in that one forum, if required option is on.
please fix this!
RedGTiVR6
12-04-2007, 09:47 PM
I had the same problem as ZomgStuff.
thompson
12-05-2007, 11:29 AM
nice mod. thanks.
Scape-Server
12-05-2007, 05:15 PM
Thanks for this. Nice idea ;) Installing now!
UberMensch
12-12-2007, 11:54 AM
I have the same problem as ZomgStuff and RedGTiVR6.
Please fix this, it's spoilt an otherwise very useful mod!
UberMensch
12-12-2007, 02:49 PM
I've had a crack at fixing our problem, and the attached product appears to work.
The changes were:
In Plugin:
newthread_post_start
Replace:
$forumids = explode(",", $forms['forumid']);
With: (Or delete it)
// $forumids = explode(",", $forms['forumid']);
Replace:
if($forms['required'] == 1 && empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
With:
$forumids = explode(",", $forms['forumid']);
if($forms['required'] == 1 && empty($value) && in_array($foruminfo['forumid'], $forumids))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
Save Plugin:
newthread_post_start
It works for me (vB3.6.8 PL2), could someone confirm with their board also?
mjname
12-14-2007, 12:27 AM
I'm using this to collect a great deal of information for an online project. I need to know... or rather does anyone know if these fields are sorted and displayed alphabetical, numerical, or via created?
jgommel
12-16-2007, 07:11 AM
I've had a crack at fixing our problem, and the attached product appears to work.
The changes were:
In Plugin:
newthread_post_start
Replace:
$forumids = explode(",", $forms['forumid']);
With: (Or delete it)
// $forumids = explode(",", $forms['forumid']);
Replace:
if($forms['required'] == 1 && empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
With:
$forumids = explode(",", $forms['forumid']);
if($forms['required'] == 1 && empty($value) && in_array($foruminfo['forumid'], $forumids))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
Save Plugin:
newthread_post_start
It works for me (vB3.6.8 PL2), could someone confirm with their board also?
So far, your updated product xml appears to be working just fine. Thanks.
chrisbeau
12-29-2007, 03:26 PM
Working for me but, the fields appear twice under the Message area.
https://vborg.vbsupport.ru/
Also is there a way to remove the message area and only use these fields when Posting with this section.
https://vborg.vbsupport.ru/
Audentio
12-29-2007, 11:10 PM
Id donate to whoever can come up with a working 3.7 version. Found a few errors when I installed it, most of them mentioned already.
gbox master
01-18-2008, 11:04 PM
is it possible to completely remove the message box in the forums im using this mod in so i can just have custom fields and also is it possible to make an image box that automatically parses it with the img tags
also would it be possible to display the same fields when i post is edited instead of just the text in the message box like the new boxes ? so i can completely remove the message box from the relevant forums
i second that
if you guys could make that then it would be a winner i think
no message box just the custom fields :up:
gbox master
01-18-2008, 11:26 PM
i try'ed to install this hack
but i get a database error when i want to put something in
Database error in vBulletin 3.6.8:
Invalid SQL:
INSERT INTO custom_thread_forms
(
forumid,
title,
required,
prefixed,
opentag,
closetag,
textboxsize,
textboxmax,
textboxdesc
) VALUES (
'4',
'',
'1',
'1',
'',
'',
'33',
'55',
'test card'
);
MySQL Error : Unknown column 'prefixed' in 'field list'
Error Number : 1054
Date : Saturday, January 19th 2008 @ 02:25:08 AM
can some one help me out with this ?
or does some one knows why and what this error means
DrKNickel
01-19-2008, 12:02 PM
Working 3.7 Version would be great :)
StakingAces
01-19-2008, 04:39 PM
My users have <br/>/<br/> posted next to all of the fields. Anyway I can remove this? Here is the code I have, please tell me what to edit. Thank you.
if($vbulletin->options['custom_thread_fields_enabled'])
{
$getcustomthreadfields = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "custom_thread_forms");
while($forms = $db->fetch_array($getcustomthreadfields))
{
$custom_formid = "custom_$forms[custom_formid]";
$value = $vbulletin->input->clean_gpc('p', $custom_formid, TYPE_STR);
if($forms['required'] == 1 && empty($value))
{
eval(standard_error(fetch_error('fill_in_custom_th read_field')));
}
if($forms['fieldtype'] == 1)
$value = nl2br($value);
$forumids = explode(",", $forms['forumid']);
if(!empty($value))
{
if(in_array($foruminfo['forumid'], $forumids) OR $forms['forumid'] == "-1" )
{
$custom_message .= "".$forms['title'].": $value<br /><br />";
$break = "<br /><br />";
}
}
}
$vbulletin->GPC['message'] = $vbulletin->GPC['message'] . "$break $custom_message";
}
StakingAces
01-20-2008, 12:26 AM
Anyone help with this?
StakingAces
01-21-2008, 06:15 AM
Please?
SaltyOnionBalls
01-24-2008, 02:27 AM
What do I edit to make it so the custom message shows on top of the regular message?
forumrunt
03-09-2008, 04:07 PM
Can I move the filed to the message box same as bleow image
http://img147.imageshack.us/img147/967/newthreadrf1.png
This is exactly what I need!
3Motions
03-10-2008, 07:14 PM
So I'm guessing this mod is no longer supported?
raucheninhh
03-13-2008, 08:24 AM
Hi,
is it possible that after creating a new thread the information given in the custom fields is put on top of what the user has written in the message box?
Thanks
mariocaz
03-22-2008, 09:12 PM
Installed and working with the fix #187
Thank you a lot!
mariocaz
03-23-2008, 07:45 PM
Hi I have a little problem because this fix is not working:
$custom_message .= "".$forms['title']."\r\n$value\r\n\r\n";
$break = "\r\n\r\n";
And with this the <br /> is showing it in the posts. :(
$custom_message .= "".$forms['title'].": $value<br /><br />";
$break = "<br /><br />";
Help!!!!!
mariocaz
03-24-2008, 12:09 AM
Here is the fix for the problem ok.
$custom_message .= "". $forms['title'] ."<br/> $value <br /><br />";
$break = "<br />";
And now to add Red Color in the $value What I have to do ???
Thank you a lot!!!
mariocaz
03-27-2008, 04:26 AM
Hi guys,
Finally here is the fix of the spaces and the red color in the answers of the custom fields.
$custom_message .= "<b>". $forms['title'] ."</b><br/> <font color=\"Red\">".$value."</font><br /><br />";
$break = "<br />";
Really thank you so much to minstrel of theadminzone.com for his awesome help in this fix.
http://www.theadminzone.com/forums/showthread.php?t=47603
So I hope this helps to someone. :cool:
nhatrang
04-02-2008, 06:05 AM
Would be nice if this could act like the Description Thread Mod: https://vborg.vbsupport.ru/showthread.php?t=131239
I love the idea how we can add questions per forum, etc, however it does not create a column in the DB so you can call it out seperately like the MOD above.
Goodman_2020
04-05-2008, 01:48 AM
Hi, i got a little problem...every field i create appears a second time below the first one....
and is there a way to make this hack does what he does (fields) in posts too?
Mrajp
04-05-2008, 12:55 PM
Can this be ported over to vB 3.7?
Noctavia
04-08-2008, 08:35 AM
Looking at installing this on my forum - however concerned about the amount of errors and issues that seem to be going unanswered. Have any of the problems found solutions yet? :confused:
Mrajp
04-10-2008, 06:12 PM
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.
Customer: --No Customer--
Issue Type: Configuration
Problem: gregre<br />
gre<br />
<br />
gregre
Resolution: gregre<br />
gre<br />
<br />
gre
Anybody know of a way to eliminate those "<br />" Tags?
Ammari
04-18-2008, 02:37 AM
what if i want it to include all forums, but exclude one?
MPDesignZ
04-25-2008, 12:16 PM
Working for me but, the fields appear twice under the Message area.
http://img520.imageshack.us/img520/7168/screenyma8.jpg
Also is there a way to remove the message area and only use these fields when Posting with this section.
http://img520.imageshack.us/img520/6642/89888354lx9.jpg
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:
Custom thread items
--------------------------------------
Custom thread items
----------------------------------
message area.
-------------------------------
submit button
when I go to submit a thread, but when I look at the thread after submission Its the opposite.
message area
---------------------------------
custom thread area
----------------------------------
custom thread area
any ideas on how to solve this?
Does work with 3.6.7 PL1 and Aqua-Soft 3 - Aqua template :(
Allan
05-11-2008, 02:38 PM
French language ;)
Translator: Allan.
mirrormill
05-12-2008, 06:17 PM
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?
cheers
mirrormill
05-14-2008, 10:10 AM
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.
Customer: --No Customer--
Issue Type: Configuration
Problem: gregre<br />
gre<br />
<br />
gregre
Resolution: gregre<br />
gre<br />
<br />
gre
Anybody know of a way to eliminate those "<br />" Tags?
This worked for me as a solution to this issue:
using the plugin manager edit newthread_post_start
comment out the line:
$value = nl2br($value);
so it becomes
// $value = nl2br($value);
as this is the line inserting the <br />s
worked for mee...
Mrajp
05-14-2008, 11:07 AM
This worked for me as a solution to this issue:
using the plugin manager edit newthread_post_start
comment out the line:
$value = nl2br($value);
so it becomes
// $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.
Thanks for all of the help though!
NCDiesel
05-16-2008, 12:30 AM
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)
NCDiesel
05-16-2008, 12:52 AM
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!
PS: Am running on 3.7.0
viper007
05-18-2008, 05:19 AM
its not working
SpeedyHire
05-20-2008, 08:07 PM
got it working fine here on 3.7.0, but wanted it to show also on the forumdisplay as my old 1 use to:)
still nice work will play about with it some more
mariocaz
05-21-2008, 12:08 AM
working like a charm in 3.7 gold
oz_girl
05-27-2008, 02:26 AM
Will have to try this one, fingers crossed it works for me!
If someone could update this for vB 3.7 I would be absolutely delighted :)
callumbush
06-08-2008, 04:08 PM
Should I use this mod, or this mod?
https://vborg.vbsupport.ru/showthread.php?t=108888&page=40
Cheers :)
mauriceo
06-09-2008, 05:40 PM
This is a plugin wich i'm exacly searching for however it could for me even better if the normal "message" feature would be removed so only the "tittle" and the "Custom Fields" would be visible and writable, is this posible by editing the plugin or is this just not possible?
amlalommah
06-09-2008, 07:06 PM
thanks for u
captainron19
06-14-2008, 06:08 PM
I just installed this in V 3.7.1 and I noticed that in admincp - custom thread settings - there are no choices for this product other than to enable it. I found no settings for designating whcih forums to have threads in and to set the custom fields up.
I am assuming this is not yet compatible with 3.7.1 true?
pcoskat
06-17-2008, 12:43 PM
I just installed this in V 3.7.1 and I noticed that in admincp - custom thread settings - there are no choices for this product other than to enable it. I found no settings for designating whcih forums to have threads in and to set the custom fields up.
I am assuming this is not yet compatible with 3.7.1 true?
Any answers to this?
captainron19
06-17-2008, 01:09 PM
Any answers to this?
Havent received any but I did find another Hack similiar to this that works in V 3.7.1 It is
https://vborg.vbsupport.ru/showthread.php?t=108888
GeoffreyXXI
06-21-2008, 09:02 AM
Any answers to this?
you set in which forum the custom field will appear when you add a new custom field...you should see it there
OcR Envy
06-24-2008, 01:26 PM
Does not work with 3.7.2
indie
07-18-2008, 07:34 AM
Does not work with 3.7.2
Ditto. "Thread Fields" does not show up in admincp left nav.
Ditto. "Thread Fields" does not show up in admincp left nav.
Show under Forums&Moderators
Cyburbia
08-26-2008, 07:38 PM
Tried installing it to the letter in vB 3.7. It worked, but there was one big problem: in subforums where custom fields were not assigned, users got error messages telling them to complete all custom fields, even though there were none to be entered.
kud0gfx
09-02-2008, 01:53 AM
i will really use it if it was compatible with 3.7.X
mariocaz
04-19-2009, 05:36 AM
this is wrking like a charm in my 3.7.6 just look for some fixes in the other pages here.
sleepyboy2004
04-20-2009, 06:20 AM
Is this one out for 3.8 yet??? :(
ChurchMedia
05-25-2009, 05:08 AM
Is this one out for 3.8 yet???
Same question -- or is there a different hack that works well with 3.8?
slehmann
05-28-2009, 11:07 PM
just installed and I'm having a problem. I set some custom fields for a forum but if I make them required custom fields then I get the error message in every forum to go back and fill in the custom fields. Is there a fix for this.
slehmann
06-02-2009, 08:14 PM
just installed and I'm having a problem. I set some custom fields for a forum but if I make them required custom fields then I get the error message in every forum to go back and fill in the custom fields. Is there a fix for this.
any help with this.
It also doesn't work unless users are using the enhanced editor, anyway to get it to work with the standard?
is there a similar add-on anywhere else that works properly.
bnimbhal
11-28-2009, 10:43 AM
Hi,
I am using 3.8.4, and I really need it, can someone please help me.
Million thanks in advance.
krustyx
09-09-2010, 06:49 PM
Please update for VB4!! :(
ruchirablog
10-10-2010, 01:04 PM
I need this for VB4
bnimbhal
01-11-2011, 09:40 AM
Any update for VB 4*
MusixP
01-27-2011, 12:46 PM
vb4 pls ^^
Silviu
04-16-2011, 09:15 AM
Hello,
We update this for VB4.
Attach.
jluerken
04-17-2011, 08:19 AM
Great, if you now manage that the Thread Field Titles are phrased so that we can use it on multilanguage boards it's perfect ^^
canadiancray
06-20-2011, 05:12 PM
Doesn't work for me with VB 4.1.4
I get this error.
vBulletin Message
Sorry, no XML was passed into this function and the $path variable empty
LT Mote
06-28-2011, 05:25 AM
This may have already been answered, but I have installed this addon with out issue... My issue is, is that I setup fields for a specific forum (29) and setup the questions to be only on 29... But when I attempt to create a thread on any other forum, it says that I haven't filled out all the required custom fields, but when I scroll down on the thread creation for a forum OUTSIDE of 29, there are no custom fields present (as there should be)
My issue is, how come its asking me to fill out 'required' fields for a forum that doesn't have any custom fields attached to it?
(Note: I am using vB 3.6.x & downloaded the 3.6.x files)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.