Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Suggestions and Feature Requests (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=21)
-   -   Is there a way to limit the amount of adoptables a person can adopt? (http://www.mysidiaadoptables.com/forum/showthread.php?t=1038)

crydrk 08-01-2009 04:19 PM

Is there a way to limit the amount of adoptables a person can adopt?
 
Because it seems people just keep adopting a bunch of mine and while I've only used up one mb of my database out of 100, it's only been 3 days and I'd hate to run out of room in the future.

BMR777 08-01-2009 04:32 PM

RE: Is there a way to limit the amount of adoptables a person can adopt?
 
Yes, you can by hard-coding this value into the script. Please see this post which describes how to limit the number of adoptions per user to 1 per user.

To set the number, in the provided code find:

PHP Code:

if($num 0){ 

Replace 0 with the number for the maximum adoptables a user can have. :)

Also, if database space is filling up fast you can clear the contents of your adopts_vote_voters table. Be sure to clear it late in the day though as it keeps track of who voted to level up an adoptable and if you clear it mid-day some people can vote for a pet twice in a day, but the data from old dates is not needed anymore.

You can clear by running this query in PHPMyAdmin:

Code:

DELETE FROM adopts_vote_voters
:)

Brandon

crydrk 08-01-2009 04:34 PM

RE: Is there a way to limit the amount of adoptables a person can adopt?
 
I am extremely impressed with such a quick reply thank you very much.


All times are GMT -5. The time now is 01:08 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.