vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custom Field + Sql query? (https://vborg.vbsupport.ru/showthread.php?t=101733)

Saintless 11-27-2005 11:09 PM

Custom Field + Sql query?
 
Is it possible to have a custom field check to see if the information entered has already been entered by another user?


Basically i want user's to have display names but it wouldent be good if people started making displaynames that are the same :)

I desperatly need any direction on this.

Thanks.

merk 11-28-2005 12:24 AM

Yes it is possible, there are hooks in the profile section of the usercp where you can (once the user has submitted) check to see if the name is already used by running a query, and if so, stop the execution of the code and print out an error saying "hey dumbo, display name is already in use".

Saintless 11-28-2005 02:06 AM

Thanks

But i forgot to mention that i have the field setup so it can only be built/edited at user registration.
Would i still do this in the same place?

merk 11-28-2005 02:53 AM

No, you would have to do it in the registration hooks if that was the case (im not sure where, I havent looked into those hooks :))

Saintless 11-28-2005 06:20 AM

Yeah i took a peak in there...so lost lol.

Thanks for all your input.

merk 11-28-2005 07:19 AM

If you dont know much about it, you should request something.

Marco van Herwaarden 11-28-2005 07:42 AM

Or try to learn it.:D

Saintless 12-01-2005 06:37 AM

Quote:

Originally Posted by MarcoH64
Or try to learn it.:D


Yeah thats going to have to be what happens :) i have mananged to hack toghter everythign else.


Plus the time frame that i have to have this done by is getting closer and closer lol.

WAR 12-01-2005 01:06 PM

Quote:

Originally Posted by Saintless
Yeah thats going to have to be what happens :) i have mananged to hack toghter everythign else.


Plus the time frame that i have to have this done by is getting closer and closer lol.

If you get it to work, you should release it as a hack. I know that I at least would probably use it.


All times are GMT. The time now is 01:00 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.01832 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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