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 05-19-2011, 11:48 AM
Zampher Zampher is offline
Member
 
Join Date: May 2011
Posts: 2
Gender: Male
Credits: 450
Zampher is on a distinguished road
Default Donation System Problem

First of all I want to clarify that I am using the google translator, so I might not express correctly because I do not speak English (I'm Spanish)
The problem with the donation system is that if I enter an amount of money that I haven`t anyway reaches the user who I send it.
Example:
I have only $100, but I donated $10000 to X, the other user (X) will get $10000. Also happens with negative numbers.

I hope you understand the problem
Thank you very much and best regards

PS: Im using the version 1.2.2
Reply With Quote
  #2  
Old 05-19-2011, 12:13 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,470
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Seems someone forgot to add a check to be sure that the amount being sent isn't more than the user has. x.x
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #3  
Old 05-19-2011, 01:54 PM
Zampher Zampher is offline
Member
 
Join Date: May 2011
Posts: 2
Gender: Male
Credits: 450
Zampher is on a distinguished road
Default

Well experiencing some can resolve the problem that you can donate more than you have (I should clarify that I am not a programmer, not absolutely nothing about programming and what I did was rather a bit of "deduction"). Only a conditional solves that problem, but not that of the negative numbers.

Search:
Code:
if($_POST)
And add above
Code:
if($amount < $money){
Then Search:
Code:
else
{
	$article_title = $accden;
	$article_content = $reqlogin;
}
And replace with:
Code:
else
{
	$article_title = $accden;
	$article_content = "No puedes donar mas de lo que tienes";
}

}
Reply With Quote
  #4  
Old 05-19-2011, 03:24 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 337,346
Hall of Famer is on a distinguished road
Default

Well its not that hard to fix, I make sure the bug does not exist in next release. All you have to do is to add a check point which prevent execution of the donation script if the user does not have enough money left.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply

Tags
donation, problem


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
Donation Dragons/ Custom Dragons Kamalya Questions and Supports 2 03-14-2013 09:25 AM
Trading System ChibiMaestro Questions and Supports 3 09-06-2011 05:14 PM
evolution system for 1.2.x? sensacion Questions and Supports 2 07-06-2011 11:49 AM
Breeding System Steelghost600 Questions and Supports 4 10-25-2009 02:38 PM
Donation Question? assflusher Questions and Supports 7 02-11-2009 08:20 PM


All times are GMT -5. The time now is 02:59 AM.

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