vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Warning System, Automatic Ban, Make Posts Invisible, Edit Signature/ Avatar/ Picture (https://vborg.vbsupport.ru/showthread.php?t=59718)

Erwin 01-06-2004 07:57 PM

Good job. :) I will add that to the first post giving credit to you.

Zachery 01-06-2004 08:16 PM

only problem with that is its still hard coded via usergroups

magnus 01-06-2004 09:31 PM

Quote:

Originally Posted by Erwin
Good job. :) I will add that to the first post giving credit to you.

Thanks! :)

Quote:

Originally Posted by Faranth
only problem with that is its still hard coded via usergroups

Eh? I read your first post in this thread, but I'm afraid I don't know what "tatchy" is. You mean you want it as a definable option in the AdminCP? I plan to tinker with this hack quite a bit, so if that's what you mean I could do the code for that (if Erwin doesn't mind, of course).

Erwin 01-06-2004 09:44 PM

I don't mind. :) Just post it here, and I will include it in the first post.

Zachery 01-06-2004 09:46 PM

no i was refering to the fact that you were still using usergroup id's which arnt always a good idea anymore :) (or so i keep being told)

magnus 01-06-2004 11:04 PM

Erm.. if there's another way to do it, I'm all ears. Sure, I used can_moderate() for moderators.. but is there a can_admin(), too? Heh..

Zachery 01-06-2004 11:08 PM

can_moderate()

$permissions['adminpermissions'] & CANCONTROLPANEL

at least i think so? what i pulled outta beta 7 :)

magnus 01-07-2004 12:08 AM

Quote:

Originally Posted by Faranth
can_moderate()

$permissions['adminpermissions'] & CANCONTROLPANEL

at least i think so? what i pulled outta beta 7 :)

$perm['adminpermissions'] & CONTROLPANEL pull info from the currently logged in user, not the selected user -- so those won't work. I've been digging on vB.com and I can't seem to find anything relating to this. I was also digging through the default templates for a clue, but apparently they removed Administrator distinctive traits such as italics in Who's Online and Memberlist.

So.. until I can find how they want me to do it, usergroupid will have to do. :D

Zachery 01-07-2004 12:57 AM

if you use

<if condition="$permission['adminpermissions'] & CANCONTROLPANEL"> it will only show to admins

magnus 01-07-2004 02:07 AM

It's $perm['adminpermissions'] and yes, you're right.. that will work if I want to show to admins, but that's not what I'm trying to accomplish sadly.

I need to display warning options on a per user basis, if the selected user is an admin then the warning options will NOT be displayed for them when clicked -- which is why the usergroupid is being used.

$permisson[] gets the permissions of the logged in user, not the selected user.


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