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)
-   -   Mods can edit Users (https://vborg.vbsupport.ru/showthread.php?t=42096)

Ice Man_00 11-10-2002 03:45 PM

Never mind that one... still edit who dosen`t work.. hehe.. just me who dosen`t read it..

But still notthing... :(

Xenon 11-10-2002 03:46 PM

well, we know it works, so you must made a little mistake...

i cannot help more, just try it again to implement the hack ;)

Ice Man_00 11-10-2002 03:49 PM

Never mind it all !!... LOL

This hack worked... pressed installed on this one.. thank you a lot !!!!

Cheers.

Xenon 11-10-2002 04:02 PM

:)
glad to hear :)

you're welcome

assassingod 11-10-2002 06:18 PM

Now I can install this one;)

Thanks Xenon

Dynamic One 11-15-2002 09:06 AM

Great Job. A Mod already asked me for this. Going to use this :D.

iblis 11-15-2002 03:15 PM

i have a special usergroup called crew
they are kindoff supermoderators.. they help me out :)

they are usergroup 14, how do i modify the hack so that it will apply for this usergroup

cheers

Xenon 11-15-2002 08:00 PM

after this:
PHP Code:

if ($action=="edit") { 

and after this:
PHP Code:

if ($HTTP_POST_VARS['action']=="doupdate") { 

just add this:
PHP Code:

if($bbuserinfo[usergroupid]!=14) {
echo 
"You cannot edit users!!";
exit;



350Chevy 11-17-2002 10:03 PM

Doesn't work for me in 2.2.8... My moderators cannot even view the user panel and the Super Moderators do not have a Submit or Apply or any type of button to apply changes done to the users profiles. I've triple checked the code and it's entered correctly.

Any suggestions?

Xenon 11-18-2002 03:58 PM

it works correctly on vb228, i use it there ;)

check your moderator permissions, they must be allowed to view userprofiles, to be able to edit them.

also be sure you click on the editlink of a user, not the viewlink, or your supermods cannot change anything ;)

iblis 11-18-2002 05:34 PM

thanx a mill xenon, will test it at once

[edit] yarr yarr m8, it works like a charm, yarr yarr

350Chevy 11-18-2002 11:17 PM

Quote:

Originally posted by Xenon
it works correctly on vb228, i use it there ;)

check your moderator permissions, they must be allowed to view userprofiles, to be able to edit them.

Hmm, All options are checked for the Super Moderator except access to the control panel. I don't want the moderators to edit users only super moderators. Do I have to have the Moderators option checked to view user profile in order for the Super Moderators to be able to edit them? That wouldn't seem right. :)

Quote:

Originally posted by Xenon
also be sure you click on the editlink of a user, not the viewlink, or your supermods cannot change anything ;)
This would be the link that says "Administrative Options: User Options" located under a users profile while viewing them correct?

The moderators cannot click on that (which is what I want). The Super Moderators CAN click on it and can edit everything in there but there is no option that says Save Changes or Reset so there is no way for them to save the changes. Is there a template that needs to be edited?

Xenon 11-19-2002 05:20 PM

@iblis: fine to hear that ;)

@Chevy: "Administrative Options: User Options" that link automatically leads to the Standart viewpage.
if you want to link to the editpage, you have to edit the getinfo-template and change the "action=view" in the link into "action=edit"

350Chevy 11-19-2002 07:56 PM

Quote:

Originally posted by Xenon
@iblis: fine to hear that ;)

@Chevy: "Administrative Options: User Options" that link automatically leads to the Standart viewpage.
if you want to link to the editpage, you have to edit the getinfo-template and change the "action=view" in the link into "action=edit"

Ahhhh... sorry.. lol.. :hurt:

Sadie Frost 12-14-2002 10:26 PM

Thank you so much for this :)

Is there a way to make it so that mods can edit forum access as well? Is it as easy as copying the "# Start Edit Access #" bit from admin/user insto mod/user?

Thanks! :)

Xenon 12-15-2002 12:00 PM

hmm, no it's not that easy, because this method would give them acces to all forums, also adminforums....

you have to include the permissions of the mod to let them edit user accesmasks...

i'd say it would be a seperate hack...
isn't there such a hack out? i thought so

Cloud Strife 12-27-2002 01:56 PM

I have a group called Co-admin, I also have Supermoderators and Moderators. How do I get this hack to work for just the Co-admins and the supermoderators and moderators have the regular modcp.

Xenon 12-28-2002 09:03 PM

you can use this solution:
https://vborg.vbsupport.ru/showthrea...550#post299550
extra permissions is the optimalst way

or you could simply add
PHP Code:

if($bbuserinfo[usergroupid]!=xx) { echo "No Permission!; exit;} 

into the hacksections so just users of usergroup xx has access

Elentari 01-16-2003 12:48 PM

I have super mods, and mods, but also a group called senior staff, (id = 11) with super mod permissions. I want to make it so that only the senior staff group can access the mod controls, not the supermods - is there any way to do that? :)

