View Single Post
  #2  
Old 08-17-2011, 08:21 PM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 10,328
ipengu is on a distinguished road
Default

Not fine tuned, very basic.


Open: myadopts.php

Find: (Around line 516)
PHP Code:
else if($act == "freeze"){ 
Replace with:
PHP Code:
else if($act == "freeze"){

$group getgroup();
$cancp cancp($group);

if(
$cancp == "yes"){ 
Find: (Around line 607)
PHP Code:
else{

$article_title $err_idnoexist;
$article_content $err_idnoexist_text;

}



Add after:
PHP Code:
//Allow only admins to freeze/unfreeze
else{

$article_title $err_nofrzperm;
$article_content $err_nofrzperm_text;

}


Open: lang/lang.php

Find: (Around line 50)
PHP Code:
$err_idnoexist "Invalid Adoptable ID Specified";
$err_idnoexist_text "The ID specified does not match any adoptable in our system.  Sorry.  If you wish, you can <a href='adopt.php'>adopt a pet</a>."
Add After:
PHP Code:
$err_nofrzperm "No Permission";
$err_nofrzperm_text "You do not have correct permission to do this action. <a href='javascript:history.go(-1)'>Click here to go back.</a>"
I'd also suggest removing the link.

This just fully removes the freeze/unfreeze to everyone but people whom can use admin cp. If you want them ability to freeze, but not unfreeze its honestly a matter of skipping the first chunk and just putting it lower down in the freeze section of myadopts.php
__________________
Coder/Marketer/Etc
Super busy, lack of time for computer related things for awhile.

Current Mods:
Slim Profile | Disallow unfreezing adoptable
Longer Shoutbox | IP Tracking/Account Limiter
Colorblast | Flux Series

In the works:
Integrated Forum (Very unlikely to be a free public mod, at first anyways)15%
Better admin control panel (current one is terrible)
Couple Themes
Few other things.
Reply With Quote