vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do i get the result from a custom profile field. (https://vborg.vbsupport.ru/showthread.php?t=122871)

nVaux 08-03-2006 01:39 AM

How do i get the result from a custom profile field.
 
Hi well I have a custom profile field which is field5. I am using a plugin manager to check if the field is filled.

I want to know what the $_POST var would be for that variable. And am I also using the plugin manager on the appropriate spot?

profile_updateoptions

If anyone knows of a hack that might exists that already does this, I would appreciate it, I searched but couldn't really find anything, in the meantime i decided to try and see what I can make.

Thx. =)

Kirk Y 08-03-2006 06:37 AM

$vbulletin->userinfo['field5']

rogersnm 08-03-2006 06:48 AM

that might not work depending on where she puts it because it might show the old one not the new one.

nVaux 08-03-2006 03:54 PM

1 Attachment(s)
Hi there =)

Well this is what I have. All I want the plugin to do is check to see if the size is of those dimensions, if its not it will just remove the link, otherwise it will be left alone.

thx for the help.

Kirk Y 08-03-2006 05:06 PM

That looks correct.

nVaux 08-03-2006 09:30 PM

It does, but for some reason it only works when I view my options.

Its because I put it in the hook plugin "profile_editoptions"

I triedabout moving it to "profile_updateoptions", however the problem with that is, that I don't think it even reads the $_POST result for that set because it doesn't remove the value.

I want it to remove the value of $_POST['field_5'] with the above statement. When the user hits submit, it removes it fine if you want to view it, but I want to do it when they hit that submit button.

Thanks for the help =)


All times are GMT. The time now is 07:12 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.01078 seconds
  • Memory Usage 1,709KB
  • 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)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete