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 02-02-2009, 12:58 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,380
Seapyramid
Default Limit Pets per user

First Thank You! This script is a great starting point!

There are a number of modifications I would like to do, but thankfully most can wait a bit & be implemented slowly over time. I would however like to be able to limit users on the number of "growing" pets at one time they can have. Would you be able to help me with this?

I currently have 6 stages of growth. I would like to limit the number of pets a user has on stages 1-4 to 5 pets max at any time. Stages 5 & up would not count in this limit.

Any help on this would be greatly appreciated. :)

Thanks, Sea
Reply With Quote
  #2  
Old 02-02-2009, 03:35 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,550
BMR777 is on a distinguished road
Default RE: Limit Pets per user

I'll have to see if Johnathon can add this to the next release, which is due out in a week or two. I'm rather hesitant to make any major changes to the current version as most of it will be rewritten with the new release.

Otherwise if it is not in the new release then once the new release comes out then I can add this in. :)

Brandon
Reply With Quote
  #3  
Old 02-02-2009, 03:50 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,380
Seapyramid
Default RE: Limit Pets per user

Thank you so much!!! :)

Sea
Reply With Quote
  #4  
Old 02-02-2009, 03:58 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,550
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
  #5  
Old 02-02-2009, 05:01 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,380
Seapyramid
Default RE: Limit Pets per user

*hugs*

That works wonderfully!!!!!! Thank you! Thank you! Thank You!

Sea
Reply With Quote
  #6  
Old 02-02-2009, 10:51 PM
agnyz agnyz is offline
Member
 
Join Date: Jan 2009
Posts: 31
Credits: 1,966
agnyz
Default RE: Limit Pets per user

Damn you guys amaze me, I have watched and almost every time someone has asked for something special you guys have delivered.

Any chance i could get you guys to fix a myspace friend adder script that doesn't show the pictures for people signing up with the profile 2?

I bought the damn thing for 25 bucks and thier support sucks, I told them about it a month ago and they said they would work on it and that was the last I Heard.

lol I don't really expect you guys to fix that one, just wanted to point out how good the support is on this site.

Thanks guys.
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:30 AM.

Currently Active Users: 375 (0 members and 375 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