vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Adding custom fields to threads (https://vborg.vbsupport.ru/showthread.php?t=141942)

DSdad 03-13-2007 12:58 PM

Adding custom fields to threads
 
I need someone to help me add custom fields to each of the threads in my vBulletin. Specifically, for each thread, I'd like the thread to have separate fields for: address, city, state, zip, phone, and GPS coordinates. Thus, when a person starts a thread, it'll have a title (which I need renamed to "Name"), and will also have the above referenced fields available as optional fields to fill in

I need the customization done fairly quickly if anyone is interested (might be willing to pay a little $$ as well :D ).

Thanks.

Zachariah 03-13-2007 04:42 PM

Thread Prefixes
https://vborg.vbsupport.ru/showthread.php?t=123033

DSdad 03-13-2007 04:46 PM

Could I set up multiple prefixes to allow me to have the 1) address, 2) city, 3) state, 4) zip, etc fields?

Thanks

Zachariah 03-13-2007 04:51 PM

Quote:

Brief Description of the Modification

This modification allows your users to choose a thread prefix for each thread. To do this you are able to select an appropriate prefix from a list beside the title while posting a new thread - for example 'Help', 'Problem', 'Search' etc.

Scrns
https://vborg.vbsupport.ru/attachmen...3&d=1154712410
https://vborg.vbsupport.ru/attachmen...4&d=1154712421

DSdad 03-13-2007 05:02 PM

I understand - what I need though is to be able to specify 5 "prefix" fields for each thread, then move the prefixes to the left of the thread field. Does that make sense...I'm new here so not very fluent in how vB works.

paul41598 03-13-2007 06:34 PM

you might want something like this:
https://vborg.vbsupport.ru/showthrea...=custom+thread

should be right up your alley. Also on the 3rd page or so of that thread, I thought I released a modified version of that hack, so whatever u typed into the thread custom fields could be appended to the thread title.

Read up alot on that thread, should work for ya

DSdad 03-16-2007 12:09 PM

I can't get it to run...copied the 2 files (custom_thread_fields.php and cpnav_custom_thread_fields.xml) to appropriate spots, opened ACP and selected Browse...selected product-custom_thread_forms.xml (off my hard drive correct since browsing?), and keep getting a database error. Any suggestions? Thanks

here's the actual error:

Invalid SQL:
CREATE TABLE `custom_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

Further to the last post, I'm also running vbPortal...not sure if that would affect the installation but I've tried it again and continue to get hte same database error message.

Thanks for any help!


All times are GMT. The time now is 06: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.01020 seconds
  • Memory Usage 1,724KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete