Thread: adoptables
View Single Post
  #5  
Old 01-25-2009, 07:54 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,755
BMR777 is on a distinguished road
Default RE: adoptables

The easiest way would be to incorporate it into the myadoptables.php file so that when an adoptable of the user gets to max level the adoptable gives them a code or coupon. This way too only the owner sees the code.

In myadoptables.php find:

PHP Code:
if($neededclicks 0){
$neededclicks "0 (Max Level)";
}

//Begin our content output...
$article_content=$article_content."<p align='center'><b><u>".$name.":</u></b></p>
<p align='center'><img src='"
.$imageurl."' border='0'></p>
<b>Current level of "
.$name.": ".$currentlevel."<br></b><b>Total clicks on ".$name.": ".$totalclicks."<br></b>
<b>Clicks needed until LevelUP "
.$name.": ".$neededclicks."<br></b><br>
<a href='levelup.php?id="
.$id."'>Click Here to LevelUP ".$name.".</a>  (You can do this once per day)<br>
<a href='manage.php?id="
.$id."&action=bbcode'>Click Here to get BBCODEs for ".$name.".</a> <br>
<a href='manage.php?id="
.$id."&action=delete'>Click Here to Delete (Kill) ".$name.".</a> <br>"
I would change to:

PHP Code:
if($neededclicks 0){
$neededclicks "0 (Max Level)";
$coupon "Your Coupon Code Goes Here, or you can get fancy and use HTML to show an image";
}

//Begin our content output...
$article_content=$article_content."<p align='center'><b><u>".$name.":</u></b></p>
<p align='center'><img src='"
.$imageurl."' border='0'></p>
<b>Current level of "
.$name.": ".$currentlevel."<br></b><b>Total clicks on ".$name.": ".$totalclicks."<br></b>
<b>Clicks needed until LevelUP "
.$name.": ".$neededclicks."<br></b><br>
<a href='levelup.php?id="
.$id."'>Click Here to LevelUP ".$name.".</a>  (You can do this once per day)<br>
<a href='manage.php?id="
.$id."&action=bbcode'>Click Here to get BBCODEs for ".$name.".</a> <br>
<a href='manage.php?id="
.$id."&action=delete'>Click Here to Delete (Kill) ".$name.".</a> <br>";

if(
$coupon != ""){
//If the coupon is not blank, show the coupon
$article_content $article_content."Free Ice Cream Coupon: ".$coupon."<br>";

Basically the above code is very simple and will just output a coupon code to the user. Of course you can get real fancy and generate custom codes for each user or do lots of other fancy things as well, but this will be enough to get you started. :)

Brandon
Reply With Quote