![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 14 Pomógł: 0 Dołączył: 8.07.2010 Ostrzeżenie: (0%) ![]() ![]() |
Jestem nowy, jak zły dział to proszę przenieście.
Czy ktoś z was potrafi napisać kod PHP do wtyczki MyStore do mybb? MyStore jest to sklep, w którym coś kupujemy. Niestety ale tamte przedmioty są że tak powiem, lipne. Czy ktoś z was potrafi napisać krótki kod aby poprzez ten sklep można byłoby kupić: Usnięcie ostrzeżenia? Oto kod jednego z przedmiotów z tej wtyczki może się komus przydać. Cytat <?php function store_stickythread_settings() { $settings=array(array("id"=>"excludedfids","desc"=>"Enter any fids where users can't pin threads. Separate with a comma","title"=>"Excluded Forums","type"=>"textbox")); return $settings; } function store_stickythread_requirements() { $requirements=array(array("id"=>"tid","title"=>"Please enter the thread ID here.","desc"=>"")); return $requirements; } function store_stickythread_purchase() { global $item,$mybb,$db; $settings=unserialize($item['settings']); $forums=explode(",",$settings['excludedfids']); $tid=$db->escape_string($_POST['tid']); $thread=$db->fetch_array($db->simple_select("threads","fid","tid='$tid'")); if (in_array($thread[fid],$forums)) { error("You can sticky threads in this forum"); } else { $db->update_query("threads",array("sticky"=>1),"tid='$tid'"); redirect("store.php","Thread has been successfully stickied"); }} ?> Bardzo proszę was o pomoc, Z góry bardzo dziękuje. Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 459 Pomógł: 26 Dołączył: 1.06.2009 Ostrzeżenie: (0%) ![]() ![]() |
Nie ośmieszaj sie kolego. Ni ząb nie znasz php i nawet nie chcesz sie nauczyc. Skrypt jest łatwy do przeróbki. Ale Twoj problem lezy nie w skrypcie tylko w Tobie bo nie chce Ci sie troche poszukać.
Ten post edytował djgarsi 9.07.2010, 00:40:48 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 05:04 |