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)

Razasharp 12-04-2007 03:02 PM

Hi, does this hack create new fields in the database or does it just create form inputs where the data is added to the post?

I need a hack where when you click edit the actual fields can be edited seperately - can this hack do that?

Cheers.

ZomgStuff 12-04-2007 09:33 PM

I found a problem w/ 3.6.8 pl2.

I have selected it to only show in one forum and I have it as a required field, now any other forum that you try to create a thread in it says go back and fill out all custom fields, so the only place you can make a thread is in that one forum, if required option is on.

please fix this!

RedGTiVR6 12-04-2007 09:47 PM

I had the same problem as ZomgStuff.

thompson 12-05-2007 11:29 AM

nice mod. thanks.

Scape-Server 12-05-2007 05:15 PM

Thanks for this. Nice idea ;) Installing now!

UberMensch 12-12-2007 11:54 AM

I have the same problem as ZomgStuff and RedGTiVR6.

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

UberMensch 12-12-2007 02:49 PM

I've had a crack at fixing our problem, and the attached product appears to work.

The changes were:

In Plugin:
newthread_post_start

Replace:
PHP Code:

$forumids explode(","$forms['forumid']); 

With: (Or delete it)
PHP Code:

// $forumids = explode(",", $forms['forumid']); 

Replace:
PHP Code:

    if($forms['required'] == && empty($value))
    {
       eval(
standard_error(fetch_error('fill_in_custom_thread_field')));
    } 

With:
PHP Code:

    $forumids explode(","$forms['forumid']);

    if(
$forms['required'] == && 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 12-14-2007 12:27 AM

I'm using this to collect a great deal of information for an online project. I need to know... or rather does anyone know if these fields are sorted and displayed alphabetical, numerical, or via created?

jgommel 12-16-2007 07:11 AM

Quote:

Originally Posted by UberMensch (Post 1399886)
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:
PHP Code:

$forumids explode(","$forms['forumid']); 

With: (Or delete it)
PHP Code:

// $forumids = explode(",", $forms['forumid']); 

Replace:
PHP Code:

    if($forms['required'] == && empty($value))
    {
       eval(
standard_error(fetch_error('fill_in_custom_thread_field')));
    } 

With:
PHP Code:

    $forumids explode(","$forms['forumid']);

    if(
$forms['required'] == && 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 12-29-2007 03:26 PM

Working for me but, the fields appear twice under the Message area.
https://vborg.vbsupport.ru/

Also is there a way to remove the message area and only use these fields when Posting with this section.
https://vborg.vbsupport.ru/


All times are GMT. The time now is 01:12 PM.

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.01435 seconds
  • Memory Usage 1,761KB
  • 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
  • (8)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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