vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Restrict Supermod Permissions (https://vborg.vbsupport.ru/showthread.php?t=91121)

Andreas 09-13-2005 07:38 AM

Not yet. I thought I should maybe make it so like Administrator Permissions, eg. it's not shown at all in Usergroup Manager?

Boofo 09-13-2005 07:40 AM

That sounds like a good idea to me. Go for it! ;)

john_robot 09-13-2005 11:20 AM

current method is also fine , because its more customizable with other user groups.

Andreas 09-13-2005 11:25 AM

???
The Permissions only apply when the Group has Supermod Permissions.

john_robot 09-13-2005 11:43 AM

oh then why you keep it for other groups just remove it, :) I thought the other way :rolleyes:

FleaBag 09-15-2005 10:06 PM

Thanks for the product Kirby, I'm loving 3.5 more and more all the time. :)

Boofo 09-15-2005 10:15 PM

Quote:

Originally Posted by KirbyDE
Not yet. I thought I should maybe make it so like Administrator Permissions, eg. it's not shown at all in Usergroup Manager?

Is this gonna happen? ;)

Andreas 09-16-2005 03:53 AM

Maybe ... when I am bored ;)

Andreas 09-17-2005 05:44 AM

OK, I decided to keep this in Usergroup Manager - makes it a lot easier :)

But I gave the Permissions their own Group and made it so they are hidden from Non-Supermod Usergroups.

Is that OK now?

Boofo 09-17-2005 09:35 AM

Thank you very much, now it is perfect! ;)

Boofo 09-17-2005 10:13 AM

The can_moderate_supermod hook is almost in the right spot, huh? ;)

Andreas 09-17-2005 10:17 AM

???
Don't understand what you want to tell me ...

Boofo 09-17-2005 10:18 AM

Quote:

Originally Posted by KirbyDE
???
Don't understand what you want to tell me ...

Sorry, I need to learn to read a little better. ;)

Quote:

3) !!! This Edit is only necessary for vBulletin 3.5 Beta 1 - RC2; RC3 and up does not require any File Edits !!!

Andreas 09-17-2005 10:20 AM

Maybe ;)

This Hack is File-Edit free for RC3+

Boofo 09-17-2005 10:23 AM

Then maybe you should move it to the plug-in area? ;)

Andreas 09-17-2005 10:55 AM

Nope, it requires a Bitfield XML => additional File => Extension.
And that's where it is already :)

Boofo 09-17-2005 11:23 AM

Forgot about that. ;)

The permissions still show up in the Admin usergroup. That is how it is supposed to be, right?

Andreas 09-17-2005 06:38 PM

If the Admin-Usergroup has Supermod=Yes, then it should show up - otherwise not.

Boofo 09-17-2005 10:28 PM

Quote:

Originally Posted by KirbyDE
If the Admin-Usergroup has Supermod=Yes, then it should show up - otherwise not.

Ok, now I see what you meant. But you would want that set to yes, right? Or are Admins allowed to moderate forums even though it is set to no? That setting has always confused me, I guess. ;)

Andreas 09-17-2005 10:40 PM

Don't understand what could be confusing regarding this settng, but

Pre RC3: Admins had all moderator permissions
RC3+: Admins don't have moderator permissions if they are not supermods as well

Boofo 09-17-2005 10:45 PM

Quote:

Originally Posted by KirbyDE
Don't understand what could be confusing regarding this settng, but

Pre RC3: Admins had all moderator permissions
RC3+: Admins don't have moderator permissions if they are not supermods as well

I guess I didn't realize they changed it in RC 3. But SuperAdmins are not affected by this right? If that is the case, then it is better this way. ;)

Andreas 09-17-2005 10:57 PM

A Superadmin is still an Admin, isn't he?

Boofo 09-17-2005 11:03 PM

Quote:

Originally Posted by KirbyDE
A Superadmin is still an Admin, isn't he?

Then that's where we need the chnage. SuperAdmins should be able to mod all areas no matter what. If they turn it off for other Admins, then they are out.

