![]() |
Promocode
HoF can you take a look at this really fast? I need it fixed asap as I just released a dragon that gives a reward. It adds everything blacnk in the database.
|
Update: Now it's adding in the info but it rewards it to system instead of the owner.
|
umm are you trying to create a promo code that can be used for more than once?
|
yep I already did... It sends a message to the user saying they got a reward. Then you click and it says you get the reward. I look in the db and it's in the inventory and the owner is listed as SYSTEM.
|
umm strange, perhaps it has something to do with the way reward is handled? I will look into that.
|
Thanks. I tried looking myself but I don't see anything. And the reward is already out and some people are missing out on it :(
|
Can you take a screenshot from table prefix.promocodes(you may or may not cover the actual codes, as the codes are unique to each member anyway. Cheaters will be banned)? Id like to see if the record inserted into the table is malfunctioning. This will determine if the flaw is in admin control panel script, or the class file.
|
|
Well yeah it indeed is not recording the user data. On 197, check if the line looks like this:
PHP Code:
|
Which script?
|
the adopt.php file in AdminCP subfolder.
|
No it says
Code:
<p> |
Then change it, I apologize for this. No idea why it happened as my site was working out just nicely...
|
Changed it and readded the promocode but there is still nothing in the user field
|
Then it was not the cause of your problem after all, its strange how it is working on my site though. What did you enter for the user field? It should be the username, not uid.
|
Nothing. It says if you want it to apply to all then to leave it blank.
|
Oh... So the promocode is working if you give it to a specific user, but not to the general public?
|
Yep! That's the problem
|
I see, at this moment the promocode is not set up in a way to handle multiple users yet. However, you can make it happen by editing these:
PHP Code:
PHP Code:
|
Sorry :/ Which script?
|
Edit: Ignore me. I edited the wrong script even though I knew which one was the right one O.o It works now.
|
I have the same problem, when I try to claim an adoptable with a promo code, the adoptable is inserted in the DB, but the owner field is empty.
|
Oh my goodness, looks like you have a big problem here. I have to work on the design project at this moment, so I will not be able to take care of this for tonight. The promocode system at this moment is set up in a way to handle user-specific codes only though. For now just try not to worry about public promocodes, I will look into ways to fix it later.
|
It worked for me.... just do what HoF told me to do.
|
Oh so it worked? Thats nice, I am not sure if I should consider this a glitch yet, but I will make sure to improve the promocode system further in Mys v1.3.2 so it can handle not only user-specific codes, but also public and multiple-user(more than one user, but not everyone).
|
It's not a glitch... but people will think they're able to enable all users to use it.
|
All times are GMT -5. The time now is 09:03 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.