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)

Ammari 04-18-2008 02:37 AM

what if i want it to include all forums, but exclude one?

MPDesignZ 04-25-2008 12:16 PM

Quote:

Originally Posted by chrisbeau (Post 1411438)
Working for me but, the fields appear twice under the Message area.
http://img520.imageshack.us/img520/7168/screenyma8.jpg

Also is there a way to remove the message area and only use these fields when Posting with this section.
http://img520.imageshack.us/img520/6642/89888354lx9.jpg

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?

gim 05-02-2008 03:17 AM

Does work with 3.6.7 PL1 and Aqua-Soft 3 - Aqua template :(

Allan 05-11-2008 02:38 PM

French language ;)

Translator: Allan.

mirrormill 05-12-2008 06:17 PM

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

mirrormill 05-14-2008 10:10 AM

Quote:

Originally Posted by Mrajp (Post 1487671)
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...

Mrajp 05-14-2008 11:07 AM

Quote:

Originally Posted by mirrormill (Post 1519208)
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!

NCDiesel 05-16-2008 12:30 AM

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)

NCDiesel 05-16-2008 12:52 AM

Quote:

Originally Posted by NCDiesel (Post 1521190)
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

viper007 05-18-2008 05:19 AM

its not working


All times are GMT. The time now is 05:04 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.01453 seconds
  • Memory Usage 1,751KB
  • 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
  • (5)bbcode_code_printable
  • (4)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