vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Lock Profile Editing (https://vborg.vbsupport.ru/showthread.php?t=42291)

Warlord 11-06-2002 11:59 PM

Cool hack ;)

BigJohnson 11-07-2002 09:13 AM

I get this error please help

Invalid SQL: UPDATE user SET lockprofile='1' WHERE userid='207'
mysql error: Unknown column 'lockprofile' in 'field list'

mysql error number: 1054

I get this error when I go to the users profile on the board and click Lock profile from the getinfo template.

BigJohnson 11-07-2002 07:33 PM

pleasde help

NTLDR 11-07-2002 07:39 PM

Theres no need to bump a thread just because no one has replied in less than 12 hours. Not everyone who can help is here 24/7.

Xenon 11-07-2002 07:39 PM

you have to run this query before you can use the hack:
[sql]ALTER TABLE user ADD lockprofile int(3) DEFAULT '0'[/sql]

Boofo 03-30-2003 04:27 AM

Hey, buddy. Found another bug. If you add a user through the Admin CP you will get a db error with the following code:

Quote:

Find: 154

$DB_site->query("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,canreportposts,profile) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchar s($ausername))."','".addslashes(md5($apassword))." ','".addslashes(htmlspecialchars($email))."','$use rstyleid','".addslashes(htmlspecialchars($parentem ail))."','$coppauser','".addslashes(htmlspecialcha rs($homepage))."','".addslashes(htmlspecialchars($ icq))."','".addslashes(htmlspecialchars($aim))."', '".addslashes(htmlspecialchars($yahoo))."','".adds lashes($signature)."','$adminemail','$showemail',' $invisible','".addslashes($usertitle)."','$customt itle',$joindate,'$cookieuser','$daysprune',$lastvi sit,$lastactivity,$lastpost,'$posts','$timezoneoff set','$emailnotification','$receivepm','$emailonpm ','".addslashes($aipaddress)."','$pmpopup','$optio ns','$birthday')");

Replace it with:

$DB_site->query("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,canreportposts,profile) VALUES (NULL,'$usergroupid','".addslashes(htmlspecialchar s($ausername))."','".addslashes(md5($apassword))." ','".addslashes(htmlspecialchars($email))."','$use rstyleid','".addslashes(htmlspecialchars($parentem ail))."','$coppauser','".addslashes(htmlspecialcha rs($homepage))."','".addslashes(htmlspecialchars($ icq))."','".addslashes(htmlspecialchars($aim))."', '".addslashes(htmlspecialchars($yahoo))."','".adds lashes($signature)."','$adminemail','$showemail',' $invisible','".addslashes($usertitle)."','$customt itle',$joindate,'$cookieuser','$daysprune',$lastvi sit,$lastactivity,$lastpost,'$posts','$timezoneoff set','$emailnotification','$receivepm','$emailonpm ','".addslashes($aipaddress)."','$pmpopup','$optio ns','$birthday','$lockprofile')");
You need to add lockprofile before the ) VALUES (NULL, ;)

N9ne 03-30-2003 11:11 AM

This gives me a good idea for my forums, I could have lock profile, lock options, freeze post count, freeze points count, lock out of certain features such as calendar, memberlist, search, etc :D

Thanks for the ideas :). hehe.

Mephisteus 03-30-2003 11:53 AM

please dont make those, im making a pack of it atm :p

ps
thx boofo, fixed it :)

N9ne 03-30-2003 12:44 PM

Quote:

Today at 02:53 PM DarkSSJ3 said this in Post #18
please dont make those, im making a pack of it atm :p

ps
thx boofo, fixed it :)


I won't be releasing them ;).

Mephisteus 04-07-2003 11:32 AM

your selfish :p. Anyway, I just checked my schedule to see I don't have the time to support it in any way. Not an hack like that. To busy with other projects, feel free to release it if you want :)


All times are GMT. The time now is 05:51 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.01598 seconds
  • Memory Usage 1,738KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete