vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Moderator Application System 2.1 (https://vborg.vbsupport.ru/showthread.php?t=159704)

anwar.abdullakh 11-03-2007 02:08 PM

Code:

if ($vbulletin->userinfo['usergroupid'] !== 8)
why 8??

Quote:

Originally Posted by sabret00the (Post 1356736)
that method works so i'd go with it.

alternatively
PHP Code:

if (in_array($vbulletin->userinfo['usergroupid'], array(6XXXX)) 

i'd really suggest going with your current method though.

Btw tried it and not working...i want the admin and supmods to have the permission to view the comments (usergroup id: 5,6)

mhackl 11-03-2007 10:21 PM

1. I get a database error when I enter an incorrect user name to delete an application,

2. How do I change the quoted information listed below? I need to change this to my own confidentiality agreement.

Quote:

Moderator Policy
  • In Order To Apply To Be A Moderator You Must:
  • be a forum regular
  • have been at the forum for over a month
  • have a positive efficacious presence on Home (this will ultimately be reflected in your post count and referrals)
  • be proactive
Moderators should be knowledgeable in the topic they would like to moderate. They should be polite and helpful towards other members and give advice whenever needed and whenever possible. Moderators should visit the forum each day, actively take part in discussions as often as possible, ideally once a day, setting a good example to the other members. They should also take an active part in discussions between Moderators relating to the running of the forum. The Model Hangar Moderators have a responsibility to keep unsuitable content out of the forums as much as possible. Moderators should frequently encourage member participation in their forum, both by posting in existing threads and starting new ones.

PurpleButterfly 11-03-2007 11:51 PM

Quote:

bung the files in the relevant folders
Um, I don't understand what "bung the files" means...not sure I want to...lol How do I upload this? In FTP or just import product in the AdminCP?

sabret00the 11-04-2007 09:13 AM

Quote:

Originally Posted by PurpleButterfly (Post 1375252)
Um, I don't understand what "bung the files" means...not sure I want to...lol How do I upload this? In FTP or just import product in the AdminCP?

both. you have to ftp over the files included in the zip as well as install the plugin.

sabret00the 11-04-2007 09:16 AM

Quote:

Originally Posted by anwar.abdullakh (Post 1374833)
Code:

if ($vbulletin->userinfo['usergroupid'] !== 8)
why 8??


Btw tried it and not working...i want the admin and supmods to have the permission to view the comments (usergroup id: 5,6)

in mas_rateapp.php find:
PHP Code:

        if ($vbulletin->userinfo['usergroupid'] == 6)
        {
            
$getratings $db->query("
                SELECT mas_r.appid, mas_r.userid, user.username, mas_r.rating, mas_r.additional_comments, mas_r.timestamp
                FROM " 
TABLE_PREFIX "mas_rating mas_r
                LEFT JOIN " 
TABLE_PREFIX "user AS user ON (user.userid = mas_r.userid)
                WHERE appid = 
$appid AND timestamp > " $rateapp['application_time'] . "
            "
);

            while (
$viewrating $db->fetch_array($getratings))
            {
                
$rated_ago ceil((TIMENOW $viewrating['timestamp']) / 86400);
                
print_description_row('' .$viewrating['username'] . '\'s Rating Of This Application'02'tcat');
                
print_label_row('<b> Application Rating: </b>', (stripslashes($viewrating['rating'])));
                
print_label_row('<b> Additional Comments On The Application:', (stripslashes($viewrating['additional_comments'])));
                
print_label_row('<b> This Application Was Rated: </b>''' $rated_ago ' days ago');
            }
        } 

and replace with
PHP Code:

        if (in_array($vbulletin->userinfo['usergroupid'], array(5,6)))
        {
            
$getratings $db->query("
                SELECT mas_r.appid, mas_r.userid, user.username, mas_r.rating, mas_r.additional_comments, mas_r.timestamp
                FROM " 
TABLE_PREFIX "mas_rating mas_r
                LEFT JOIN " 
TABLE_PREFIX "user AS user ON (user.userid = mas_r.userid)
                WHERE appid = 
$appid AND timestamp > " $rateapp['application_time'] . "
            "
);

            while (
$viewrating $db->fetch_array($getratings))
            {
                
$rated_ago ceil((TIMENOW $viewrating['timestamp']) / 86400);
                
print_description_row('' .$viewrating['username'] . '\'s Rating Of This Application'02'tcat');
                
print_label_row('<b> Application Rating: </b>', (stripslashes($viewrating['rating'])));
                
print_label_row('<b> Additional Comments On The Application:', (stripslashes($viewrating['additional_comments'])));
                
print_label_row('<b> This Application Was Rated: </b>''' $rated_ago ' days ago');
            }
        } 

and you should be good to go.

sabret00the 11-04-2007 09:20 AM

Quote:

Originally Posted by mhackl (Post 1375181)
1. I get a database error when I enter an incorrect user name to delete an application,

2. How do I change the quoted information listed below? I need to change this to my own confidentiality agreement.

edit the phrase mas_moderator_policy

anwar.abdullakh 11-04-2007 11:16 AM

Quote:

Originally Posted by sabret00the (Post 1375439)
in mas_rateapp.php find:
PHP Code:

        if ($vbulletin->userinfo['usergroupid'] == 6)
        {
            
$getratings $db->query("
                SELECT mas_r.appid, mas_r.userid, user.username, mas_r.rating, mas_r.additional_comments, mas_r.timestamp
                FROM " 
TABLE_PREFIX "mas_rating mas_r
                LEFT JOIN " 
TABLE_PREFIX "user AS user ON (user.userid = mas_r.userid)
                WHERE appid = 
$appid AND timestamp > " $rateapp['application_time'] . "
            "
);

            while (
$viewrating $db->fetch_array($getratings))
            {
                
$rated_ago ceil((TIMENOW $viewrating['timestamp']) / 86400);
                
print_description_row('' .$viewrating['username'] . '\'s Rating Of This Application'02'tcat');
                
print_label_row('<b> Application Rating: </b>', (stripslashes($viewrating['rating'])));
                
print_label_row('<b> Additional Comments On The Application:', (stripslashes($viewrating['additional_comments'])));
                
print_label_row('<b> This Application Was Rated: </b>''' $rated_ago ' days ago');
            }
        } 

and replace with
PHP Code:

        if (in_array($vbulletin->userinfo['usergroupid'], array(5,6)))
        {
            
$getratings $db->query("
                SELECT mas_r.appid, mas_r.userid, user.username, mas_r.rating, mas_r.additional_comments, mas_r.timestamp
                FROM " 
TABLE_PREFIX "mas_rating mas_r
                LEFT JOIN " 
TABLE_PREFIX "user AS user ON (user.userid = mas_r.userid)
                WHERE appid = 
$appid AND timestamp > " $rateapp['application_time'] . "
            "
);

            while (
$viewrating $db->fetch_array($getratings))
            {
                
$rated_ago ceil((TIMENOW $viewrating['timestamp']) / 86400);
                
print_description_row('' .$viewrating['username'] . '\'s Rating Of This Application'02'tcat');
                
print_label_row('<b> Application Rating: </b>', (stripslashes($viewrating['rating'])));
                
print_label_row('<b> Additional Comments On The Application:', (stripslashes($viewrating['additional_comments'])));
                
print_label_row('<b> This Application Was Rated: </b>''' $rated_ago ' days ago');
            }
        } 

and you should be good to go.

worked like a charm!! thx a lot...good modification, nominated!!

Mrdby 11-04-2007 12:58 PM

when viewing whosonline...why does it come up Unknown Location when people are filling the application? Shouldn't it come up Viewing Moderator application or something instead of Unknown Location?

Jason Black 11-04-2007 03:14 PM

So how do users get to apply? since it's not on the navbar or anywhere on the site

Jason Black 11-04-2007 03:15 PM

I don't see it anywhere on the forum


All times are GMT. The time now is 11:51 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.01462 seconds
  • Memory Usage 1,817KB
  • 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_code_printable
  • (5)bbcode_php_printable
  • (7)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