hehe jest juz ok, zle robilem, a raczej zle zrozumialem, to co mialem wyedytowac i zamiast TEST wstawic tam nazwe szablonuy ktory tworze, a ja tam wpisywalem ogolnie nazwe mojego skina :P juz dziala dzieki
---------
Ale mam teraz pytanie chce sobie tam w nowa ta strone wstawic klienta IRC dokladnie taki kod zamiast tego "Tekst wyswietlany na stronie" wstawiam kod
Kod:
<?php
{
global $context, $scripturl, $boardurl, $modSettings ;
if (isset($modSettings['ircWidth'])) {
$width = $modSettings['ircWidth'];
} else {
$width = '600';
}
if (isset($modSettings['ircHeight'])) {
$height = $modSettings['ircHeight'];
} else {
$height = '450';
}
if (isset($modSettings['ircServer'])) {
$server = $modSettings['ircServer'];
} else {
$server = 'irc.rizon.net';
}
if (isset($modSettings['ircChannels'])) {
$channels = $modSettings['ircChannels'];
} else {
$channels = '#mójkanał';
}
if (isset($modSettings['ircPost'])) {
$suffix = $modSettings['ircPost'];
} else {
$suffix = 'Twój nick';
}
if ($user_info['is_guest']) {
$userchatname = 'MibbitUser' . rand(1,10000);
} else {
$userchatname = $context['user']['name'] . $suffix;
}
$channels = str_replace("#","%23",$channels);
$userchatname = str_replace(" ","_",$userchatname);
$userchatname = str_replace(".","_",$userchatname);
echo' <div style="margin:0 auto;text-align:center">';
echo"
<iframe width=$width height=$height scrolling='no' frameborder='0'
src='http://embed.mibbit.com/?server=" . $server . "&channel=" . $channels . "&nick=" . $userchatname . "&noServerTab=false'>
</iframe></div>";
}
?>
Lecz to nie dziala wchodzac na strone
Kod:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/admin/domains/xxxxxxxxxxxxxx.pl/public_html/test.php(42) : eval()'d code on line 24
Wiec rozumiem ze php nie moge wstawiac w takie "nowe strony" ?
PS:
przy save and reloaded jak zapisuje nowa strone to wywala mi tez to:
Kod:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/admin/domains/xxxxxxxxxxxx.pl/public_html/includes/adminfunctions_template.php(3950) : eval()'d code on line 7
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.