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)

captainron19 07-20-2007 10:54 AM

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

<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-08-2007 02:48 PM

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-08-2007 07:37 PM

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 08-15-2007 06:07 AM

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 08-15-2007 07:34 AM

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 08-17-2007 07:47 PM

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 08-17-2007 09:49 PM

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 08-21-2007 12:24 PM

Quote:

Originally Posted by sp?x (Post 1291672)
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:

Code:

[br]example[/br]  =  <br>example</br>

And then in the plugin:

Code:

$custom_message .= "[br]".$forms['title'].": $value"."[/br]";
              $break = "[br]---------------------------[/br]";


Regards

nnjj.net 08-21-2007 01:11 PM

any update?

giorgiotave 08-24-2007 07:53 AM

This hack is Great.

I want use together with this. 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?


All times are GMT. The time now is 11:01 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.01234 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_code_printable
  • (1)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