PDA

View Full Version : New Posting Features - Custom Thread Fields


Pages : [1] 2

harmor19
08 Oct 2006, 18:16
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 (http://www.vbulletin.org/forum/vborg_miscactions.php?do=nominatehotm&t=128587)

harmor19
08 Oct 2006, 18:19
Reserved

UltraVR
08 Oct 2006, 19:51
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
08 Oct 2006, 20:11
It only adds two to "newthread.php".

harmor19
08 Oct 2006, 20:27
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
08 Oct 2006, 20:29
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
08 Oct 2006, 20:45
I dont see any Thread Fields Manager. Where is it located?

harmor19
08 Oct 2006, 20:48
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
08 Oct 2006, 21:10
I have updated this hack to allow fields to be required or not.

If you are upgrading overwrite every file.

soletrader
08 Oct 2006, 22:09
Doesnt exist in 3.6.0.

harmor19
08 Oct 2006, 22:28
Did you upload "cpnav_custom_thread_fields.xml" which is located in "includes/xml/" to "your_site/your_forums/includes/xml/"?

hotwheels
09 Oct 2006, 00:18
very nice work......

Comalies
09 Oct 2006, 01:37
Doesn't work on 3.6.0.

harmor19
09 Oct 2006, 01:48
Doesn't work on 3.6.0.
What part doesn't work?

Comalies
09 Oct 2006, 02:01
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
09 Oct 2006, 03:01
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
09 Oct 2006, 03:52
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
09 Oct 2006, 05:10
How does this differ from the 3.5 (reported to work in 3.6) Extra Threadfields Lite (http://www.vbulletin.org/forum/showthread.php?t=108888)hack?

harmor19
09 Oct 2006, 05:48
How does this differ from the 3.5 (reported to work in 3.6) Extra Threadfields Lite (http://www.vbulletin.org/forum/showthread.php?t=108888)hack?
I haven't used that hack so I don't know.

novalogix
09 Oct 2006, 09:23
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
09 Oct 2006, 10:40
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
09 Oct 2006, 11:22
Wow this is great. Thansk! :D

soletrader
09 Oct 2006, 11:47
yea the thread fields manager wont show up in 3.6

paul41598
09 Oct 2006, 12:26
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
09 Oct 2006, 22:11
yea the thread fields manager wont show up in 3.6
Have you tried the attachment on this post (http://www.vbulletin.org/forum/showpost.php?p=1092798&postcount=17)?

novalogix
10 Oct 2006, 03:46
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 Oct 2006, 04:26
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 Oct 2006, 05:06
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 Oct 2006, 08:26
I'd still like to see like radio buttons, checkboxes
This hack could easly be a "hack of the month"!

harmor19
10 Oct 2006, 10:05
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
11 Oct 2006, 18:04
I would prefer "vHosting" get HotM because I put so much time into it.

I voted for it since you prefer it. ;)

paul41598
11 Oct 2006, 19:33
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
12 Oct 2006, 04:00
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
12 Oct 2006, 04:05
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
12 Oct 2006, 06:33
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
12 Oct 2006, 14:48
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
12 Oct 2006, 15:29
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
13 Oct 2006, 01:48
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
13 Oct 2006, 03:46
Harmor,

Thanks for the tremendous efforts. You have saved me from entering 40 over custom fields.

This is indeed a good mod!

SeQual
15 Oct 2006, 16:03
Is there a way to have a textarea instead of input box?

trilljester
16 Oct 2006, 19:28
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
18 Oct 2006, 18:38
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
18 Oct 2006, 19:39
Ok, last update. Sorry. Added the ability to put a display length, and max length for the text boxes. Also a description :classic:

harmor19
19 Oct 2006, 09:10
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
19 Oct 2006, 22:54
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
20 Oct 2006, 00:20
It's being coded in the next version.

Gripemaster
20 Oct 2006, 00:36
This will be a great addition to my "Flea Market" section on my forum. Excellent work! Thank you!

*Clicks Installed* ;)

SeQual
20 Oct 2006, 07:56
It's being coded in the next version.


Cool thanks, will be a great addition :up:

Greek76
20 Oct 2006, 22:44
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
21 Oct 2006, 04:05
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
23 Oct 2006, 17:24
Hey, it is a bug! I have the same problem. Harmor, pls help!:p

Harmor,

Is there a fix coming for this?

paul41598
24 Oct 2006, 01:36
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
24 Oct 2006, 02:25
It would be great if it could support profile like options like drop down menu, bigger text area etc.

trilljester
24 Oct 2006, 17:54
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
24 Oct 2006, 21:01
textarea would be awesome any plans when the next version will be released ?

category
25 Oct 2006, 22:36
it uploads give me a table error

Greek76
26 Oct 2006, 23:56
So harmor how abou it have any ideas on how to stop that from happening?

murekhalir
28 Oct 2006, 00:10
I'm getting it too, so I'm uninstalling this unless theres a solution.. o.o

Greek76
28 Oct 2006, 14:15
Yes I uninstalled it as well. Its a good hack but unfortunately no answers to these problems that we are having..

novalogix
01 Nov 2006, 07:35
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
01 Nov 2006, 22:08
he gave up there is a similar mod for 3.5.2 that works for 3.6.0

paul41598
02 Nov 2006, 00:27
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_thread_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_thread_field')));
}
}
}


Don't forget to check out my addons for this hack here (http://www.vbulletin.org/forum/showpost.php?p=1099628&postcount=42) and here (http://www.vbulletin.org/forum/showpost.php?p=1099679&postcount=43) !

Greek76
02 Nov 2006, 17:53
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
02 Nov 2006, 19:10
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
02 Nov 2006, 20:10
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
03 Nov 2006, 14:15
I am getting the following code when posting a new thread

<br /><br />
----------------------------------------<br />

----------------------------------------<br />


Is there a fix for this?

LaCN
03 Nov 2006, 21:16
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
04 Nov 2006, 03:57
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

jaks
04 Nov 2006, 09:12
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. :)

LaCN
04 Nov 2006, 16:48
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
05 Nov 2006, 03:05
please excuse me but where do I go to edit ???

Go to ur plugins
edit: Custom Thread Forms [newthread_post_start]

ry215
05 Nov 2006, 06:53
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
05 Nov 2006, 11:10
What was the error?

ry215
05 Nov 2006, 18:31
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

LaCN
05 Nov 2006, 18:55
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
06 Nov 2006, 06:22
Thanks LaCN it work like charm

taydu
08 Nov 2006, 09:37
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_thread_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'];

jaks
08 Nov 2006, 11:25
Guess my question was missed?
http://www.vbulletin.org/forum/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
09 Nov 2006, 21:54
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
13 Nov 2006, 15:26
`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
13 Nov 2006, 15:28
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
27 Nov 2006, 05:56
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 (http://www.vbulletin.org/forum/showthread.php?t=128587)
----------------------------------------

?!

djneural
27 Nov 2006, 10:37
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
03 Dec 2006, 14:02
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
03 Dec 2006, 17:07
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
03 Dec 2006, 19:34
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
03 Dec 2006, 19:39
Hi!
Anyone can help me with my problem (a few post ago)??
Please, i need your help!
Thanks!!!!!! a lot!!!!

marcoasura
14 Dec 2006, 12:57
Can I move the filed to the message box same as bleow image

https://www.vbulletin.org/forum/

mauro1947
19 Dec 2006, 16:08
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
21 Dec 2006, 15:59
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 Jan 2007, 20:19
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
12 Jan 2007, 10:15
https://www.vbulletin.org/forum/external/2010/06/10.gif
Right.

killugood9000
14 Jan 2007, 21:40
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
16 Jan 2007, 17:00
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
25 Feb 2007, 08:56
Nice hack thanks alot.

DSdad
17 Mar 2007, 10:43
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
17 Mar 2007, 14:25
*clicks install

DSdad
17 Mar 2007, 14:36
not sure what that means? there an attachment/link in your post?

Thanks

tutusinghsohi
18 Mar 2007, 01:22
thanks a lot buddy........
installing it right now...

DSdad
18 Mar 2007, 01:28
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
18 Mar 2007, 10:39
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.

Luky
18 Mar 2007, 10:57
I dont need it, so i wont use it. But it a very good idea.

nitro
28 Mar 2007, 20:39
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 (http://www.vbulletin.org/forum/showpost.php?p=1205487&postcount=96) suffered ?

EnIgMa1234
12 Apr 2007, 17:13
this isnt showing the fields when i try to post a new thread

wolfe
17 Apr 2007, 13:03
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
18 Apr 2007, 18:09
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
04 May 2007, 06:10
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
04 May 2007, 09:01
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
04 May 2007, 10:30
They shouldn't show up on forums that have no fields.
I'll look into it more.

harmor19
04 May 2007, 10:34
You don't need to do the template edit in the Install_Instructions.txt

harmor19
04 May 2007, 14:00
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
04 May 2007, 15:46
im sorry but this isnt working for me. i installed everything right and added custom fields, but they arent showing

harmor19
04 May 2007, 16:02
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
04 May 2007, 17:00
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
04 May 2007, 18:33
I also swicthed it to a category and it still didn't show.

trgreen
05 May 2007, 21:28
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 May 2007, 21:32
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 May 2007, 21:43
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: http://www.vbulletin.org/forum/forumdisplay.php?f=194

thetradingforum
05 May 2007, 21:55
Just installed this mod.
Working great so far.

But how can I change the size of the "Text Area"?

harmor19
05 May 2007, 21:59
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: http://www.vbulletin.org/forum/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 May 2007, 22:03
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 May 2007, 22:04
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 May 2007, 22:05
Yeah found it literally seconds after posting!

thetradingforum
05 May 2007, 22:25
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
13 May 2007, 16:54
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
07 Jun 2007, 20:44
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
09 Jun 2007, 17:33
i keep getting the same error please post in all required fields any thoughts on how to fix it.

redskins_43
26 Jun 2007, 01:19
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
26 Jun 2007, 01:47
Nope - no answer that I know of....:(

wluther
28 Jun 2007, 16:54
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
28 Jun 2007, 19:19
wluther,

can you provide your url ....i would like to see how you implemented it.

thanks!

RedGTiVR6
29 Jun 2007, 05:11
agreed - I'd love to see this actually implemented.

PM is fine if you don't wish to post it here.

benjaminbih
29 Jun 2007, 10:06
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
29 Jun 2007, 16:10
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
29 Jun 2007, 16:19
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_thread_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
05 Jul 2007, 02:21
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
15 Jul 2007, 04:00
getting this error in a forum where i dont want the custom fields to show up.



my members cant post.


BUMP!

spx
15 Jul 2007, 09:59
Nice idea, but there will be displayed the html code like <br/><br/>.

RedGTiVR6
15 Jul 2007, 15:37
No there's not?

Gratisites
15 Jul 2007, 21:30
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
20 Jul 2007, 11:54
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 Aug 2007, 15:48
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 Aug 2007, 20:37
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
15 Aug 2007, 07:07
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
15 Aug 2007, 08:34
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
17 Aug 2007, 20:47
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
17 Aug 2007, 22:49
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
21 Aug 2007, 13:24
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
21 Aug 2007, 14:11
any update?

giorgiotave
24 Aug 2007, 08:53
This hack is Great.

I want use together with this (http://www.vbulletin.org/forum/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
24 Aug 2007, 09:15
Please go back and fill out all required custom fields.

I put only imput box in one forum :(

Wolf42
28 Aug 2007, 07:13
Thx! After some problems (and reading the whole thread) I got your hack to work. :D

nnjj.net
28 Aug 2007, 15:04
any update for 3.6.8?

AtaPulja
29 Aug 2007, 15:46
Update?

jluerken
05 Sep 2007, 12:47
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
05 Sep 2007, 18:01
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 Sep 2007, 18:32
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
13 Sep 2007, 18:20
thanks for this plugin :)

Mad Woman
22 Sep 2007, 18:44
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
28 Sep 2007, 14:03
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
01 Oct 2007, 00:16
bump

reddyink
01 Oct 2007, 05:13
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
01 Oct 2007, 11:06
m8 did you edit the templates because sometimes auto edit does not work.

applyimage
02 Oct 2007, 13:21
Hi, where do we find forum id's? :)

wolfe
02 Oct 2007, 15:22
m8 example http://www.url.com/forumdisplay.php?f=71 the number after the f is the forum id.

toucan42
10 Oct 2007, 18:12
Anyone know if this is working on 3.6.8?

Fungsten
11 Oct 2007, 19:17
Anyone know if this is working on 3.6.8?

Yes it does.

indie
12 Oct 2007, 20:53
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
12 Oct 2007, 23:46
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
13 Oct 2007, 20:01
Anybody?

osousous
14 Oct 2007, 23:26
Ok change of tactic - how much would it cost me to get this working on my site?:rolleyes:

wolfe
15 Oct 2007, 00:21
m8 attach your xml file will take a look

osousous
15 Oct 2007, 17:54
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
09 Nov 2007, 07:26
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
27 Nov 2007, 09:20
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
27 Nov 2007, 09:37
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
27 Nov 2007, 10:44
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
27 Nov 2007, 20:51
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
27 Nov 2007, 20:53
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
01 Dec 2007, 10:57
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
04 Dec 2007, 16:02
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
04 Dec 2007, 22:33
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
04 Dec 2007, 22:47
I had the same problem as ZomgStuff.

thompson
05 Dec 2007, 12:29
nice mod. thanks.

Scape-Server
05 Dec 2007, 18:15
Thanks for this. Nice idea ;) Installing now!

UberMensch
12 Dec 2007, 12:54
I have the same problem as ZomgStuff and RedGTiVR6.

Please fix this, it's spoilt an otherwise very useful mod!

UberMensch
12 Dec 2007, 15:49
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_thread_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_thread_field')));
}


Save Plugin:
newthread_post_start

It works for me (vB3.6.8 PL2), could someone confirm with their board also?

mjname
14 Dec 2007, 01:27
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
16 Dec 2007, 08:11
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_thread_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_thread_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
29 Dec 2007, 16:26
Working for me but, the fields appear twice under the Message area.
https://www.vbulletin.org/forum/

Also is there a way to remove the message area and only use these fields when Posting with this section.
https://www.vbulletin.org/forum/

Audentio
30 Dec 2007, 00:10
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
19 Jan 2008, 00:04
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
19 Jan 2008, 00:26
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
19 Jan 2008, 13:02
Working 3.7 Version would be great :)

StakingAces
19 Jan 2008, 17:39
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_thread_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
20 Jan 2008, 01:26
Anyone help with this?

StakingAces
21 Jan 2008, 07:15
Please?

SaltyOnionBalls
24 Jan 2008, 03:27
What do I edit to make it so the custom message shows on top of the regular message?

forumrunt
09 Mar 2008, 17:07
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
10 Mar 2008, 20:14
So I'm guessing this mod is no longer supported?

raucheninhh
13 Mar 2008, 09:24
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
22 Mar 2008, 22:12
Installed and working with the fix #187

Thank you a lot!

mariocaz
23 Mar 2008, 20:45
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
24 Mar 2008, 01:09
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
27 Mar 2008, 05:26
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
02 Apr 2008, 07:05
Would be nice if this could act like the Description Thread Mod: http://www.vbulletin.org/forum/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
05 Apr 2008, 02:48
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
05 Apr 2008, 13:55
Can this be ported over to vB 3.7?

Noctavia
08 Apr 2008, 09:35
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
10 Apr 2008, 19:12
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
18 Apr 2008, 03:37
what if i want it to include all forums, but exclude one?

MPDesignZ
25 Apr 2008, 13:16
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?

gim
02 May 2008, 04:17
Does work with 3.6.7 PL1 and Aqua-Soft 3 - Aqua template :(

Allan
11 May 2008, 15:38
French language ;)

Translator: Allan.

mirrormill
12 May 2008, 19:17
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
14 May 2008, 11:10
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
14 May 2008, 12:07
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
16 May 2008, 01:30
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
16 May 2008, 01:52
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
18 May 2008, 06:19
its not working

SpeedyHire
20 May 2008, 21:07
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
21 May 2008, 01:08
working like a charm in 3.7 gold

oz_girl
27 May 2008, 03:26
Will have to try this one, fingers crossed it works for me!

GPTB
06 Jun 2008, 16:48
If someone could update this for vB 3.7 I would be absolutely delighted :)

callumbush
08 Jun 2008, 17:08
Should I use this mod, or this mod?
http://www.vbulletin.org/forum/showthread.php?t=108888&page=40

Cheers :)

mauriceo
09 Jun 2008, 18:40
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
09 Jun 2008, 20:06
thanks for u

captainron19
14 Jun 2008, 19:08
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
17 Jun 2008, 13:43
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
17 Jun 2008, 14:09
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

http://www.vbulletin.org/forum/showthread.php?t=108888

GeoffreyXXI
21 Jun 2008, 10:02
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
24 Jun 2008, 14:26
Does not work with 3.7.2

indie
18 Jul 2008, 08:34
Does not work with 3.7.2
Ditto. "Thread Fields" does not show up in admincp left nav.

MrD
25 Aug 2008, 09:16
Ditto. "Thread Fields" does not show up in admincp left nav.

Show under Forums&Moderators

Cyburbia
26 Aug 2008, 20:38
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
02 Sep 2008, 02:53
i will really use it if it was compatible with 3.7.X

mariocaz
19 Apr 2009, 06:36
this is wrking like a charm in my 3.7.6 just look for some fixes in the other pages here.

sleepyboy2004
20 Apr 2009, 07:20
Is this one out for 3.8 yet??? :(

ChurchMedia
25 May 2009, 06:08
Is this one out for 3.8 yet???

Same question -- or is there a different hack that works well with 3.8?

slehmann
29 May 2009, 00:07
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
02 Jun 2009, 21:14
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
28 Nov 2009, 11:43
Hi,

I am using 3.8.4, and I really need it, can someone please help me.

Million thanks in advance.

krustyx
09 Sep 2010, 19:49
Please update for VB4!! :(

ruchirablog
10 Oct 2010, 14:04
I need this for VB4

bnimbhal
11 Jan 2011, 10:40
Any update for VB 4*

MusixP
27 Jan 2011, 13:46
vb4 pls ^^

Silviu
16 Apr 2011, 10:15
Hello,

We update this for VB4.

Attach.

jluerken
17 Apr 2011, 09:19
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
20 Jun 2011, 18:12
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
28 Jun 2011, 06:25
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)