I did try using the coding a couple of posts above - but I wasnt sure exactly where to insert it, and though I played around a bit, it just kept giving me parse errors.

The hack is working fine, i just wanted to limit who I give access to :)

Thanks

Xenon 01-16-2003 02:22 PM

well where you have this block:
PHP Code:

$canedit[profilefields]=0;
$canedit[timefields]=0;
$canedit[options]=0;
$canedit[addresses]=0// HP, Email, ICQ, AIM ...
$canedit[signature]=0;
$canedit[title]=0;
$canedit[name]=1;
$canedit[changegroups]=1;  // Mods can move users from one group to another (just groups included in $canedit[usergroupids])
$canedit[usergroupids]="1 2 3 4"// Which usergroups can be edited 

change it to:
PHP Code:

if($bbuserinfo[usergroupid]==11) {
$canedit[profilefields]=1;
$canedit[timefields]=1;
$canedit[options]=1;
$canedit[addresses]=1// HP, Email, ICQ, AIM ...
$canedit[signature]=1;
$canedit[title]=1;
$canedit[name]=1;
$canedit[changegroups]=1;  // Mods can move users from one group to another (just groups included in $canedit[usergroupids])
$canedit[usergroupids]="1 2 3 4"// Which usergroups can be edited
} else {
$canedit[profilefields]=0;
$canedit[timefields]=0;
$canedit[options]=0;
$canedit[addresses]=0// HP, Email, ICQ, AIM ...
$canedit[signature]=0;
$canedit[title]=0;
$canedit[name]=0;
$canedit[changegroups]=0;  // Mods can move users from one group to another (just groups included in $canedit[usergroupids])
$canedit[usergroupids]=""// Which usergroups can be edited



Elentari 01-16-2003 02:52 PM

This still is giving access to the supermods, for some reason :(
The supermods cant edit the user - but they can access the panel, and they can post announcements and mass move threads etc. Is there anyway to allow them access only to ban members?

Xenon 01-16-2003 03:01 PM

impossible, a least they can't change anything so..

Elentari 01-16-2003 03:08 PM

didnt see ya post before i edited my post above ;)

Quote:

The supermods cant edit the user - but they can access the panel, and they can post announcements and mass move threads etc. Is there anyway to allow them access only to ban members?

Xenon 01-16-2003 04:38 PM

that has nothing to do with my hack then....

that's why they are supermods, just make em normal mods which can't move... and so on..

Elentari 01-17-2003 09:56 PM

I cant do that unfortuntely, lol. But thanks :D

geniuscrew 01-28-2003 09:55 PM

Nice hack Xenon! Can mods edit people's avatars too? That's what I really want the most.

Thanks in advance

Xenon 01-30-2003 12:57 PM

@geniuscrew: sorry, not in this version, but it's on my todolist for the next version when i got free time again :)

Sweet Cheeks 01-31-2003 09:51 AM

:paranoid: I'm getting a fatal error down at the bottom of the persons profile where the Submit button usually would be

Fatal error: Cannot redeclare usergroupchooser() in /home/virtual/site19/fst/var/www/html/boards/mod/user.php on line 470

any ideas?

Sweet Cheeks 01-31-2003 12:58 PM

I think I have it fixed now ;)

Xenon 02-10-2003 02:26 PM

Ok, Version 2.4 released :)

Now mods can edit Users' Avatars also if you want, and there is an important security fix in it.
(Mods could become real Admins in some constelations of permissions..)
I recommend to Upgrade ASAP if you gave your Mods the permission to edit options (showemail aso) and your Mods are skilled with vb ;)

Arabian 02-19-2003 11:55 AM

Thanks Xenon !

Perfect Hack!!!!

exactly what i really need !

what about editing users Passwords????

is it possible?

Xenon 02-19-2003 12:00 PM

well, yes it's possible, but i don't know why mods should be able to edit users passwords...

Arabian 02-19-2003 02:39 PM

only supermods in my board can edit users informations,

and i want them to be able to make any changes that admin can do with users informations, but not with logging in to cp!

and that including changing thier passwords, well, if needed!

Sweet Cheeks 02-19-2003 03:00 PM

Thanks Xenon :D

Xenon 02-19-2003 04:50 PM

@Arabian: ok, download the newest version, have included a canedit[password].

it's not tested but it must work :)

Arabian 02-19-2003 07:29 PM

Xenon it works ;)

Thanks for the great work :)

Xenon 02-19-2003 09:19 PM

you're welcome :)

geniuscrew 03-10-2003 02:19 PM

Nice one Xenon! Love it :)

350Chevy 03-10-2003 02:34 PM

Anyway to make it so Mods can edit post counts? :)

Great hack btw.. :D

Xenon 03-10-2003 03:08 PM

@chevy: yep, also possible :)

maybe next version, k?

or if you want, you can yourself manually copy that part out of admin/user.php


All times are GMT. The time now is 07:40 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.02889 seconds
  • Memory Usage 1,841KB
  • 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
  • (6)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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