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)

taydu 11-05-2006 02:05 AM

please excuse me but where do I go to edit ???

Quote:

Go to ur plugins
edit: Custom Thread Forms [newthread_post_start]

ry215 11-05-2006 05:53 AM

So I downloaded the zip file from Harmor, followed the instruction...even overwrite the old cpnav_custom...

When I tried to import the xml file, it give me error message...

any help is appreciated.

harmor19 11-05-2006 10:10 AM

What was the error?

ry215 11-05-2006 05:31 PM

here is the error message....

Invalid SQL:
CREATE TABLE `d60299324custom_thread_forms` (
`custom_formid` mediumint(10) unsigned NOT NULL auto_increment,
`forumid` mediumint(10) unsigned NOT NULL default '',
`title` varchar(130) NOT NULL default '',
PRIMARY KEY (`custom_formid`)
);;

MySQL Error : Invalid default value for 'forumid'
Error Number : 1067
Date : Sunday, November 5th 2006 @ 02:28:27 PM
Script : http://www.tinhthoviet.com/forum/adm...=productimport
Referrer : http://www.tinhthoviet.com/forum/adm...?do=productadd
IP Address : 71.225.126.57
Username : nhk
Classname : vb_database

LaCN 11-05-2006 05:55 PM

Quote:

Originally Posted by taydu
please excuse me but where do I go to edit ???

in your admin panel / Manage Plugins

You see the plugin Custom Thread Forms [newthread_post_start] in there ;)

taydu 11-06-2006 05:22 AM

Thanks LaCN it work like charm

taydu 11-08-2006 08:37 AM

Please help my custom thread field doesn't goes to the new line after each custom field

custom field 1: xxx custom field 2: yyy custom field 3: zzz

I want it like this

custom field 1: xxx
custom field 2: yyy
custom field 3: zzz

Message

follow is the code from newthread_post_start

PHP Code:

$getcustomthreadfields $db->query_read("SELECT * FROM " TABLE_PREFIX "custom_thread_forms ");
  while(
$forms $db->fetch_array($getcustomthreadfields))
  {

    
$custom_formid "custom_$forms[custom_formid]";
    
$value htmlspecialchars($_POST[$custom_formid]);
    
    

    if(
$forms['required'] == 1)
    {
      if(empty(
$value))
      {
        eval(
standard_error(fetch_error('fill_in_custom_thread_field')));
      }
    }
    
    if(
$forms['forumid'] != "-1")
        {
           
$forumids explode(","$forms['forumid']);

           if(
in_array($foruminfo['forumid'], $forumids))
           {
               
$custom_message .= "[b][color=Red]".$forms['title']."[/color] [/b] ".$value."
"
;  
           }
       }
       
       if(
$forms['forumid'] == "-1")
        {
            
$custom_message .= "<b>".$forms['title']."</b>: $value<br />";
        }
    }

  
$vbulletin->GPC['message'] = "
$custom_message

.$vbulletin->GPC['message']; 


jaks 11-08-2006 10:25 AM

Guess my question was missed?
https://vborg.vbsupport.ru/showpost....7&postcount=69

No I haven't clicked install yet because I haven't installed yet. Just asking questions before hand to know if it will work how I want first.

taydu 11-09-2006 08:54 PM

it would be nice to not display the custom fields thread in the post if nothing is available. This way when user edit there post it won't be doublicate

field 1
field 2

if edit one

field 1
field 2
field 1
field 2

FractalizeR 11-13-2006 02:26 PM

Quote:

`forumid` mediumint(10) unsigned NOT NULL default '',
Your MySQL is running in STRICT mode. Change this line to

Quote:

`forumid` mediumint(10) unsigned NOT NULL default 0,


All times are GMT. The time now is 01:06 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.01231 seconds
  • Memory Usage 1,753KB
  • 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_php_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