[UpDate] ItemShop UpDate for Hen! Script

03/14/2013 08:59 DexterSK#1
Hi epvp :awesome:
I want release mini update for Hen! script :)

What it's is?

Button ,,Buy" for buy items from ItemShop show when ,, your coins >= price"

Screen:
[Only registered and activated users can see links. Click Here To Register...]


How to?

Step 1: Open your itemshop.php in pages folder.
Step 2: Find:
PHP Code:
<tr>
          <td colspan="2" class="isBuy"><a href="index.php?s=is_buy&id=<?PHP echo $getItems->id?>">Kaufen</a></td>
        </tr>
Step 3: Replace with:
PHP Code:
<tr>
        <?php
        
if($_SESSION['user_coins'] >= $getItems->preis)
        {
            echo
'<td colspan="2" class="isBuy"><a href="index.php?s=is_buy&id='.$getItems->id.'">Buy</a></td>';
        }
        else
        {
            echo
'<td colspan="2" class="isBuy"><a href="index.php?s=spenden">Buy Coins</a></td>';
        }
        
?>
        </tr>
That's all :)

Sorry for my bad english.
03/14/2013 09:20 Stαgє6#2
Nich schlecht aber das müsste man besser anpassen ;)
03/14/2013 14:07 mufkeksy#3
Kommt eher hier rein. Nette Idee, ist aber ein kleines Release.
[Only registered and activated users can see links. Click Here To Register...]