Seite 1 von 1
Buy Nickpage Privileg im Shop?? Prog. gesucht...
Verfasst: 18.08.2003 17:12
von MeisterMG
Hallo
Ich habe den Nickpage Mod und den Shop Mod bei mir instlliert.
Nun meine Frage: Gib es einen Hack, wo die User erst im Shop die Nickpage kaufen müssen, bevor sie sie einrichten können??
Wenn nicht kann sich mal jemand damit beschäftigen, kenne mich damit leider nicht aus.

Verfasst: 19.08.2003 13:47
von MeisterMG
Hat denn
keiner eine Idee oder kann mir
keiner weterhelfen???

Verfasst: 28.08.2003 13:27
von MeisterMG
Hallo
Ich habe mich schon mal daran versucht, doch leider klappt das kaufen nicht.
habe die admin_shop.php schon angepaßt.
//special graphics shop
if (isset($editspecialshop))
{
$template->set_filenames(array('body' => 'admin/shop_config_body.tpl'));
//
//get special shop info
//
$sql = "select config_value from " . CONFIG_TABLE . " where config_name='specialshop'";
if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Getting Item Info!'); }
$row = mysql_fetch_array($result);
$shoparray = explode("ß", $row['config_value']);
$shoparraycount = count ($shoparray);
$shopstatarray = array();
for ($x = 0; $x < $shoparraycount; $x++)
{
$temparray = explode("Þ", $shoparray[$x]);
$shopstatarray[] = $temparray[0];
$shopstatarray[] = $temparray[1];
if ($temparray[1] == enabled) { $shopstatarray[] = disabled; } if ($temparray[1] == disabled) { $shopstatarray[] = enabled; }
if ($temparray[0] == on) { $shopstatarray[] = off; } if ($temparray[0] == off) { $shopstatarray[] = on; }
}
//
//begin template variable creation
//
$shopinfo = "<form method=\"post\" action=\"".append_sid("admin_shop.".$phpEx)."\"><input type=\"hidden\" name=\"updateeffects\" value=\"Update Effekts\"><tr><td class=\"row2\" colspan=\"2\"><span class=\"gen\"><b> Spezielle Einstellungen</b></span></td></tr><tr><td class=\"row2\"><span class=\"gensmall\">Spezieller Shop </span></td><td class=\"row2\"><select name=\"shopstats\"><option value=\"".$shopstatarray[3]."\">".ucwords($shopstatarray[3])."</option><option value=\"".$shopstatarray[4]."\">".ucwords($shopstatarray[4])."</option></select></td></tr><tr><td class=\"row2\"><span class=\"gensmall\">Name </span></td><td class=\"row2\"><input name=\"shopname\" class=\"post\" type=\"text\" size=\"32\" maxlength=\"32\" value=\"".$shopstatarray[6]."\"></td></tr><tr><td class=\"row2\" colspan=\"2\"><br></td></tr>
<tr><td class=\"row2\" colspan=\"2\"><span class=\"gen\"><b>Privileg Einstellungen</b></span></td></tr><tr><td class=\"row2\"><span class=\"gensmall\">Avatar kaufen</span></td><td class=\"row2\"><select name=\"avatarbuy\"><option value=\"".$shopstatarray[7]."\">".ucwords($shopstatarray[7])."</option><option value=\"".$shopstatarray[9]."\">".ucwords($shopstatarray[9])."</option></select> <input name=\"avatarprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[8]."\"></span></td></tr><tr><td class=\"row2\"><span class=\"gensmall\">Signatur kaufen</span></td><td class=\"row2\"><select name=\"sigbuy\"><option value=\"".$shopstatarray[10]."\">".ucwords($shopstatarray[10])."</option><option value=\"".$shopstatarray[12]."\">".ucwords($shopstatarray[12])."</option></select> <input name=\"sigprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[11]."\"></span></td></tr><tr><td class=\"row2\"><span class=\"gensmall\">Titel kaufen</span></td><td class=\"row2\"><select name=\"titlebuy\"><option value=\"".$shopstatarray[13]."\">".ucwords($shopstatarray[13])."</option><option value=\"".$shopstatarray[15]."\">".ucwords($shopstatarray[15])."</option></select> <input name=\"titleprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[14]."\"></span></td></tr><tr><td class=\"row2\" colspan=\"2\"><br></td></tr>
<tr><td class=\"row2\" colspan=\"2\"><span class=\"gen\"><b>Name Effect Einstellungen</b></span></td></tr><tr><td class=\"row2\"><span class=\"gensmall\">Farbe kaufen</span></td><td class=\"row2\"><select name=\"colorbuy\"><option value=\"".$shopstatarray[16]."\">".ucwords($shopstatarray[16])."</option><option value=\"".$shopstatarray[18]."\">".ucwords($shopstatarray[18])."</option></select> <input name=\"colorprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[17]."\"></span></td></tr><tr><td class=\"row2\"><span class=\"gensmall\">Glanz kaufen</span></td><td class=\"row2\"><select name=\"glowbuy\"><option value=\"".$shopstatarray[19]."\">".ucwords($shopstatarray[19])."</option><option value=\"".$shopstatarray[21]."\">".ucwords($shopstatarray[21])."</option></select> <input name=\"glowprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[20]."\"></span></td></tr><tr><td class=\"row2\"><span class=\"gensmall\">Schatten kaufen</span></td><td class=\"row2\"><select name=\"shadowbuy\"><option value=\"".$shopstatarray[22]."\">".ucwords($shopstatarray[22])."</option><option value=\"".$shopstatarray[24]."\">".ucwords($shopstatarray[24])."</option></select> <input name=\"shadowprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[23]."\"></span></td></tr>
<tr><td class=\"row2\" colspan=\"2\"><br></td></tr>
<tr><td class=\"row2\" colspan=\"2\"><span class=\"gen\"><b>Titel Effect Einstellungen</b></span></td></tr>
<tr><td class=\"row2\"><span class=\"gensmall\">Titelfarbe kaufen</span></td><td class=\"row2\"><select name=\"tcolorbuy\"><option value=\"".$shopstatarray[25]."\">".ucwords($shopstatarray[25])."</option><option value=\"".$shopstatarray[27]."\">".ucwords($shopstatarray[27])."</option></select> <input name=\"tcolorprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[26]."\"></span></td></tr>
<tr><td class=\"row2\"><span class=\"gensmall\">Titelglanz kaufen</span></td><td class=\"row2\"><select name=\"tglowbuy\"><option value=\"".$shopstatarray[28]."\">".ucwords($shopstatarray[28])."</option><option value=\"".$shopstatarray[30]."\">".ucwords($shopstatarray[30])."</option></select> <input name=\"tglowprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[29]."\"></span></td></tr>
<tr><td class=\"row2\"><span class=\"gensmall\">Titelschatten kaufen</span></td><td class=\"row2\"><select name=\"tshadowbuy\"><option value=\"".$shopstatarray[31]."\">".ucwords($shopstatarray[31])."</option><option value=\"".$shopstatarray[33]."\">".ucwords($shopstatarray[33])."</option></select> <input name=\"tshadowprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[32]."\"></span></td></tr>
<tr><td class=\"row2\" colspan=\"2\"><br></td></tr>
<tr><td class=\"row2\" colspan=\"2\"><span class=\"gen\"><b>Benutzereinstellungen</b></span></td></tr>
<tr><td class=\"row2\"><span class=\"gensmall\">Benutzertitel kaufen</span></td><td class=\"row2\"><select name=\"buyctitle\"><option value=\"".$shopstatarray[34]."\">".ucwords($shopstatarray[34])."</option><option value=\"".$shopstatarray[36]."\">".ucwords($shopstatarray[36])."</option></select> <input name=\"ctitleprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[35]."\"></span></td></tr>
<tr><td class=\"row2\"><span class=\"gensmall\">Benutzername wechsel</span></td><td class=\"row2\"><select name=\"buynamec\"><option value=\"".$shopstatarray[37]."\">".ucwords($shopstatarray[37])."</option><option value=\"".$shopstatarray[39]."\">".ucwords($shopstatarray[39])."</option></select> <input name=\"namecprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[38]."\"></span></td></tr>
<tr><td class=\"row2\"><span class=\"gensmall\">Anderen Benutzertitel kaufen</span></td><td class=\"row2\"><select name=\"buycutitle\"><option value=\"".$shopstatarray[40]."\">".ucwords($shopstatarray[40])."</option><option value=\"".$shopstatarray[42]."\">".ucwords($shopstatarray[42])."</option></select> <input name=\"cutitleprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[41]."\"></span></td></tr>
<tr><td class=\"row2\"><span class=\"gensmall\">Nickpage kaufen</span></td><td class=\"row2\"><select name=\"nickpagebuy\"><option value=\"".$shopstatarray[43]."\">".ucwords($shopstatarray[43])."</option><option value=\"".$shopstatarray[9]."\">".ucwords($shopstatarray[45])."</option></select> <input name=\"nickpageprice\" class=\"post\" type=\"text\" size=\"10\" maxlength=\"10\" value=\"".$shopstatarray[44]."\"></span></td></tr>
<tr><td class=\"row2\" colspan=\"2\" align=\"center\"><span class=\"gensmall\"><input class=\"mainoption\" name=\"action\" type=\"submit\" value=\"Update Shop\"></span></td></tr></form>";
//finish template varibable
//
//parse template variables
$template->assign_vars(array(
'SHOPCONFIGINFO' => "$shopinfo",
'SHOPTABLETITLE' => "Modify Special Shop Settings",
'S_CONFIG_ACTION' => append_sid('admin_shop.' . $phpEx),
'SHOPTITLE' => "Shop Editor",
'SHOPEXPLAIN' => "This section allows you to modify the special shop settings.")
);
}
//update special shop
if (isset($updateeffects))
{
$nixkpagebuy = strtolower($nickpagebuy);
$buyuctitle = strtolower($buycutitle);
$buynamec = strtolower($buynamec);
$buyctitle = strtolower($buyctitle);
$tshadowbuy = strtolower($tshadowbuy);
$tglowbuy = strtolower($tglowbuy);
$tcolorbuy = strtolower($tcolorbuy);
$shadowbuy = strtolower($shadowbuy);
$glowbuy = strtolower($glowbuy);
$colorbuy = strtolower($colorbuy);
$titlebuy = strtolower($titlebuy);
$sigbuy = strtolower($sigbuy);
$avatarbuy = strtolower($avatarbuy);
$storestats = strtolower($storestats);
if (strlen($shopname) < 3) { message_die(GENERAL_MESSAGE, 'Shop Name too Short!'); }
if (($shopstats != disabled) && ($shopstats != enabled)) { message_die(GENERAL_MESSAGE, 'Incorrect Setting for Shop Status'); }
if ((($nickpagebuy != on) && ($nickpagebuy != off)) || (!is_numeric($nickpageprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Nickpage Settings'); }
if ((($buycutitle != on) && ($buycutitle != off)) || (!is_numeric($cutitleprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Custom User Title Settings'); }
if ((($buyctitle != on) && ($buyctitle != off)) || (!is_numeric($ctitleprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Custom Title Settings'); }
if ((($buynamec != on) && ($buynamec != off)) || (!is_numeric($namecprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Name Change Settings'); }
if ((($tshadowbuy != on) && ($tshadowbuy != off)) || (!is_numeric($tshadowprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Title Shadow Settings'); }
if ((($tglowbuy != on) && ($tglowbuy != off)) || (!is_numeric($tglowprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Title Glow Settings'); }
if ((($tcolorbuy != on) && ($tcolorbuy != off)) || (!is_numeric($tcolorprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Title Color Settings'); }
if ((($shadowbuy != on) && ($shadowbuy != off)) || (!is_numeric($shadowprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Shadow Settings'); }
if ((($glowbuy != on) && ($glowbuy != off)) || (!is_numeric($glowprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Glow Settings'); }
if ((($colorbuy != on) && ($colorbuy != off)) || (!is_numeric($colorprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Color Settings'); }
if ((($titlebuy != on) && ($titlebuy != off)) || (!is_numeric($titleprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Title Settings'); }
if ((($sigbuy != on) && ($sigbuy != off)) || (!is_numeric($sigprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Signature Settings'); }
if ((($avatarbuy != on) && ($avatarbuy != off)) || (!is_numeric($avatarprice))) { message_die(GENERAL_MESSAGE, 'Error in Buy Avatar Settings'); }
$specialshop = "ßstoreÞ".$shopstats."ßnameÞ".$shopname."ß".$avatarbuy."Þ".$avatarprice."ß".$sigbuy."Þ".$sigprice."ß".$titlebuy."Þ".$titleprice."ß".$colorbuy."Þ".$colorprice."ß".$glowbuy."Þ".$glowprice."ß".$shadowbuy."Þ".$shadowprice."ß".$tcolorbuy."Þ".$tcolorprice."ß".$tglowbuy."Þ".$tglowprice."ß".$tshadowbuy."Þ".$tshadowprice."ß".$buyctitle."Þ".$ctitleprice."ß".$buynamec."Þ".$namecprice."ß".$buycutitle."Þ".$cutitleprice."ß".$nickpagebuy."Þ".$nickpageprice;
//get special shop info
//
$sql = "update " . CONFIG_TABLE . " set config_value='$specialshop' where config_name='specialshop'";
if ( !($db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Updating Special Shop Stats!'); }
$message = "Special Shop erfolgreich aktuallisiert!<br /><br /> Klick <a href=\"".append_sid("admin_shop.".$phpEx."?editspecialshop=editspecialshop")."\">hier</a>, um zu Special Shop Einstellungen zurückzukehren<br /><br /> Klick <a href=\"".append_sid("admin_shop.".$phpEx)."\">hier</a>, um zur Main Shop Konfiguration zurückzukehren<br /><br />Klick <a href=\"".append_sid("index.".$phpEx."?pane=right")."\">hier</a>, um zum Admin Index zurückzukehren.<br /><br />";
message_die(GENERAL_MESSAGE, $message);
}
das rote wurde von mir hinzugefügt, das funkt auch schön im APC.
Aber sie shop_effects.php konnte ich nicht anpassen, da habe ich zu wenig Ahnung. Kann jemand helfen????
Hier ist die
shop_effects.php.txt
PS:
Verfasst: 31.08.2003 10:42
von MeisterMG
Kennt sich denn niemand hier weiter mit dem aus oder traut es sich keiner zu oder möchte keiner helfen????

Verfasst: 05.09.2003 09:56
von MeisterMG
Kann sich denn keiner mal der sache annehmen und mir helfen???
BITTE, BITTE,...
Verfasst: 11.09.2003 14:11
von MeisterMG
Verfasst: 22.09.2003 10:20
von MeisterMG
Findet sich denn kein Programmierer, der mir weiterhelfen kann????