Andreas 09-17-2005 11:23 PM

Well, that's standard behaviour and does have nothing to do with this Hack which deals with Supermods :)

But feel free to suggest @ .com that superadmins should have all moderator permissions.

karanlikdunya 09-25-2005 04:12 PM

my functions.php code

if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])
{
DEVDEBUG(' USER IS A SUPER MODERATOR');
$return = true;
($hook = vBulletinHook::fetch_hook('can_moderate_supermod') ) ? eval($hook) : false;
return $return;
}
}

you code:

if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'] OR
$vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'])
{
DEVDEBUG(' USER IS A SUPER MODERATOR');
return true;

:speechless: :speechless: :speechless: :speechless:

Powered by: vBulletin Version 3.5.0 Release Candidate 3

Boofo 09-25-2005 04:17 PM

From the first post:

Quote:

1 File Edit (only for Versions < 3.5 RC3)

Andreas 09-25-2005 08:49 PM

@karanlikdunya
As Boofo already pointed out, this Hack does not need any File Edits for RC3+.
Those are only necessary for Versions < RC3 - which is clearly stated in the readme.

WNxWakko 09-25-2005 11:04 PM

maybe im missing something but I installed it the RC3 way and I dont see anything new or different in the supermod permissions page. What is this mod supposed to add exactly?

Andreas 09-25-2005 11:11 PM

<a href="https://vborg.vbsupport.ru/attachment.php?attachmentid=34827" target="_blank">https://vborg.vbsupport.ru/attac...chmentid=34827</a>
This should appear in usergroup manager.

WNxWakko 09-25-2005 11:25 PM

ok I found why. I didnt put the xml file in. Although I do notice that the header saying Elite Mod permissions is not at the top like your screenshot is. Mine us just blank at the top.

Andreas 09-25-2005 11:46 PM

The Bitfield XML must be uploaded before the Product XML is imported, otherwise it will not work properly.
Uninstall the Product and then import the Product XML again.

Daniel 09-26-2005 01:08 AM

You're a lifesaver, Kirby. Much appreciated *installs*

Daniel 09-26-2005 02:09 AM

Hmm... not showing up in the Super Moderator permissions, XML bitfield was uploaded before plugin, reinstalled it aswell to confirm, doesn't appear. Anything I could do to fix it?

Andreas 09-26-2005 06:54 AM

Send me a PM with ACP and FTP login details and i'll take a look.
Otherwise I can't help much as I got no idea what could be going wrong.

Protoman 10-08-2005 04:53 PM

this needs to be updated for 3.5 gold.

my functions.php doesn't have the same code as mentioned in the installer. and there is now a hook where it asks you to make the file edit.

Boofo 10-08-2005 05:01 PM

Quote:

Originally Posted by Protoman
this needs to be updated for 3.5 gold.

my functions.php doesn't have the same code as mentioned in the installer. and there is now a hook where it asks you to make the file edit.

Re-read the install file. The file edit is no longer used for 3.5.0 Gold. It is for 3.5 RC2 and below only I think. ;)

Christine 10-08-2005 05:04 PM

@Protoman -- From the first post: 1 File Edit (only for Versions < 3.5 RC3)

@Kirby -- with the 05 Oct update, do we need to uninstall/reinstall and reset permissions, or just reload the product over the last one?

Andreas 10-09-2005 06:54 PM

Just overwrite the Bitfiield XML - as said there were just some wrong variables for the phrases.
But It wouldn't hurt to check the permissions afterwards, as you might have set wrong permissions (due to the wrong phrase text being displayed).

Christine 10-09-2005 07:47 PM

That was painless. :)

Thanks!

JulianD 10-28-2005 05:43 PM

Thanks! The only comment I have on this is that when I'm using the inline moderation and choose to delete some post, the option to physically remove the post appears, even though it doesn't work and throws a no permission screen. Any way to avoid that?


All times are GMT. The time now is 03:27 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.01362 seconds
  • Memory Usage 1,792KB
  • 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
  • (8)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