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
Details »»

Version: , by black black is offline
Developer Last Online: Apr 2002 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 12-23-2001 Last Update: Never Installs: 21
 
No support by the author.

Ok..... Someone requested this
Edit Profiles From Mod CP

What This hack does: Let Mods Who You Give The Permission To Edit Profiles From The Mod Cp

If you dont give A Mod the permission they wont see the option to edit the user profile

If you do then the mod will see the option to edit the profile

Didnt have the time to add the unban option i have to go somewhere ......... But i tested this on my forums and it works perfectly ..... any problems let me know

By the way this is my second hack

Show Your Support

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

Comments
  #12  
Old 12-28-2001, 10:51 PM
Stryker Stryker is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm, when I go to change a mod's permission settings I get the following MySQL error...

Database error in vBulletin Control Panel 2.2.1:

Invalid SQL: UPDATE moderator SET forumid='3',userid='4',newpostemail='0',newthreade mail='0',caneditposts='1',cand eleteposts='1',canviewips='1',canmanagethreads='1' ,canopenclose='1',caneditthrea ds='1',caneditstyles='',canbanusers='0',canviewpro file='0',caneditprofile=1',can announce='1',canmassmove='0',canmassprune='0',canm oderateposts='1',canmoderateat tachments='1' WHERE moderatorid='23'
mysql error: You have an error in your SQL syntax near '',canannounce='1',canmassmove='0',canmassprune='0 ',canmoderateposts='1',canmode r' at line 1

mysql error number: 1064

Any idea how to fix that?
Reply With Quote
  #13  
Old 12-29-2001, 06:47 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is one ' missing

PHP Code:
caneditprofile=1',canannounce='1', 
has 2 be:

PHP Code:
caneditprofile='1',canannounce='1'
Reply With Quote
  #14  
Old 12-29-2001, 09:14 AM
Stryker Stryker is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the info, but I can't seem to find that error in the edited files anywhere. Am I completely stupid or am I just looking in the wrong place?

By the way Black, I think it would be much easier if the stuff you had to edit was just listed in a simple text file rather than as part of the installation file - it just makes it easier to go back and check the code after you've installed it.
Reply With Quote
  #15  
Old 12-29-2001, 10:20 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change this in admin/forum.php:

PHP Code:
$DB_site->query("UPDATE moderator SET forumid='$parentid',userid='$userid',newpostemail='$newpostemail',newthreademail='$newthreademail',caneditposts='$caneditposts',candeleteposts='$candeleteposts',canviewips='$canviewips',canmanagethreads='$canmanagethreads',canopenclose='$canopenclose',caneditthreads='$caneditthreads',caneditstyles='$caneditstyles',canbanusers='$canbanusers',canviewprofile='$canviewprofile',caneditprofile=$caneditprofile',canannounce='$canannounce',canmassmove='$canmassmove',canmassprune='$canmassprune',canmoderateposts='$canmoderateposts',canmoderateattachments='$canmoderateattachments' WHERE moderatorid='$moderatorid'"); 
to this:

PHP Code:
$DB_site->query("UPDATE moderator SET forumid='$parentid',userid='$userid',newpostemail='$newpostemail',newthreademail='$newthreademail',caneditposts='$caneditposts',candeleteposts='$candeleteposts',canviewips='$canviewips',canmanagethreads='$canmanagethreads',canopenclose='$canopenclose',caneditthreads='$caneditthreads',caneditstyles='$caneditstyles',canbanusers='$canbanusers',canviewprofile='$canviewprofile',caneditprofile='$caneditprofile',canannounce='$canannounce',canmassmove='$canmassmove',canmassprune='$canmassprune',canmoderateposts='$canmoderateposts',canmoderateattachments='$canmoderateattachments' WHERE moderatorid='$moderatorid'"); 
Reply With Quote
  #16  
Old 12-29-2001, 05:23 PM
Stryker Stryker is offline
 
Join Date: Nov 2001
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I'm no longer getting MySQL errors, thanks, but my mods have no way of submitting the changes to member's profiles.

What does the options which allows mods to see "member's whole profile" do exactly? And has that got anything to do with not being able to edit anything?
Reply With Quote
  #17  
Old 12-31-2001, 01:18 AM
Chrysalis's Avatar
Chrysalis Chrysalis is offline
 
Join Date: Nov 2001
Location: UK
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive installed the hack but so far not gave any mods rights to edit profiles, as I want to know if they can edit/add/remove admins.
Reply With Quote
  #18  
Old 12-31-2001, 06:03 AM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By my quick perusal of the code, it looks like they can indeed demote admins...

If you want to test it... make two dummy accounts.

Make one an admin, and one a mod with edit rights...

Then edit the dummy admin with the dummy mod. See if it works.

Basically... the part to look for is

usergroupid='$usergroupid',

If you delete that... then the edit display will still come up with the pulldown... but changing it won't do anything because it's not in the update query anymore.

I made custom code for my own Mod Edit... and replaced the Usergroup selector with a chooser that was ahrdcoded to the few groups I wanted them able to edit...

AND disabled it if the person was a mod/supermod/admin.
Reply With Quote
  #19  
Old 12-31-2001, 06:39 AM
Chrysalis's Avatar
Chrysalis Chrysalis is offline
 
Join Date: Nov 2001
Location: UK
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

went to try what you said and got this when giving the test mod edit profile abilities hehe.

Database error in vBulletin Control Panel 2.2.1:

Invalid SQL: UPDATE moderator SET forumid='8',userid='2380',newpostemail='0',newthre ademail='0',caneditposts='1',c andeleteposts='1',canviewips='1',canmanagethreads= '1',canopenclose='1',caneditth reads='1',caneditstyles='',canbanusers='0',canview profile='0',caneditprofile=0', canannounce='1',canmassmove='0',canmassprune='0',c anmoderateposts='1',canmoderat eattachments='1' WHERE moderatorid='76'
mysql error: You have an error in your SQL syntax near '',canannounce='1',canmassmove='0',canmassprune='0 ',canmoderateposts='1',canmode r' at line 1

mysql error number: 1064

admin/forum.php

im really tired its 8am after been up all night ill fix my mistake when I wake up.
Reply With Quote
  #20  
Old 12-31-2001, 10:47 PM
Lucky Lucky is offline
 
Join Date: Dec 2001
Posts: 234
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's got to be something up with this?
I have followed instructions to a T and my moderators can't edit profiles. There is no drop down or enter button anywhere?
What's up with this?
Is it still beta?

Any ideas?
Reply With Quote
  #21  
Old 01-01-2002, 04:54 AM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chrysalis...

Look in the query for caneditprofile=0'

Notice... the zero in there only has one single quote around it... it should have two.

That's your error.
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 07:32 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.05208 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (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
  • (3)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_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