Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom Thread Fields Details »»
Custom Thread Fields
Version: 1.3.0, by harmor19 harmor19 is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.4 Rating:
Released: 10-07-2006 Last Update: 05-03-2007 Installs: 221
DB Changes Uses Plugins Template Edits
 
No support by the author.

What you can do with this hack is add multiple fields when someone creates a new thread. You can specify what fields can go in which forums.

To add, edit, or delete a custom field go into your ACP
Forums & Moderators --> Threads Field Manager

################## Updates ##################
1.0.0 - Initial Release
1.1.0 - Fixed bug
1.2.2 - Added the ability to add a field to multiple forums more easily
1.3.0 - Fixed some crucial bugs
1.4.0 - Added more features
################## Updates ##################

If you have installed this add-on on your board please click Install to the bottom right of this post
You are not permitted to redistribute this add-on on any site.
If you feel this add-on deserves Mod of the Month please click to nominate it

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #212  
Old 04-18-2008, 02:37 AM
Ammari Ammari is offline
 
Join Date: Mar 2006
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what if i want it to include all forums, but exclude one?
Reply With Quote
  #213  
Old 04-25-2008, 12:16 PM
MPDesignZ MPDesignZ is offline
 
Join Date: Feb 2007
Location: Daytona Beach, FL
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chrisbeau View Post
Working for me but, the fields appear twice under the Message area.


Also is there a way to remove the message area and only use these fields when Posting with this section.
I got rid of the two areas by deleting the template addon plugin that was installed with the mod & then manually editing the template putting the code where I needed it. My only prob now is trying to get the post that was made with it to be in the same output format as the input was. For example: I have this:

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?
Reply With Quote
  #214  
Old 05-02-2008, 03:17 AM
gim gim is offline
 
Join Date: Jun 2007
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does work with 3.6.7 PL1 and Aqua-Soft 3 - Aqua template
Reply With Quote
  #215  
Old 05-11-2008, 02:38 PM
Allan's Avatar
Allan Allan is offline
 
Join Date: Jun 2003
Location: France
Posts: 1,513
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

French language

Translator: Allan.
Reply With Quote
  #216  
Old 05-12-2008, 06:17 PM
mirrormill mirrormill is offline
 
Join Date: Sep 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #217  
Old 05-14-2008, 10:10 AM
mirrormill mirrormill is offline
 
Join Date: Sep 2007
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mrajp View Post
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.

Code:
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:

Code:
    $value = nl2br($value);
so it becomes

Code:
//  $value = nl2br($value);
as this is the line inserting the <br />s

worked for mee...
Reply With Quote
  #218  
Old 05-14-2008, 11:07 AM
Mrajp Mrajp is offline
 
Join Date: Mar 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mirrormill View Post
This worked for me as a solution to this issue:
using the plugin manager edit newthread_post_start

comment out the line:

Code:
    $value = nl2br($value);
so it becomes

Code:
//  $value = nl2br($value);
as this is the line inserting the <br />s

worked for mee...
I've noticed that the above hack works if the poster is using standard entry for their message box. However, if you have a user using the enhanced editor, doing the above hack will take out all of the line returns in the post, making the BR tags necessary.

I've since uncommented the code, and forced my users to use the enhanced message box for consistency.

Thanks for all of the help though!
Reply With Quote
  #219  
Old 05-16-2008, 12:30 AM
NCDiesel NCDiesel is offline
 
Join Date: Dec 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #220  
Old 05-16-2008, 12:52 AM
NCDiesel NCDiesel is offline
 
Join Date: Dec 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NCDiesel View Post
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
Reply With Quote
  #221  
Old 05-18-2008, 05:19 AM
viper007 viper007 is offline
 
Join Date: Dec 2007
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its not working
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11985 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete