vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Adding Custom Select Field To Profile (https://vborg.vbsupport.ru/showthread.php?t=30925)

pipi 10-28-2001 02:56 PM

how to make it display in showthread.php? thanks

treszoks 10-28-2001 03:15 PM

pipi, it depends on the field number but here's how you'd do it.

In the "postbit" template, just place this where you want it:

$post[fieldX]

where X is the number of the field

Seifer 10-29-2001 06:52 AM

I cannot follow those .txt attachments, so in a desperate need of these, I just copied the Gender Hack...only modified it and the upgrade.php file to create the appropriate tables. It worked fine for the Gender Hack, the modified Gender Hack, and I used it a third time for a third drop down. It probably takes long than this, but...eh...it works. I'm just an idiot and find the most complicated route to things...

:p

Turk Master 10-29-2001 08:47 AM

Hey guys can I get a working demo plz......

Palmer ofShinra 10-29-2001 09:16 AM

Quote:

Originally posted by AlkATRaZ
sweet thank you!

I just noticed one more little issue,
the max input for custom fields is 250 characters so if a user types more then that it cuts it off.. I've changed the max input value in the Admin CP to 1000 chars but it still cuts it off at 250, I guess vbb has an internal max of 250.

Thank you very much for all of your help, I really appreciate it Treszoks.

That's a database limit. Custom user fields are stored as type char(250).

This means the field can literally hold 250 characters and no more.
Even if you try to set it higher, it won't work, because the database is limited to 250.

It's not a VB inherent thing.
If you MUST have more space, you'll have to add a new table to the DB manually and set the type to mediumtext or something.

treszoks 10-29-2001 01:11 PM

I can write out better instructions if you tell me exactly what you need. What I did was write out a general form for all possibilities. How many fields do you want? How many of those are required if any?


All times are GMT. The time now is 01:46 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.01070 seconds
  • Memory Usage 1,726KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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