Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 02-02-2009, 03:58 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 18,108
BMR777 is on a distinguished road
Default RE: Limit Pets per user

Ok, quick down and dirty solution here, in case you can't wait... :)

Download the attached adopt.php and then replace the one on your site with the attached file.

The attached file by default will make it so a user cannot have more than 4 pets with levels less than 6. To change these values, open the file in wordpad or another text editor and change:

PHP Code:
$query "SELECT * FROM owned_adoptables WHERE currentlevel < '6' and owner='".$username."'"
Change the number 6 here to the level where adoptables must be to be considered adult and do not count against the user's total.

PHP Code:
if($num >= 4){ 
Change the number 4 here to be the maximum number of young adoptables a user can have before the system denies them new pets. :)

I haven't tested this file but it should work. Let me know how it works. :)

Brandon
Reply With Quote
 


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
User cannot adopt pets? + Other problems Pear Questions and Supports 3 11-12-2014 03:21 PM
Only display pets a user hasn't clicked in daycare Hwona Suggestions and Feature Requests 3 08-16-2014 04:53 PM
Page that will display a user's pets (non layout destroying update) kisazeky Addons/Mods Graveyard 12 11-05-2009 08:27 PM
One Type Limit Ashje Questions and Supports 3 07-22-2009 10:14 PM
Limit Adoptions Genkigami Questions and Supports 4 04-01-2009 11:25 AM


All times are GMT -5. The time now is 03:50 AM.

Currently Active Users: 4301 (0 members and 4301 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636