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 edit access masks including child forums (https://vborg.vbsupport.ru/showthread.php?t=28654)

Snake~eyes 01-13-2002 02:15 PM

great, thx guys!

great support!

Scott MacVicar 01-13-2002 02:21 PM

Martz knew that one, i've never had a problem with it :D

SharkY-GA 01-15-2002 05:45 PM

I'm stuck on getting the access to work for some reason... Moderators with access to authorize members are getting "Do not have access."
This didnt happen on 2.2.0, no idea why on 2.2.1...

Scott MacVicar 01-15-2002 06:41 PM

ensure the column was created, ensure that they are mods of that forum and mod access mask editing is enabled for that forum. Check you made the changes in /mod/index.php

do they get an error when they try to search for the user to edit access masks for or is it when they click the link to edit the user that they found's access mask?

SharkY-GA 01-16-2002 12:24 AM

The error is when they try and search for a user.

SharkY-GA 01-17-2002 05:49 AM

*bump*
checked all of that and still can't figure out why it's not working...

Scott MacVicar 01-17-2002 06:06 AM

check this stage again

on line 45 and 59 change
if (!$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND (canbanusers=1 OR canviewprofile=1)")) {
to
if (!$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND (canbanusers=1 OR canviewprofile=1 OR caneditaccess=1)")) {

thats the only part that would cause an error, either that or the mods don't have permission to edit access masks for that forum.

SharkY-GA 01-17-2002 07:36 PM

Ok... Well that fixed that issue, now i'm flat out getting this:
"You may not edit access for someone who is not a normal registered user!"

Thanks in advance dude.

Scott MacVicar 01-17-2002 08:43 PM

you can only edit users in the usergroup 2, this is the registered usergroup, so you can't edit the access masks for admin or mods :)

SharkY-GA 01-18-2002 04:36 AM

That's what I figured, however it says that for registered users too... Hmm...

Scott MacVicar 01-18-2002 02:15 PM

i feel stupid now, i just noticed a bug :)

sorry about this

change the following

look for
PHP Code:

  $edituser=$DB_site->query_first("SELECT username,userid,usergroupid FROM user WHERE userid=$userid");
  
$ismod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid"); 

change the $ismod to $is_mod here, it only needs to be done once and only at that point, then change the following.

PHP Code:

  if ($edituser['usergroupid']!=or $ismod) {
    echo 
"<p>You may not edit access for someone who is not a normal registered user!</p>";
    
$stop=1;
  } 

change the $ismod to $is_mod i'd never noticed this as i've always used supermod and admin to test this never normal moderator. I recommend that all people update this to deal with this problem.

I just updated the main file at the top.

Sven 01-18-2002 02:37 PM

Still the same....

PHP Code:

  if ($edituser['usergroupid']!=or $ismod) {
    echo 
"<p>You may not edit access for someone who is not a normal registered user!</p>";
    
$stop=1;
  } 

I just commented this out and it works

Scott MacVicar 01-18-2002 08:42 PM

change

PHP Code:

if ($edituser['usergroupid']!=or $ismod) { 

to
PHP Code:

if ($edituser['usergroupid']!=or $is_mod) { 

and
PHP Code:

$ismod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid"); 

to
PHP Code:

$is_mod=$DB_site->query_first("SELECT moderatorid FROM moderator WHERE userid=$userid"); 

please make sure you get the right one as there is an identical one that uses $ismod and this is what causes problem, I had two things with the same variable, i don't recommend commenting it out as this allows mods to edit the access masks of anyone, including their own.

Shenlong 01-19-2002 01:10 AM

wonderful hack, my mods are very satisfied, thanx PPN

SharkY-GA 01-19-2002 07:21 AM

Yay, thanks dude. This makes my life a whole lot easier especialy when it comes to my clan forums.

Snake~eyes 01-22-2002 07:59 PM

i'm back again. I know i'm probaly getting on your nerves and I apologize.

I made them mods but they're getting the msg

"You do not have permission to do this!"

Where would my error be?

note: this makes no sense because it WAS working.

Snake~eyes 01-23-2002 05:42 PM

OKay.. i figured out the error with some hard work.. but i got it working.

Would it be possible to expand this hack so moderators could edit the style of their forums?

Martz 01-23-2002 09:55 PM

There is a beta hack to edit the styles in the beta hacks forum. I tried installing it a few times, but I messed it up.


I think a joint venture to make a mods control panel would be cool :)

Snake~eyes 01-23-2002 10:13 PM

yeah i noticed that after i made the request. But still it'd be cool to have this all in one hack.

I'm interested in installing it so clans can get their own customized layout.

Martz 01-23-2002 10:15 PM

Yep, and I for the same reasons. Theres quite a few clan runners out there using vB - which is why I think there is a market for a Community Hosting Control Panel, as I call it on our forums.

Snake~eyes 01-23-2002 10:35 PM

yeah.. a lot of clans want to have control over their boards.. or else the'll flee to ezboard

juno 01-26-2002 08:34 AM

Great hack!! Just installed and tested it with no problems!!

I've been waiting for a hack like this for a longtime. I was using that old password hack, but no more... thanks again!

Nightman 02-01-2002 09:57 AM

Great Hack..very cool...

i have only one problem....when i have subforen with in the private forum, the moderator is automaticly the same likein the main private forum....because the gets the same rights as the main forum....but the mod can't change the access for the forum..the chield forum isn't be visible in your hack...

anybody an idea?

i have testet to make mod again for the new forum..it works....but in the forum display the moderator was twice ....not so very nice

dieKetzer 05-07-2002 09:05 AM

Will this work on 2.2.5?

Wayne2k1.com 05-07-2002 09:40 AM

Yes it does.

:bunny:

dieKetzer 05-07-2002 09:53 AM

Sweet.
This works beautifully in 2.2.5 ;)

Thanks!

dieKetzer 06-12-2002 06:25 PM

And another easy install on 2.2.6 :)
This hack rules supreme!
It is The God of Hacks!

Chris M 06-12-2002 06:53 PM

Brilliant hack!

Satan

Doogie 11-01-2002 10:30 PM

I'm having problems with this hack on 2.2.8. I installed it again, as I have after every upgrade (getting real good at this now) and I can't work out where the problem is. The code is 100% correct as I've pored over it for hours.

It all seems to work, but when the moderator goes to edit the access mask it just brings up a blank frame. There's no indication in either the access log for apache or the error log, so I'm a bit stumped. Has anyone else got it working on 2.2.8??

Sadie Frost 12-23-2002 11:59 AM

It's working for me. I followed the instructions in the first post. :)

MajBoothroyd 01-25-2003 12:46 PM

Alright, I'm being lazy... or I'm just tired. Anyone care to pour over the current distro and tell me why my mods just lost the ability to view user profiles since this update? It's just them, emods (smods) and admins are fine.

Other thing is, I'm assuming E-mod's are supposed to be able to edit the access for all forums, even private ones they, ironically enough, even they're not supposed to have access to?

I don't truly care about the second part as it's no big secret what we do there, it's just boring crap about running the main site. However mods no longer being able to snoop through peoples profiles is annoying.

(still using vb2.2.7)

MajBoothroyd 01-27-2003 08:46 AM

Seems that all my mods listed in the Moderators table "canviewprofile" setting was reset to 0. I'm betting this has more to do with some "persons" actions now. Other than that one snag everything was great, and works perfect now.

glenmax 03-19-2003 01:37 PM

Question:

I have been using this for some time. It is great. But, I have noticed a small problem and have been able to find a solution. Maybe I have just missed it.

I have noticed that all mods can change their forum access masks. Is there a simple way to change that without losing the setups now?

Please let me know.

Cheers,
GM

ron176 05-24-2003 06:13 PM

Great hack I have it working on V2.30 no problems at all :rambo:

Ecron Daemon 07-30-2004 01:42 PM

could anyone convert this for vb 3.0.3?

Ecron Daemon 09-17-2004 10:44 AM

Is it too hard to do that?!
The code already exist, I think it's relatively simple to adapt that for anyone of the coder inside here :)

gabs 09-19-2004 08:30 AM

Yes . it would rock to have this for 3.0.3

Ecron Daemon 11-19-2004 05:45 PM

help, I need only the conversion of this hack for vb 3.0.3

Digital_Madness 01-27-2005 04:02 PM

I am done with the admin panel of this hack but cannot figure out the perms for mod panel.. I will post the updated hack here once completed.

SilverBoy 07-28-2005 07:00 AM

is there any updates to let this great hack to work on vb3.0.7?


All times are GMT. The time now is 04:20 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.01563 seconds
  • Memory Usage 1,814KB
  • 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
  • (7)bbcode_php_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
  • (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