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
  #132  
Old 06-28-2007, 06:19 PM
redskins_43 redskins_43 is offline
 
Join Date: Feb 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wluther,

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

thanks!
Reply With Quote
  #133  
Old 06-29-2007, 04:11 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

agreed - I'd love to see this actually implemented.

PM is fine if you don't wish to post it here.
Reply With Quote
  #134  
Old 06-29-2007, 09:06 AM
benjaminbih benjaminbih is offline
 
Join Date: May 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #135  
Old 06-29-2007, 03:10 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by harmor19 View Post
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?
Reply With Quote
  #136  
Old 06-29-2007, 03:19 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LaCN View Post
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:
PHP Code:
           if(in_array($foruminfo['forumid'], $forumids))
           {
               
$custom_message .= "[B]".$forms['title'].":[/B] ".$value."
"

If u want colored titles, do something like:
PHP Code:
 $custom_message .= "[B][COLOR=Navy]".$forms['title'].":[/COLOR][/B] ".$value."
"

Notice that I removed the "" from [COLOR="NAVY"]
(somehow placing a \ in front of them isn't working)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~


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.

PHP Code:
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_formidTYPE_STR);

    if(
$forms['required'] == && 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 .= "[b]".$forms['title']."[/b]: $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....
Reply With Quote
  #137  
Old 07-05-2007, 01:21 AM
Stefano Virgill's Avatar
Stefano Virgill Stefano Virgill is offline
 
Join Date: Apr 2007
Location: Singapore
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #138  
Old 07-15-2007, 03:00 AM
soletrader soletrader is offline
 
Join Date: Jul 2006
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wolfe View Post
getting this error in a forum where i dont want the custom fields to show up.



my members cant post.

BUMP!
Reply With Quote
  #139  
Old 07-15-2007, 08:59 AM
sp?x sp?x is offline
 
Join Date: Apr 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea, but there will be displayed the html code like <br/><br/>.
Reply With Quote
  #140  
Old 07-15-2007, 02:37 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No there's not?
Reply With Quote
  #141  
Old 07-15-2007, 08:30 PM
Gratisites Gratisites is offline
 
Join Date: Jan 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Code:
<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?
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:13 PM.


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.05288 seconds
  • Memory Usage 2,331KB
  • 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
  • (1)bbcode_code
  • (3)bbcode_php
  • (3)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
  • (2)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