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)

Kentaurus 10-22-2004 07:32 PM

Quote:

Originally Posted by sv1cec
As I said, great hack. However, I would prefer if I call it "Moderator Statistics" instead of "Moderators Management". I've searched the files and the templates, and I can't find where that phrase comes from. I am talking about the phrase that appears in the welcome box, as shown in the attached picture.

Any ideas would be greatly appreciated.

Rgds
-----------
John

It is in the phrases :)

AdminCP
Languages & Phrases -> Search in Phrases -> mod_management (phrase variable name)

Kentaurus 10-22-2004 07:38 PM

Quote:

Originally Posted by Lionel
This is crazy. I just reuploaded (same size). I tried to change the template name to another one, yet still empty!!!

Ah! Forgot to say I am using 3.01

That might be the problem.... I have only tested this hack with vb3.0.3, it might not work with 3.0.1. Depending on your server configuration you can get a blank page if you have a php error, like calling a function that didn't exist... can you get the detailed error from the server log or something like that? maybe it is a simple fix. Did you remembered to upload functions_modmanagement.php in the includes directory? You can also try adding something like "Hello" at the very end of the file, if it doesn't print then it is a php error and nothing with the template.

Lionel 10-22-2004 07:42 PM

echo "hello";
?>

does not print.

functions_modmanagement.php was uploaded. I did get the alerts PM

Lionel 10-22-2004 07:49 PM

Nothing in error log. Access log shows this:

xx.xxx.xxx.xxx - - [22/Oct/2004:16:45:40 -0400] "GET /forums/modmanagement.php HTTP/1.1" 200 6992 "http://site.com/forums/admincp/index.php?do=nav" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)"

Dean C 10-22-2004 07:54 PM

This is an absolutely superb idea - well done :)!

Lionel 10-22-2004 07:55 PM

Hear this! When I put echo "hello"; at the top, it prints, AND it also prints template

When I remove it, blank page...

mtha 10-22-2004 08:20 PM

Quote:

Originally Posted by Kentaurus
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.

Please use the modified version in this post (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.

I feel much better now: Page generated in 1.09987 seconds with 11 queries

However, the sorting by lastvisit still doesnt work very well:

here's the order I get with modmanagement.php?sortby=lastvisit :)

22-10-2004 03:34 PM
22-10-2004 01:26 PM
22-10-2004 03:51 PM

...
22-10-2004 02:34 AM
21-10-2004 10:52 PM
22-10-2004 03:46 AM
22-10-2004 12:11 PM
21-10-2004 09:45 PM
....



Quote:

Only the admin can see it. Other people get a nopermission screen.
If you want to allow some other group to access the code too, you can just modify the condition in modmanagement.php, right?
says

PHP Code:

// only administrators can see this page
if (($bbuserinfo['usergroupid'] != 6) AND ($bbuserinfo['usergroupid'] != 5))
{
    
print_no_permission();



Kentaurus 10-23-2004 02:55 AM

Quote:

Originally Posted by mtha
I feel much better now: Page generated in 1.09987 seconds with 11 queries

However, the sorting by lastvisit still doesnt work very well:

here's the order I get with modmanagement.php?sortby=lastvisit :)

22-10-2004 03:34 PM
22-10-2004 01:26 PM
22-10-2004 03:51 PM

...
22-10-2004 02:34 AM
21-10-2004 10:52 PM
22-10-2004 03:46 AM
22-10-2004 12:11 PM
21-10-2004 09:45 PM
....




If you want to allow some other group to access the code too, you can just modify the condition in modmanagement.php, right?
says

PHP Code:

// only administrators can see this page
if (($bbuserinfo['usergroupid'] != 6) AND ($bbuserinfo['usergroupid'] != 5))
{
    
print_no_permission();



Please reupload the includes/functions_modmanagement.php file in the zip, there was a bug with the ordering by lastvisit, it was showing the lastactivity and ordering by the last visit.

Yes, you can just modify the condition in the modmanagement.php in that way. In your example that would give access to the supermoderators also.

Kentaurus 10-23-2004 02:59 AM

Quote:

Originally Posted by Lionel
Hear this! When I put echo "hello"; at the top, it prints, AND it also prints template

When I remove it, blank page...

That doesn't make any sense... but you already know that :) Maybe you can just leave that hello at the top? ;)

Lionel 10-23-2004 03:41 AM

No that does not make sense. I wish someone could explain. I am sure there is a reason for it. Anyway, I just placed a non breaking space as echo. The only annoyance is that it drops the header table from topmargin=0


All times are GMT. The time now is 12:49 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.01156 seconds
  • Memory Usage 1,750KB
  • 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
  • (6)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