Register for your free account! | Forgot your password?

You last visited: Today at 18:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



itemshop

Discussion on itemshop within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
dima4308's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 103
Received Thanks: 59
itemshop

hi leute ich will euch mal fragen wie mache ich im mein itemshop sachen rein und coins einstellen welche datei is es in hdocs ordner?
dima4308 is offline  
Old 04/17/2010, 15:40   #2
 
Pae.'s Avatar
 
elite*gold: 214
Join Date: Nov 2009
Posts: 1,427
Received Thanks: 778
Das kommt ganz drauf an, von wem du die Homepage benutzt.
Pae. is offline  
Old 04/17/2010, 15:49   #3
 
dima4308's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 103
Received Thanks: 59
das ist die Php von itemshop:

<style type="text/css">
<!--
body,td,th {
color: #F00;
}
body {
background-color: #000;
}
.shop-pic
{
width: 42;
height: 42;
}
.shop_desc
{
valign: top;
}
FORM {
FONT-FAMILY: Verdana, Arial, Tahoma; FONT-SIZE: 15px; MARGIN: 0px; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px
}
-->
</style>



<?php
mysql_select_db($mysql_db1) OR
die("Die Datenbank konnte nicht benutzt werden.<br /> Fehlermeldung: ".mysql_error());
$id = $_SESSION["user_id"];
$sql = "SELECT * FROM account WHERE id = $id ";
if($_SESSION["user_nickname"]){
echo "<font color=red><center>Deine Münzen : ";
echo $_SESSION["user_coins"];
echo "</center></font>";
echo "<br>";
?>
<!--
<center>
-->
<form action="index.php?site=itemshop" method="post">Kategorie :<select name="cat">
<option value="0">Server-Boni</option>
<?php
$sql = "SELECT * FROM itemshopcats";
$ergebnis = mysql_query($sql);
echo "<center>Kategorien</center><br>";
while($row = mysql_fetch_object($ergebnis))
{
echo "<option value=\"$row->id\">$row->name</option>";
}
?>
</select><input type="submit" name="submit" value="Auswählen" ></form>
</center>
<?php

if(isset($_POST['submit']) && $_POST['submit'] == 'Auswählen') {
$cat = $_POST["cat"] ;
if ($cat == "0" )
{
include("sys/server_boni.php");
}
else
{
?>
<table width="100%" border="1">
<tr>
<td><font color="#000000">Bild</font></td>
<td><font color=blue>Itemname</font></td>
<td><font color="#000000">Beschreibung </font></td>
<td><font color="#FF0000">Münzen</font></td>
<td><font color=brown>Kaufen</font></td>
</tr>
<?php
$sql = "SELECT * FROM itemshop WHERE cat = '$cat'";
$i = "0" ;
$ergebnis = mysql_query($sql);
while($row = mysql_fetch_object($ergebnis))
{
$i = $i + 1 ;
echo "<tr>
<td widtd=\"200\"><img src=\"sys/itemgif/$row->itemid.gif\"/></td>
<td widtd=\"200\"><font color=blue>$row->itemname</font></td>
<td widtd=\"200\"><font color=#000000>$row->beschreibung</font></td>
<td widtd=\"200\"><font color=red>$row->coins</font></td>
<td widtd=\"200\"> <form action=\"index.php?site=shopbuy\" method=\"post\">
<input type=\"hidden\" name=\"itemid\" value=\"$row->itemid\" />
<input type=\"submit\" name=\"submit\" value=\"Kaufen\" />
</form></td>
</tr>";
}
echo "</table>";
}
}
?>
</center>
<?php
} else {
echo "Du must angemeldet sein um den Shop nutzen zu können!";}
?>
dima4308 is offline  
Reply


Similar Threads Similar Threads
ITEMSHOP
12/01/2010 - Metin2 Private Server - 3 Replies
Hey kann mir jemand ma gutes tut schicken die meisten funzen bei mir net z.b das von lucy_gril da komm ich ab localhost/install net weiter weil da fehler kommt habe den itemshop von Kostenlose Subdomains von brauche da ma tut pl
Itemshop
08/07/2010 - Metin2 Private Server - 11 Replies
Hallo, Ich habe Sufu benutz aber, ohne Erfolg und Google hielft auch nicht wirklich in diesen Fall!Zu meiner Frage wie kriege ich ein Itemshop in meiner HP ich weiß nicht wie ich die mit DB verbinde oder was man machen muss und finde nur Ganze HP´s und kriege nicht wirklich den Itemshop gebacken!.. Da ich wenig kenntnisse mit PHP,HTML etc habe kriege ich das auch nicht so leicht hin also wäre nett wenn mir einer ein TuT geben könntet ausführliches oder Persöhnlich helfen wäre auch sehr...
itemshop!!
04/11/2010 - Metin2 Private Server - 0 Replies
hi ich wollte ma fragen, wie ich das autoyangaufheben reinkriege. also das oben in der leiste. in der sufu finde ich nichts. weiß auch nicht so ganz genau was ich eingeben soll. hab schonma nen thread gesehen wo das drinstand, wie es geht. kann mir wer vllt den link sagen oder einfach wie es geht??
itemshop ID´s
01/23/2010 - Metin2 Private Server - 1 Replies
ich knn die itemshop id´s net benutzen !!!
ItemShop .us?
08/20/2009 - Metin2 - 8 Replies
He, ich wollt mich ma erkundigen welche möglichkeiten es gibt um in metin.us im IS aufzuladen.. lg blacky



All times are GMT +1. The time now is 18:05.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.