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§ion=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