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)

Bitmap 12-01-2001 11:02 PM

Quote:

Originally posted by ladyfyre
will this hack also allow mods of private forums to GRANT access through access masks for their forum????
yes ... i think so :)

Snake~eyes 12-02-2001 01:03 AM

[QUOTE]Originally posted by ladyfyre
will this hack also allow mods of private forums to GRANT access through access masks for their forum????

Wayne2k1.com 12-19-2001 12:15 PM

Great hack, man!

Exactly what I was looking for.

Thanx.

Snake~eyes 01-09-2002 12:48 PM

I'm havin some problems and getting a dumb error,

help please...

Database error in vBulletin Mod Control Panel 2.2.1:

Invalid SQL: SELECT * FROM moderator WHERE userid=
info[userid] AND (canbanusers=1 OR canviewprofile=1 OR caneditaccess=1)
mysql error: You have an error in your SQL syntax near '[userid] AND (canbanusers=1 OR canviewprofile=1 OR caneditaccess=1)' at line 2

mysql error number: 1064


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I'm not trying to do anything and I guess this is from adding the moderator hack - that allows mods to edit access masks
i get that error in the email. It's when moderators try to add access


Why am i getting this erro all of a sudden? :(

Help is appreciated,

thx

Scott MacVicar 01-10-2002 09:29 AM

i have a feeling that

info[userid] should be $bbuserinfo[userid]

don't know where the $bbuser went

Martz 01-10-2002 10:06 AM

Great hack PPN - I'd love to see a usergroup version of this!

Scott MacVicar 01-10-2002 03:22 PM

i'll see what i can do for you, I don't think it should be too much bother though.

Martz 01-10-2002 04:29 PM

Well, instead of having a list of forums which they can grant access on, instead a list of usergroups that they can move the user into. (excluding moderators, admins, or even using a system that checks if the usergroup has a setting such as allowmodchange group checked.


1 optional thing for me would be not to let the user be moved into a different usergroup unless they are in the registered usergroup already. This would mean a moderator (with permission) has to release them from their current group back into registered.

Just a thought, I don't expect anyone to do any of this! The access list one is pretty smart, but usergroups are easier to keep track of imho.

Snake~eyes 01-10-2002 06:31 PM

ya lost me :confused:

Could ya give me some idiot proof instructions? :D

Scott MacVicar 01-10-2002 07:33 PM

open up mod/user.php look for

PHP Code:

SELECT FROM moderator WHERE userid=info[userid] AND (canbanusers=OR canviewprofile=OR caneditaccess=1

change to

PHP Code:

SELECT FROM moderator WHERE userid=$bbuserinfo[userid] AND (canbanusers=OR canviewprofile=OR caneditaccess=1

you've copied some of the text wrongly and missed out parts of the query.


All times are GMT. The time now is 11: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.01464 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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