Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Greedy

Użytkownik
  • Postów

    287
  • Dołączył

  • Ostatnia wizyta

O Greedy

  • Urodziny 31.12.1997

Informacje o forum

  • Wersja
    IP.Board 3.4.6
  • Forum
    Forest-RP.com.pl

Kontakt

  • Gadu Gadu
    10880495

Osiągnięcia Greedy

Wschodząca gwiazda

Wschodząca gwiazda (9/14)

  • Pierwszy post
  • Współtwórca
  • Rozpoczęcie dyskusji
  • Pierwszy tydzień zakończony
  • Miesiąc później

Najnowsze odznaki

10

Reputacja

20

Odpowiedzi społeczności

  1. Jeżeli jest taki kod: <fieldset class="row1" id="id_ajax_skins"> To w folderze ajax powinien być plik skins? Bo jeżeli tak to diagnoza zakończona a problem pozostanie bo nie ma też createchar co odpowiada za tworzenie postaci. Createchar znalazłem w folderze character.
  2. Panel jest(był) dostępny w internecie, panel do połączenia serwera SAMP z forum (funkcje tworzenia kont itp.) autora nie znam, panel nie jest podpisany. Ale podejrzewam że albo został celowo zbugowany ponieważ ten panel działał normalnie na serwerze z którego on jest. A dlaczego pytasz?
  3. Siema, mam problem. Przy panelu mam przycisk wybierz wygląd postaci, ma on działać na zasadzie że jak go nacisne, ma wyskoczyć nowe okienko i tam skiny do wybrania i potem do zatwierdzenia, no ale gdy przyciskam ten przycisk to jest brak reakcji, oto wycinek bitu: </fieldset> <fieldset class="submit"> <input type="hidden" name="skin" id="id_char_skin" value="" /> <input type="submit" class="input_submit" id="id_button_createchar" value="Stwórz postać" /> </fieldset> <div style="overflow: auto; width: 1 px; height: 1 px;"> <div id="skins" style="display:none"> <h3 class="bar">Wybierz wygląd nowej postaci</h3> <div style="padding:15px;text-align:center"> <fieldset class="row1" id="id_ajax_skins"> </fieldset> </div> </div> A tu jest ogólny plik tworzenia postaci czyli $newchar po naciśnieciu przycisku stwórz postać (pokazuje błąd bazy danych) <?php if ( ! defined( 'IN_IPB' ) ) exit(); class public_playcountry_ajax_newchar extends ipsAjaxCommand { /** * Class entry point * * @access public * @param object Registry reference * @return void [Outputs to screen] */ public function doExecute( ipsRegistry $registry ) { $gender = $this->request['gender']==1?1:2; $skins = $this->getSkins(true); $skins = $skins[$gender]; $returnSkins = ''; foreach($skins as $skin) { $returnSkins .= '<img src="public/skin/'.$skin.'.jpg" alt="'.$skin.'" class="skinimg" />'; } $this->returnJsonArray((array 'skins' => $returnSkins, )); } static public function getSkins($splitToGender = true) { $db = ipsRegistry::DB(); $db->query('SELECT model,sex FROM fc_skins'); $db->execute(); $returnList = array(); if($splitToGender) { while($row = $db->fetch()) { $returnList[intval($row['sex'])][] = $row['model']; } } else { while($row = $db->fetch()) { $returnList[] = $row['model']; } } return $returnList; } } ?> Jaki jest tutaj problem? Nie moge dojść końca.
  4. Ok zmieniłem hosting i nie ma krzaków już. Ale gdy chce zalożyć postać podaje płeć i wiek i daje dalej, powinno pojawić się to: fieldset class="submit" id="id_shownext_field"> <input type="button" class="input_submit" id="id_shownext_button" value="Dalej" /> </fieldset> <div id="id_next" style="display:none"> <fieldset class="row1"> <h2 class="ipsType_subtitle ipsSettings_pagetitle">Osobowe dane postaci</h2> <ul> <li class="field"> <label for="id_name">Imię</label> <input name="name" id="id_name" class="input_text" style="width:100px" /> <br /> </li> <li class="field"> <label for="id_surname">Nazwisko</label> <input name="surname" id="id_surname" class="input_text" style="width:100px" /> </li> <li class="field"> <input type="button" value="Wybierz wygląd postaci" id="id_skin" class="input_submit center" /> </li> </ul> </fieldset> <fieldset class="submit"> <input type="hidden" name="skin" id="id_char_skin" value="" /> <input type="submit" class="input_submit" id="id_button_createchar" value="Stwórz postać" /> </fieldset> </div> <div style="overflow: auto; width: twoj wymiar px; height: twoj wymiar px;"> <div id="skins" style="display:none"> <h3 class="bar">Wybierz wygląd nowej postaci</h3> <div style="padding:15px;text-align:center"> <fieldset class="row1" id="id_ajax_skins"> </fieldset> </div> </div> (nie cały bit) a zamiast tego pojawia sie komunikat strony Bad request. Jakiś pomysł? Coś z ajaxem?
  5. Jakbyś mógł mi podpowiedzieć jaki błąd (nie domknięta klamra np.) i w jakim module to szukac? Bo to wszędzie sie znajduje a jak wykonuje akcje z ajaxem to mam taki błąd: arning: Invalid argument supplied for foreach() in /home/p468592/public_html/admin/sources/base/core.php on line 2792 Warning: Cannot modify header information - headers already sent by (output started at /home/p468592/public_html/admin/sources/base/core.php:2792) in /home/p468592/public_html/ips_kernel/classAjax.php on line 323 Warning: Cannot modify header information - headers already sent by (output started at /home/p468592/public_html/admin/sources/base/core.php:2792) in /home/p468592/public_html/ips_kernel/classAjax.php on line 326 Warning: Cannot modify header information - headers already sent by (output started at /home/p468592/public_html/admin/sources/base/core.php:2792) in /home/p468592/public_html/ips_kernel/classAjax.php on line 327 Warning: Cannot modify header information - headers already sent by (output started at /home/p468592/public_html/admin/sources/base/core.php:2792) in /home/p468592/public_html/ips_kernel/classAjax.php on line 328 Blokada postaci Test_Test To jest wszędzie na każdej stronie. Prosiłbym o podpowiedź gdzie go szukać i co powoduje ten błąd bo nie mam pojęcia.
  6. Siemka. Gdy wchodze w aplikacje wyskakują na górze przed barem takie błędy: Warning: Invalid argument supplied for foreach() in /admin/sources/base/core.php on line 2792 Warning: Cannot modify header information - headers already sent by (output started at /admin/sources/base/core.php:2792) in /admin/sources/classes/output/formats/html/htmlOutput.php on line 114 Tych z htmlUutput.html jest więcej i tak wyglądają napisy: Nie zaleziono Ĺźadnej z postaci. ZaĹóş jÄ Co to może być?
  7. Siemka. Dzisiaj instalowałem panel SAMP. Wszystko wrzuciłem tam gdzie trzeba czyli: folder z folderami extensions i modules_public do admin/applications_addon/other Dodałem aplikacje i podałem nazwe folderu w lokalizacji. Do tego pakietu był styl forum i plik .xml, myślałem że to grafika do stylu to załadowałem to jako grafike, ok wczytało. Zaczło mnie zastanawiać dlaczego nie ma obrazków, poszedłem w źródło czyli do public/style_images/nazwagrafiki a w środku: templates --> core.xml i forums.xml forums.xml jest puste ale core.xml ma w sobie kod: <?xml version="1.0" encoding="UTF-8"?> -<templates templategroups="a:12:{s:12:"skin_editors";s:5:"exact";s:11:"skin_emails";s:5:"exact";s:11:"skin_global";s:5:"exact";s:17:"skin_global_other";s:5:"exact";s:20:"skin_global_comments";s:5:"exact";s:9:"skin_help";s:5:"exact";s:10:"skin_login";s:5:"exact";s:13:"skin_register";s:5:"exact";s:12:"skin_reports";s:5:"exact";s:11:"skin_search";s:5:"exact";s:10:"skin_stats";s:5:"exact";s:10:"skin_modcp";s:5:"exact";}" application="core"> -<templategroup group="skin_fgaming"> -<template> <template_group>skin_fgaming</template_group> -<template_content> -<![CDATA[<style type="text/css"> .dane{ margin: 0 auto; width: 20% ; } .skin { float: left; } .block:hover { opacity: 1; filter: alpha(opacity = 100); } .characterRow span { font-size: 0.85em; } </style> <h3>{$this->registry->getClass( 'core' )->formatCharacterName( $character['Name'] )}</h3> <div class="ipsBox"> <div class="ipsBox_container"> <div class="ipsPad"> <div class="info"> <dl> <dt>UID</dt> <dd>{$character['UID']}</dd> <dt>Czas gry</dt> <dd>{$character['Godziny']}h {$character['Minuty']}min.</dd> <dt>Ostatnio w grze</dt> <dd>{parse date="gmdate($character['Last'])" format="tiny" relative="true"}</dd> <if test="$this->memberData['member_id'] == $character['OwnerUID'] || $this->registry->getClass( 'core' )->checkAdministratorPermissions( $this->memberData )"> <dt>Ilość gotówki</dt> <dd>$ {parse format_number="$character['Kasa']"}</dd> <dt>Saldo na koncie</dt> <dd>$ {parse format_number="$character['Bank']"}</dd> </if> <dl> <dt>Płeć</dt> <dd><if test="$character['Plec'] == 1">Mężczyzna<else />Kobieta</if></dd> </dl> <dl> <dt>Wiek</dt> <dd>{$character['Wiek']}</dd> </dl> <dl> <dt>Stan</dt> <dd>{$character['HP']}%</dd> </dl> <dt>Aktywna</dt> <dd><if test="$character['Konto'] == 2">Nie<else />Tak</if></dd> <dl> <dt>Siła</dt> <dd>{$character['Sila']}j</dd> </dl><br /> <if test="$this->memberData['member_id'] == $character['OwnerUID'] || $this->registry->getClass( 'core' )->checkAdministratorPermissions( $this->memberData )"> <if test="$character['GM']"> <dt>Poziom gamemastera</dt> <dd>{$character['GM']}</dd> </if> <if test="$character['Admin']"> <dt>Poziom administratora</dt> <dd>{$character['Admin']}</dd> </if> <dt>BW</dt> <dd>{$character['BW']}min.</dd> <dt>Jail</dt> <dd>{$character['Jail']}min.</dd> </if> </dl> </p> </div> </div> </div> <br />]]> </template_content> <template_name>ajax_character</template_name> <template_data>$character</template_data> <template_updated>1372676576</template_updated> <template_removable>1</template_removable> <template_user_added>1</template_user_added> <template_user_edited>1</template_user_edited> <template_master_key/> </template> -<template> <template_group>skin_fgaming</template_group> -<template_content> -<![CDATA[<div id='profile_panes_wrap' class='clearfix'> <div id='pane_core:info' class='ipsLayout ipsLayout_withright ipsLayout_largeright clearfix' <if test="$default_tab != 'core:info'">style='display: none'</if>> <div class='ipsLayout_content'> <div class='general_box clearfix'> <h3>Aktywne kary: <if test="$member['ban'] == 0"> </if><if test="$member['ban'] > 0"><button class="ipsButton_secondary" data-tooltip="Kara wygasa: {parse date="gmdate($member['ban'])" format="tiny" relative="true"}">BAN</button>:</if> <if test="$member['NoRUN'] == 0"> </if><if test="$member['NoRUN'] > 0"><button class="ipsButton_secondary" data-tooltip="Kara wygasa: {parse date="gmdate($member['NoRUN'])" format="tiny" relative="true"}">Blokada biegania</button>:</if> <if test="$member['NoVEH'] == 0"> </if><if test="$member['NoVEH'] > 0"><button class="ipsButton_secondary" data-tooltip="Kara wygasa: {parse date="gmdate($member['NoVEH'])" format="tiny" relative="true"}">Blokada pojazdow</button>:</if> <if test="$member['NoOOC'] == 0"> </if><if test="$member['NoOOC'] > 0"><button class="ipsButton_secondary" data-tooltip="Kara wygasa: {parse date="gmdate($member['NoOOC'])" format="tiny" relative="true"}">Blokada OOC</button>:</if> <if test="$member['NoGUN'] == 0"> </if><if test="$member['NoGUN'] > 0"><button class="ipsButton_secondary" data-tooltip="Kara wygasa: {parse date="gmdate($member['NoGUN'])" format="tiny" relative="true"}">Blokada broni</button></if> </h3> <br /> </div>]]> </template_content> <template_name>aktualnekary</template_name> <template_data/> <template_updated>1372676348</template_updated> <template_removable>1</template_removable> <template_user_added>1</template_user_added> <template_user_edited>1</template_user_edited> <template_master_key/> </template> -<template> <template_group>skin_fgaming</template_group> -<template_content> -<![CDATA[<if test="$member['premium'] > 0"><div class="reputation" style="color: #fff; background: rgb(253,228,86);border-color: #638c13;" data-tooltip="Gracz posiada aktywne konto premium, dziekujemy."> <span class="number"><font color="#000000"><b>{$member['gamescore']}</span>Konto Premium</b></font> </div></if> <if test="$member['premium'] == 0"><div class="reputation" style="color: #fff; background: rgb(149,217,19);border-color: #638c13;" data-tooltip="Punkty zdobyte w grze"> <span class="number">{$member['gamescore']}</span>GameScore</div></if> <br />]]> </template_content> <template_name>gamescore</template_name> <template_data/> <template_updated>1372676369</template_updated> <template_removable>1</template_removable> <template_user_added>1</template_user_added> <template_user_edited>1</template_user_edited> <template_master_key/> </template> -<template> <template_group>skin_fgaming</template_group> -<template_content> -<![CDATA[<div class="ipsPad"> <style type="text/css"> .skinItem, .vehicleItem { padding: 0 0 5px 10px; cursor: pointer; } </style> <if test="count($this->registry->getClass( 'newCharacter' )->errors)"> <p class="message error"> <foreach loop="$this->registry->getClass( 'newCharacter' )->errors as $error"> {$error}<br /> </foreach> </p> </if> <h3 class="ipsType_subtitle ipsSettings_pagetitle">Nowa postać</h3> <form method="post"> <fieldset class="ipsSettings_section"> <h3 class="ipsSettings_sectiontitle">Podaj informacje</h3> <div> <ul> <li class="custom"> <label for="name" class="ipsSettings_fieldtitle">Imię</label> <input data-tooltip="Wpisz imię postaci" type="text" id="name" size="40" maxlength="20" class="input_text" name="name" value="{$this->request['name']}" /> </li> <li class="custom"> <label for="lastname" class="ipsSettings_fieldtitle">Nazwisko</label> <input data-tooltip="Wpisz nazwisko postaci" maxlength="20" type="text" id="lastname" size="40" class="input_text" name="lastname" value="{$this->request['lastname']}" /> </li> <li class="custom"> <label for="age" class="ipsSettings_fieldtitle">Wiek</label> <input maxlength="2" data-tooltip="Wpisz wiek postaci (15-90 lat)" type="text" id="age" size="3" class="input_text" name="age" value="{$this->request['age']}"/> lat </li> <li class="custom"> <label for="sex" class="ipsSettings_fieldtitle">Płeć</label> <select name="sex" id="sex"> <option {$this->registry->getClass( 'newCharacter' )->selected['sex_1']} value="1">Mężczyzna</option> <option {$this->registry->getClass( 'newCharacter' )->selected['sex_2']} value="2">Kobieta</option> </select> </li> <li class="custom"> <div id="skins" class="message unspecific"> <h3 class="ipsSettings_sectiontitle">Wybierz ubranie</h3> <br /> <div class="ipsPad" style="text-align: center;"> <div id="skinsMale" style=" {$this->registry->getClass( 'newCharacter' )->selected['skin_1']} "> <foreach loop="$this->registry->getClass( 'newCharacter' )->skins[1] as $skin"> <img src="{parse url="skin/Skin_{$skin}.png" base="public_dir"}" alt="" class="skinItem" id="{$skin}" style="<if test="$this->request['skin'] && $this->request['skin'] != $skin">opacity: 0.33;</if>" /> </foreach> </div> <div id="skinsFemale" style=" {$this->registry->getClass( 'newCharacter' )->selected['skin_2']} "> <foreach loop="$this->registry->getClass( 'newCharacter' )->skins[2] as $skin"> <img src="{parse url="skin/Skin_{$skin}.png" base="public_dir"}" alt="" class="skinItem" id="{$skin}" style="<if test="$this->request['skin'] && $this->request['skin'] != $skin">opacity: 0.33;</if>" /> </foreach> </div> </div> </div> </li> </ul> </div> <input type="hidden" name="skin" id="skinID" value="{$this->request['skin']}"><br /> <div style="text-align: center;"><input type="submit" name="submit" value="Stwórz" class="input_submit" /><br /></div> </form> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript">jQuery.noConflict();</script> <script type="text/javascript"> jQuery(".skinItem").click( function () { if( jQuery("#skinID").val() != jQuery(this).attr("id")) { jQuery(".skinItem").fadeTo("fast", 0.33); jQuery(this).fadeTo("fast", 1); jQuery("#skinID").val( jQuery(this).attr("id") ); } else { jQuery(".skinItem").fadeTo("slow", 1); jQuery("#skinID").val(""); } }); jQuery("#sex").change( function () { if(jQuery(this).val() == "2") { jQuery("#skinsFemale").slideDown("slow"); jQuery("#skinsMale").slideUp("slow"); } else { jQuery("#skinsMale").slideDown("slow"); jQuery("#skinsFemale").slideUp("slow"); } }); jQuery(".vehicleItem").click( function () { if( jQuery("#vehicleID").val() != jQuery(this).attr("id")) { jQuery(".vehicleItem").fadeTo("fast", 0.33); jQuery(this).fadeTo("fast", 1); jQuery("#vehicleID").val( jQuery(this).attr("id") ); } else { jQuery(".vehicleItem").fadeTo("slow", 1); jQuery("#vehicleID").val(""); } }); var last_class = "<if test="$this->request['class']">{$this->request['class']}<else />1</if>"; var active = "0"; jQuery("#class").change( function () { active = jQuery(this).val(); jQuery("#class_info_" + active).slideDown("slow"); jQuery("#class_info_" + last_class).slideUp("slow"); last_class = active; }); </script> </div>]]> </template_content> <template_name>pageTabCharacters_newCharacter</template_name> <template_data/> <template_updated>1372677213</template_updated> <template_removable>1</template_removable> <template_user_added>1</template_user_added> <template_user_edited>1</template_user_edited> <template_master_key/> </template> -<template> <template_group>skin_fgaming</template_group> -<template_content> -<![CDATA[<style type="text/css"> .characterRow { height: auto; line-height: 12px !important; margin-bottom: 10px !important; width: 100px !important; padding: 5px 10px; text-align: center; width: auto; } .block { opacity: 0.5; filter: alpha(opacity = 50); } .block:hover { opacity: 1; filter: alpha(opacity = 100); } .characterRow span { font-size: 0.85em; } .online { border: 1px solid #149217; } </style> <div class="general_box clearfix" id="characters_list"> <h3>Postacie</h3> <div class="ipsPad"> <if test="count($characters)"> <ul class="ipsList_inline"> <if test="$profile['member_id'] == $this->memberData['member_id']"><a href="{parse url="showuser={$profile['member_id']}&tab=characters&newCharacter=1" base="public"}" class="ipsButton" style="min-width:0;padding:30px;padding-top:45px;padding-bottom:45px;font-size: 95px" data-tooltip="Załóż nową postać">+</a></if> <foreach loop="$characters as $key => $row"> <if test="$row['Online']== 0"> <if test="$row['CzatG1'] > 0"> <li class="ipsButton_secondary characterRow <if test="$row['Konto'] == 2">block</if>" > <a id="characterModalAnchor_{$row['UID']}" href="{parse url="app=fgaming&module=ajax&section=character&uid={$row['UID']}&md5check={$this->member->form_hash}" base=""}"> <img src="http://www.ufast.eu/pics/723328markow.png" alt="" /> <br /> <span>Postac Ukryta</span><br /> <span><br /></span> </a> </li> </if> [.......] Nie daje całości.Może ktoś powiedzieć gdzie powinien znajdować się ten kod z core.xml i dlaczego panel nie działa jest taki błąd: Warning: Invalid argument supplied for foreach() in /admin/sources/base/core.php on line 2792 Warning: Cannot modify header information - headers already sent by (output started at /admin/sources/base/core.php:2792) in /admin/sources/classes/output/formats/html/htmlOutput.php on line 114 I komunikat że nie można tego znaleść. Proszę o pomoc troche ciężka sprawa. Z góry wielkie
  8. Ok poradziłem sobie. Dzieki za pomoc
  9. Każdy ruch forum odświeżenie kontunuacja instalacji i to się robi ;/
  10. Filezilla, jak zawsze. Dobra zauważyłem, zniekształca pliki po przesłaniu. Jak zrobić żeby tak nie robiło?
  11. $INFO[\'sql_driver\'] = \'\'; Obczailem ze chodzi o to że nic nie ma w '', wpisalem 0 to pokazuje kolejna linijke kazda usta linijke.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.