vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Add user : AdminCP SQL error (https://vborg.vbsupport.ru/showthread.php?t=43772)

Zachariah 09-20-2002 09:40 PM

Add user : AdminCP SQL error
 
When adding a user via AdminCP
Not sure whats up ..... users can Reg and it works.
Prob a hack I added =/

All i can think is a value being called is not there.

Edited PHP files:

showthread.php (quick reply box)
member.php (Remote hosted avatar)
functions.php (Remote hosted avatar)

Everything else is template hacks.



Database error in vBulletin Control Panel 2.2.7:

Invalid SQL: INSERT INTO user (userid,usergroupid,username,password,email,stylei d,parentemail,coppauser,homepage,icq,aim,yahoo,sig nature,adminemail,showemail,invisible,usertitle,cu stomtitle,joindate,cookieuser,daysprune,lastvisit, lastactivity,lastpost,posts,timezoneoffset,emailno tification,receivepm,emailonpm,ipaddress,pmpopup,o ptions,birthday,height,width) VALUES (NULL,'2','Dad','439835bbc755914edcf3f5496bfc8609' ,'test@test.com','1','','0','http://www.yahoo.com','','','','','1','1','0','Contender' ,'0',1032560664,'1','-1',1032560664,1032560664,1032560664,'0','0','0','1 ','0','','1','15','1951-12-10',','')
mysql error: You have an error in your SQL syntax near '','')' at line 1

mysql error number: 1064

Date: Friday 20th of September 2002 06:24:24 PM
Script: http://192.168.0.1/forums/forums/admin/user.php
Referer: http://192.168.0.1/forums/admin/user.php?action=add

Xenon 09-20-2002 11:06 PM

you have forgotten one ' in your query at the end:
,'1951-12-10',','')

should be:
,'1951-12-10','','')

edit your user.php and apply the ' at the insert line.

just a question: why do you have the user table fields height & width?

it would be easier to just add custom profile fields

Zachariah 09-21-2002 12:18 AM

thanks for the info ill take a look .... the height width came from an Offline site avatar hosting hack. This way we don't host the avatars ... insted its a link to a remote site of the users choice. The "size" of the avatar is there in those 2 fields. (that way no matter the size they provide it will be no larger and X by X Size.


Ref: https://vborg.vbsupport.ru/showthrea...ed+Avatar+Hack


If there is a better way to do this yell ..... i'm a "shade tree hacker" ... not a guru like yall :D


My fault:

I was trying
// +++++++ Offsite Avatar Hack by g-force2k2 +++++++

and found out it wasen't working I forgot to clean up ..... DOH!

Thanks bunches


All times are GMT. The time now is 11:16 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.01037 seconds
  • Memory Usage 1,718KB
  • 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
  • (3)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