View Single Post
  #4  
Old 08-17-2011, 09:48 PM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 5,660
ipengu is on a distinguished road
Default

Decided to do it up quick before I go to work, for freeze but no unfreeze unless they can see admin cp


Open: myadopts.php
Find: (Around line 549)
PHP Code:
if($isfrozen == "yes"){

$status "<img src='templates/icons/freeze.gif'> Frozen<br>";
$go "<a href='myadopts.php?act=freeze&id=".$id."&more=unfreeze'><img src='templates/icons/unfreeze.gif' border=0> Unfreeze This Adoptable</a>";

Replace with:
PHP Code:
if($isfrozen == "yes"){

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

if(
$cancp == "yes"){
$status "<img src='templates/icons/freeze.gif'> Frozen<br>";
$go "<a href='myadopts.php?act=freeze&id=".$id."&more=unfreeze'><img src='templates/icons/unfreeze.gif' border=0> Unfreeze This Adoptable</a>";
}
else{
$status "<img src='templates/icons/freeze.gif'> Frozen<br>";
$go "You are not allowed to unfreeze this adoptable. <a href='javascript:history.go(-1)'>Click here to go back.</a>";
}


Let's also remind them when they are going to freeze the adoptable that they will not be able to unfreeze it

Open: lang/lang.php
Find: (Around line 95)
PHP Code:
$lang_freeze_warning "<img src='templates/icons/warning.gif'> <b>WARNING:</b> Freezing an adoptable REJECTS any clicks that the adoptable receives while it is frozen.  
Users who click on this adoptable while it is frozen will see a message stating that their click DID NOT COUNT towards this adoptable's leveling.  By enabling 
a freeze on this adoptable you are essentially rejecting all further clicks until the adoptable is unfrozen.  In addition, some management features of this adoptable may be disabled until you unfreeze it."

Replace with:
PHP Code:
$lang_freeze_warning "<img src='templates/icons/warning.gif'> <b>WARNING:</b> <FONT COLOR='red'><b>You will not be able to unfreeze this adoptable after you have frozen it.</b></FONT> Freezing an adoptable REJECTS any clicks that the adoptable receives while it is frozen.  
Users who click on this adoptable while it is frozen will see a message stating that their click DID NOT COUNT towards this adoptable's leveling.  By enabling 
a freeze on this adoptable you are essentially rejecting all further clicks until the adoptable is unfrozen.  In addition, some management features of this adoptable may be disabled until you unfreeze it."

__________________
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