vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Will not update user (https://vborg.vbsupport.ru/showthread.php?t=70056)

Logikos 10-01-2004 06:11 AM

Will not update user
 
Hey, i'm trying to make a small license verifier. Basicly, i make up a number like "123456". And put it into a field in the user table. Do if user is from usergroup id 2 then they need to add ther license #, and when its entered correcly they will be updated to usergroupid #9, This is to insure that members from vbhacks.us have a valid vbulletin, we've deciced it would be the best thing. So please any help is appricated.

This code below almost works. When a user has not verified there license, it will ask them to, once they enter "123456" it will check the database to make sure that is the correct number, if it is they get a success page, if it is not, they will get a error page. the only thing it's not doing is updating the user to the proper usergroup. It acually doesn't touch them at all.

Heres the code
PHP Code:

 


Dean C 10-01-2004 08:18 AM

Read the forum descriptions next time ;) Moved to PHP/MySQL.

Xenon 10-01-2004 11:34 AM

erm, i don't see an update query, so you may have forgotten the most important part ^^

[SQL]UPDATE user SET usergroupid=9 where userid=xx[/sql]

Logikos 10-01-2004 06:03 PM

Thanks Xenon! I remember adding that to the script when i first started but my tired brain must have deleted for some reason. Works perfect now :)

Xenon 10-02-2004 11:07 AM

*gg*

you're welcome :)


All times are GMT. The time now is 12:54 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.01433 seconds
  • Memory Usage 1,710KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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