Points Admin Mod - Mod

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
cccmtech
Registered User
Posts: 42
Joined: Thu Oct 02, 2003 4:35 pm

Points Admin Mod - Mod

Post by cccmtech »

I came up with a simple mod to the existing mod. This allows you to allow moderators to view and access the points control panel (pointscp.php)

I will type up the mod in a minute, it's really simple. ~3 minute install tops.

This is simply modding the already modded Points Admin Mod
[updated for MOD compliance]

Code: Select all

######################################################## 
## MOD Title:    Points Admin for Moderators (vers. English) 
## MOD Author:   Rick < admin@ricknmiasworld.net > (CCCMTech) http://forums.ricknmiasworld.net 

## MOD Description:  This mod allows a moderator to edit and 
##          view the Points Control Panel 
##          
## MOD Version: 0.0.1 
## 
## Installation Level:  easy 
## Installation Time:   2-3 Minutes 
## Files To Edit:       4 
##
##     templates/subSilver/overallfooter.tpl 
##     includes/page_tail.php
##     language/lang_english/lang_main.php 
##     pointscp.php 
##
## Included Files:    0
##
##
######################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##
#########################################
#########################################
##
## Author Notes: (IMPORTANT) This mod will ONLY WORK if you 
##   have installed the Points Mod! 
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
## INSTALLATION: 

 
###[OPEN]###

templates/subSilver/overallfooter.tpl 

 
###[FIND]###

<div align="center"><span class="copyright"><br />{ADMIN_LINK}<br /> 

 
###[AFTER, ADD]###

<div align="center"><span class="copyright"><br />{ADMINA_LINK}<br /> 
<div align="center"><span class="copyright"><br />{MOD_LINK}<br /> 

 
###[OPEN]###

includes/page_tail.php
 
###[FIND]###

$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br />' : '';

###[AFTER, ADD]### 

$admina_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="pointscp.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Points_panel'] . '</a><br /><br />' : ''; 
$mod_link = ( $userdata['user_level'] == MOD ) ? '<a href="pointscp2.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Points_panel'] . '</a><br /><br />' : '';

###[FIND]###

'ADMIN_LINK' => $admin_link)

###[REPLACE WITH]###

'ADMIN_LINK' => $admin_link, 
'MOD_LINK' => $mod_link, 
'ADMINA_LINK' => $admina_link) 

###[OPEN]###

language/lang_english/lang_main.php 

###[FIND]###

$lang['Admin_panel'] = 'Go to Administration Panel'; 

###[AFTER,ADD]###

$lang['Points_panel'] = 'Go to Points Admin Panel';

###[OPEN]###

pointscp.php 

###[FIND]###

if ($userdata['user_level'] != ADMIN && user_is_authed($userdata['user_id']) == false) 
   { 
      message_die(GENERAL_MESSAGE, $lang['Points_not_admin']); 

 
###[REPLACE WITH]###

if ($userdata['user_level'] != MOD && user_is_authed($userdata['user_id']) == false) 
   { 
      message_die(GENERAL_MESSAGE, $lang['Points_not_admin']); 

###[SAVE AS]###

pointscp2.php 

###[COPY]###

pointscp2.php to pointscp2.php 

###[SAVE/CLOSE ALL FILES]###

# EoM

LifeIsPain
Former Team Member
Posts: 2148
Joined: Tue Oct 01, 2002 7:04 am
Location: Way Way Behind

Post by LifeIsPain »

First of all, were you having some issues with this you needed help on? If not, the better place would have been MOD Beta Developmnet (assuming you still plan to work on it).

Second, if this is as a Beta MOD, you need to follow the MOD Template
LifeIsPain - one who needs to be smackedLife is pain, highness! Anyone who says differently is selling something.

cccmtech
Registered User
Posts: 42
Joined: Thu Oct 02, 2003 4:35 pm

Post by cccmtech »

LifeIsPain wrote: First of all, were you having some issues with this you needed help on? If not, the better place would have been MOD Beta Developmnet (assuming you still plan to work on it).

Second, if this is as a Beta MOD, you need to follow the MOD Template
No real problems with it just wanted an extra feature available. I posted it there, was hoping for more input here.

Post Reply

Return to “[2.0.x] MOD Writers Discussion”