Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2011, 07:33 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,867
SilverDragonTears is on a distinguished road
Default Remove ability to unfreeze?

I really need this b.c with my 5 egg limit they can freeze and egg and then adopt one and then unfreeze it and then have 6 eggs...

not cool >.>
__________________

Check out SilvaTales
Reply With Quote
  #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: 7,649
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
  #3  
Old 08-17-2011, 08:40 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,867
SilverDragonTears is on a distinguished road
Default

Before I read this I just removed the unfreeze link and tweaked some other things... so I guess it's working.

Can you help me with disallowing frozen abandoned pets to show up in the pound?
__________________

Check out SilvaTales
Reply With Quote
  #4  
Old 08-17-2011, 08:48 PM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 7,649
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
  #5  
Old 08-17-2011, 08:50 PM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 7,649
ipengu is on a distinguished road
Default

Well removing the link will work for the most part, but if someone happen to remember the link to freeze/unfreeze a pet they could easily manually enter it into the url bar. I don't have time to look at the pound script or how it shows the adoptables, but I'll work after I get out of work tomorrow morning, I don't guarantee anything on that though, I may or may not be able to mess with it enough. If it deals with messing with more than a few files I likely won't bother with it as it then becomes more work than its worth to repost all the steps
__________________
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
  #6  
Old 08-17-2011, 09:21 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,867
SilverDragonTears is on a distinguished road
Default

Ok I followed your steps =) Feel more comfortable with it now =)
__________________

Check out SilvaTales
Reply With Quote
  #7  
Old 08-17-2011, 09:53 PM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 49,458
Nemesis is on a distinguished road
Default

Really glad to have someone as helpful as ipengu, though i dont think you have introduced yourself.

And SDT your members are little basterds lol:D
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
Reply With Quote
  #8  
Old 08-17-2011, 10:06 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,867
SilverDragonTears is on a distinguished road
Default

bahahahahahaha!! Not all of them =) Any idea how to fix the abandoned thing Nem?
__________________

Check out SilvaTales
Reply With Quote
  #9  
Old 08-17-2011, 10:29 PM
Nemesis's Avatar
Nemesis Nemesis is offline
Member
 
Join Date: Mar 2011
Location: Ohio, United States
Posts: 641
Gender: Male
Credits: 49,458
Nemesis is on a distinguished road
Default

sorry but no. I really want to help though, so I am currently learning php, then i'll have to figure out the script. then we will see what i can do but don't expect help from me till like after Christmas when i can be of help.
__________________
https://gemnode.com
Free Hosting for Mysidia Adopt Sites
Just join our forum and request your free hosting account
Reply With Quote
  #10  
Old 08-17-2011, 10:33 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 82,867
SilverDragonTears is on a distinguished road
Default

eh. i'm sure i'll get it eventually. just been overloaded with coding my site lately... gets tiring.

ETA:
*does happy dance*

I did it!! I did it!! Yea you know I did it!!
__________________

Check out SilvaTales

Last edited by SilverDragonTears; 08-17-2011 at 10:39 PM.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove CKEditor from Shoutbox? AlexC Questions and Supports 17 04-17-2012 11:29 AM
Remove Sidebar? SilverDragonTears Questions and Supports 0 06-03-2011 08:42 PM
Remove Adoptables? Blues Questions and Supports 3 07-28-2009 03:08 PM
Remove Adoptables from adopt.php? Tequila Questions and Supports 8 03-13-2009 08:28 AM
Remove Search Bar LilPixie Questions and Supports 3 02-12-2009 04:26 PM


All times are GMT -5. The time now is 03:45 PM.

Currently Active Users: 10001 (0 members and 10001 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636