View Full Version : Only show egg image with promo code
RoconzaArt
03-25-2011, 11:01 AM
As the title says I want to only show the egg image when adopting with a promo code.
fadillzzz
03-25-2011, 11:11 AM
Open your adopt.php
Find
$article_title = "Adopting ".$type;
$article_content = $langa1."".$type.$langa2;
$article_content = $article_content."<br><img src='".$eggimage."' border='0'><br>
<form name='form1' method='get' action='doadopt.php'>
<p>Adoptable Name:
<input name='name' type='text' id='name'>
<input name='id' type='hidden' id='id' value='".$id."'>
<input name='promocode' type='hidden' id='promocode' value='".$promocode."'>
</p>
<p>
<input type='submit' name='Submit' value='Adopt Me'>
</p>
</form>";
Replace it with
$article_title = "Adopting ".$type;
$article_content = "<br><img src='".$eggimage."' border='0'><br>
<form name='form1' method='get' action='doadopt.php'>
<p>Adoptable Name:
<input name='name' type='text' id='name'>
<input name='id' type='hidden' id='id' value='".$id."'>
<input name='promocode' type='hidden' id='promocode' value='".$promocode."'>
</p>
<p>
<input type='submit' name='Submit' value='Adopt Me'>
</p>
</form>";
RoconzaArt
03-25-2011, 12:30 PM
I meant I only wanted show the egg image for promo codes not on the main adopt page.
fadillzzz
03-25-2011, 12:39 PM
So you want to show the egg image, but not the form and everything?
RoconzaArt
03-25-2011, 12:43 PM
On the adopt page you see a preview of what your adopting right? I want it so you can not see the preview on the normal adopt page. However you can see a preview of the adoptable on the promo page.
fadillzzz
03-25-2011, 12:51 PM
Oh so you mean, give the users preview on the promo.php and not on the adopt.php?
If so, just remove this from the code I posted above
<img src='".$eggimage."' border='0'>
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.