PDA

View Full Version : Promo And Banning


Alaric
04-20-2012, 06:41 AM
When i change the value to all in the user field this is what happens :
It Bans Me.
http://i40.tinypic.com/es5jrb.png

http://i41.tinypic.com/2ef6e5w.png



When the value is blank in the user field this is what happens :
http://i40.tinypic.com/2j0fivc.png

http://i44.tinypic.com/20urcyx.png



Now when i go to manage my adoptables, ie. Articuno. See what it shows :
http://i41.tinypic.com/6zafl5.png



Also when i visit the item shop this is what it displays :
http://i40.tinypic.com/2di4qpz.png


Please Help Me Fix This ...

Hall of Famer
04-20-2012, 06:58 AM
First of all, the script recognizes 'all' as a user, and of course you'd be banned if the script believes you are entering a promocode that belongs to the user 'all'. This is not a bug.

Indeed, the script currently does not handle public promocodes. You may call this one as a minor glitch if you want to, and a simple fix has been proposed and is working nicely, check out this thread for more details:
http://www.mysidiaadoptables.com/forum/showthread.php?t=3580&page=2

And again do not post things like 'Please Help Me Fix This' if you claim to be advanced programmer. Like I said before, advanced programmers fix problems on their own...

Alaric
04-20-2012, 07:53 AM
Which php file should i edit?
Is it the adopt.php in the admincp subdirectory?

EDIT : Ok i got what to edit
classes/class_promo.php

Hall of Famer
04-20-2012, 08:09 AM
Well the file is class_promo.php, you can find it inside the folder called /classes.

Alaric
04-20-2012, 08:18 AM
I already fixed it, see the above post.
How can i make the limit to adopt each promo like only 1 promo adoptable per user.

Hall of Famer
04-20-2012, 08:28 AM
Well at this point the best thing you can do is to create promocode for each user and specify the quantity to be 1. Another possibility is to add a 'checker' to the promo.php page so that the user cannot use promocode again if he/she has more than one of the specific adoptable/item.