![]() |
#4
|
|||
|
|||
![]() Quote:
On line 165 or before "// Show a thank you message along with the adoptable's information to the user..." Check if it is the right type of adoptable then add in this query since we dont know if the pet leveled up or not and grab the $currentlevel sql: "SELECT * FROM ".$prefix."owned_adoptables WHERE aid='$id'"; get: $currentlevel then query to get the $promocode sql: "SELECT * FROM ".$prefix."levels WHERE adoptiename='$type' and thisislevel='$currentlevel'" get: $promocode then build the link and display it I would recomend at Code:
$article_content = $article_content . "<div align='center'><br />You have earned ". grabanysetting('rewardmoney') ." ". grabanysetting('cost') ." for leveling up this adoptable. <br />You now have {$GLOBALS['money']} ".grabanysetting('cost')."</div>"; Quote:
side note: bugs that I have notticed about leveling up, if you are logged out and click on the pet then log in you can click again but not the other way around. why is it showing you earned money when you are a visitor and not logged in? You could add a hook and suggest if you had been logged in/ sign up you could have earned that money. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with levelup in 1.3.3? | Infernette | Questions and Supports | 1 | 03-25-2013 05:47 PM |
Levelup Problems? | Tequila | Questions and Supports | 4 | 11-18-2011 11:52 PM |
help with levelup.php please | Sensacionsk8 | Questions and Supports | 7 | 02-27-2011 01:44 PM |
help me with levelup.php | Sensacionsk8 | Questions and Supports | 0 | 02-23-2011 05:48 PM |
levelup issue | ipman | Questions and Supports | 8 | 01-26-2011 09:33 AM |
What's New? |
What's Hot? |
What's Popular? |