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 04-20-2012, 06:41 AM
Alaric Alaric is offline
Mod
 
Join Date: Nov 2011
Posts: 112
Gender: Male
Credits: 312,477
Alaric is on a distinguished road
Thumbs down Promo And Banning

When i change the value to all in the user field this is what happens :
It Bans Me.







When the value is blank in the user field this is what happens :






Now when i go to manage my adoptables, ie. Articuno. See what it shows :




Also when i visit the item shop this is what it displays :



Please Help Me Fix This ...

Last edited by Alaric; 04-20-2012 at 06:49 AM.
Reply With Quote
  #2  
Old 04-20-2012, 06:58 AM
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: 333,128
Hall of Famer is on a distinguished road
Default

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/for...?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...
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #3  
Old 04-20-2012, 07:53 AM
Alaric Alaric is offline
Mod
 
Join Date: Nov 2011
Posts: 112
Gender: Male
Credits: 312,477
Alaric is on a distinguished road
Default

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

Last edited by Alaric; 04-20-2012 at 08:09 AM.
Reply With Quote
  #4  
Old 04-20-2012, 08:09 AM
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: 333,128
Hall of Famer is on a distinguished road
Default

Well the file is class_promo.php, you can find it inside the folder called /classes.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 04-20-2012, 08:18 AM
Alaric Alaric is offline
Mod
 
Join Date: Nov 2011
Posts: 112
Gender: Male
Credits: 312,477
Alaric is on a distinguished road
Post

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.

Last edited by Alaric; 04-20-2012 at 08:24 AM.
Reply With Quote
  #6  
Old 04-20-2012, 08:28 AM
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: 333,128
Hall of Famer is on a distinguished road
Default

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.
__________________


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


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
Promo Codes SilverDragonTears Questions and Supports 2 06-30-2012 01:22 PM
Pound.php Banning Users!!! Alaric Questions and Supports 5 12-23-2011 01:40 AM
promo codes maximillion Questions and Supports 5 07-05-2011 06:28 PM
1 Promo per person Xius Questions and Supports 4 09-21-2009 05:55 PM
banning and available email address zhiichiro Suggestions and Feature Requests 4 04-06-2009 06:02 PM


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

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