vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   I added a new user field but I'm having trouble (https://vborg.vbsupport.ru/showthread.php?t=182211)

DISLEX 06-12-2008 06:01 AM

Any ideas what's wrong with my code? Another plugin is essentially doing the same thing, but with text/select fields rather than a single checkbox...

I can't get the value to store when you click save, though.

Opserty 06-12-2008 09:13 AM

Just use "User Profile fields" vBulletin will then handle all the saving and editing and management of the front-end. It will save you a load of trouble.

You'd typically only be extending the user table if you are releasing a modification, to save modification users the trouble of creating the field. Otherwise it is far easier to stick to User Profile Fields.

(The code you posted looks fine but I haven't messed about much with 3.7.x so I'm not sure how it is changed if at all.)

DISLEX 06-12-2008 03:22 PM

Yeah, I'll probably end up doing it through the admin cp, but I also want to familiarize myself with vbulletin, so I'd really like to figure out what I did wrong in the code :)

Opserty 06-12-2008 03:29 PM

It is always best to start out simple when you are learning.

For example just adding a code manually through the datamanger via. PHP then work onto submitting forms, using hooks, e.t.c. (instead of diving in at the deep end).

DISLEX 06-12-2008 04:01 PM

I couldn't find a great tutorial or article on what I was trying to do - add a user field manually (instead of via Admin CP). The two datamanager articles I found didn't seem to really apply to me either. Can you help point me in the right direction?

Opserty 06-12-2008 04:13 PM

<a href="http://www.vbulletin.com/docs/html/data_managers" target="_blank">Data Managers</a> (Check the "Advanced Datamanager Techniques" section it has something on modification via. Plugins)


All times are GMT. The time now is 08:19 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.00998 seconds
  • Memory Usage 1,713KB
  • 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)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