Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Lock Profile Editing Details »»
Lock Profile Editing
Version: 1.00, by Mephisteus Mephisteus is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 08-13-2002 Last Update: 03-29-2003 Installs: 33
DB Changes
 
No support by the author.

Thanks to lesane for his help

This hack will allow you to lock profiles off your members to prevent them from editing them.

This can be done through the public profile (smods and admins only). They use the same table so if you lock the profile through the public profile it will also change the status in admin cp where it can also be done.

Screenshot admincp in next post, there is no screenshot of the public profile since you can place it where ever you want.

If you install it please click install

[edit]
confirmed working on ALL 2.2.x version of vbulletin.

[edit]
confirmed to be working on 2.3.0

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 11-06-2002, 11:59 PM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool hack
Reply With Quote
  #13  
Old 11-07-2002, 09:13 AM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #14  
Old 11-07-2002, 07:33 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pleasde help
Reply With Quote
  #15  
Old 11-07-2002, 07:39 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 11-07-2002, 07:39 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you have to run this query before you can use the hack:
[sql]ALTER TABLE user ADD lockprofile int(3) DEFAULT '0'[/sql]
Reply With Quote
  #17  
Old 03-30-2003, 05:27 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #18  
Old 03-30-2003, 12:11 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks for the ideas . hehe.
Reply With Quote
  #19  
Old 03-30-2003, 12:53 PM
Mephisteus's Avatar
Mephisteus Mephisteus is offline
 
Join Date: Dec 2001
Location: The Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

ps
thx boofo, fixed it
Reply With Quote
  #20  
Old 03-30-2003, 01:44 PM
N9ne N9ne is offline
 
Join Date: Feb 2002
Posts: 1,495
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

ps
thx boofo, fixed it

I won't be releasing them .
Reply With Quote
  #21  
Old 04-07-2003, 12:32 PM
Mephisteus's Avatar
Mephisteus Mephisteus is offline
 
Join Date: Dec 2001
Location: The Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your selfish . 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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:26 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.06894 seconds
  • Memory Usage 2,307KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete