vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Custom Thread Fields (https://vborg.vbsupport.ru/showthread.php?t=128587)

redskins_43 06-28-2007 06:19 PM

wluther,

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

thanks!

RedGTiVR6 06-29-2007 04:11 AM

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

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

benjaminbih 06-29-2007 09:06 AM

i installed the great mod and it works fine, but how can i change on editing thread the custom thred filed. I see no option for this on editing.

RedGTiVR6 06-29-2007 03:10 PM

Quote:

Originally Posted by harmor19 (Post 1241378)
Did you go to vBulletin Options --> Custom Thread Fields Settings and make sure both are set to 'Yes'?


I was running into the same issue. This is not mentioned anywhere in the instructions. Perhaps it should be?

RedGTiVR6 06-29-2007 03:19 PM

Quote:

Originally Posted by LaCN (Post 1110206)
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....

Stefano Virgill 07-05-2007 01:21 AM

Hi guys,
cause my customized fields are always the same 3, I'm wondering if it's possible to set a 3 options drop down menu instead of a text field.

Thanks in advance

Steve

soletrader 07-15-2007 03:00 AM

Quote:

Originally Posted by wolfe (Post 1230543)
getting this error in a forum where i dont want the custom fields to show up.



my members cant post.


BUMP!

sp?x 07-15-2007 08:59 AM

Nice idea, but there will be displayed the html code like <br/><br/>.

RedGTiVR6 07-15-2007 02:37 PM

No there's not?

Gratisites 07-15-2007 08:30 PM

Greets, is there a way for the "Custom Field" fieldset etc.. to disappear if there's no custom fields for the forum?

I tried something like...
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?


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01305 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete