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)
-   -   Moderator management system (https://vborg.vbsupport.ru/showthread.php?t=70850)

reteep 10-22-2004 08:03 AM

First of all, very nice hack!

Would it be possible to generate any kind of statistics for Super Moderators, too?

sv1cec 10-22-2004 09:34 AM

Quote:

Originally Posted by Darmak
mmmm

i have this problem in modmanagement.php

Warning: array_key_exists(): The second argument should be either an array or an object in /home/digizona/public_html/foro/includes/functions_modmanagement.php on line 251

I have the same problem, and it annoys me. Is there something we can do about it?

Tnx, looks interesting.

SaN-DeeP 10-22-2004 10:06 AM

Kentaurus truly its a very nice hack :), you can definetly add loads of features to same.. (i will myself recommend a few more things needed)

I appreciate your efforts for this hack http://forums.tech-arena.com/images/...s/notworth.gif


Warm Regards,
Sandy...

Kentaurus 10-22-2004 10:51 AM

Quote:

Originally Posted by mtha
very nice. However, sorting by lastvisit doesnt work very well.

agrrrrrrrrr

I have about 70 mods, and ...
Page generated in 3.61179 seconds with 12293 queries

What can I say? I am really sorry. I was hoping there was a cache for moderator permissions... there is not. 12293 queries is not acceptable. In my defense 12293 queries in only 3.6 seconds? Those must be light-speed queries.

It is fixed now, please use the modified functions_modmanagement.php in the zip (reupload it in your includes/ directory), I wrote a custom fetch_permissions and it uses A LOT less queries. Please let me know if it helped, I know it will.

Also for the array_key_exists() warning (I have never had that on my forum btw) I added code to fix that, please also reupload that file, you'll need to redownload the zip.

sv1cec 10-22-2004 11:15 AM

Me clicked 'Install'.

Now, all I have to do is to find a way to integrate it into my AdminCP. This vB software can always keep you busy.

Thanks for a lovely hack.

Rgds

Johnny 10-22-2004 11:32 AM

well this is one awsome mod, thx, ill make sure ill install this one.

Kentaurus 10-22-2004 11:36 AM

Quote:

Originally Posted by sv1cec
Me clicked 'Install'.

Now, all I have to do is to find a way to integrate it into my AdminCP. This vB software can always keep you busy.

Thanks for a lovely hack.

Rgds

If you really need to do that (I was aiming at a no file no template modification hack, I am tired of rehacking everything every month ;))

For a link in you admincp, it will be below "View permissions" in the "Forums & Moderators" box

In admincp/index.php
find:
PHP Code:

construct_nav_group("$vbphrase[forums] & $vbphrase[moderators]"); 

add ABOVE:
PHP Code:

construct_nav_option('Moderators management''../modmanagement.php'); 


For a link in your footer template, it will appear just next to your "admincp" link

in your 'footer' template
find:
PHP Code:

<if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> -</if> 

REPLACE it with:
PHP Code:

<if condition="$show['admincplink']"><a href="$admincpdir/index.php?$session[sessionurl]">$vbphrase[admin]</a> - <a href="modmanagement.php">Moderators Management</a> -</if> 


Kentaurus 10-22-2004 11:46 AM

Before somebody asks.... If you don't like the alerts that the system sends you can always delete the cron job, it is called "Moderator Management alerts" and you can delete it at the:

Scheduled tasks -> Scheduled tasks manager -> find "Moderator Management alerts" and delete it.

You can also run the task to see an example of how you'd see the alerts. I find the alerts a main feature of the system but you can get a lot of alerts if you have many moderators and they are all inactive :)

Polo 10-22-2004 12:46 PM

Nice Mod! Thanks for sharing Kentaurus

/me clicks install

Lionel 10-22-2004 01:34 PM

I get the pm alerts, but I get a blank page for the modmanagement.php and templates are there


All times are GMT. The time now is 09:41 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.01147 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_php_printable
  • (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