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 07: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 09:18 AM

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

Xenon 10-01-2004 12:34 PM

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 07: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 12:07 PM

*gg*

you're welcome :)


All times are GMT. The time now is 02:14 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.01093 seconds
  • Memory Usage 1,711KB
  • 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