Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP]Błąd przy wgrywaniu theme
Forum PHP.pl > Forum > Przedszkole
-diego-
Taki błąd mi wyskakuje po wgraniu skórki co jest nie tak :

Kod
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /var/www/virtual/ligarf.c0.pl/themes/F1c/theme.php on line 51


Oto kawałek theme.php
Kod
<?

if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

$body_text = "#000";
$body_bg = "#000";
$theme_width = "1090";
$theme_width_l = "200";
$theme_width_r = "250";

function render_header($header_content) {
global $aidlink;
echo "<center><table id='top' width='1090' border='0' cellpadding='0' cellspacing='0'>
    <tr>
        <td colspan='4'>
            <img src='".THEME."images/top/t1.jpg' width='1090' height='81'></td>
    </tr>
    <tr>
        <td rowspan='1'>
            <img src='".THEME."images/top/t2.jpg' width='704' height='118'></td>
        <td class='info' align='center' background='".THEME."images/top/t3.jpg' width='265'>
";

                 if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo "<center>";
echo "<img align='left' src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='70' hight='70' alt='".$data['user_name']."'>";
echo "</center>";

} else {
echo "<center>";
echo "<img align='left' src='".FORUM."/images/brak.gif' width='70' hight='70'>";
echo "</center>";

}

$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");

echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'><font color=white>Edytuj Profil</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'><font color=white>Lista userów</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'><font color=white>Wiadomości";
if ($msg_count) echo "&nbsp;[".sprintf('%u' , $msg_count)."]</a><br>\n";
else echo "</a><br>";

if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {

echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php?aid=6c17a3c99804464a"' style='color: #000;text-decoration: underline;'><font color=white>Panel Administratora</a>\n";
}{
echo"<br><br><center><a href='".BASEDIR."setuser.php?logout=yes' class='side'><font color=white>[ Wyloguj ]</a></center>";

}
} else {

opensidel();

echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."

<form name='loginform' method='post' action='".FUSION_SELF."'>

<input type='text' name='user_name' class='panellogowania_texbox' value='Login' onBlur=\"if(this.value=='') this.value='Login';\" onFocus=\"if(this.value=='Login') this.value='';\" >

<input type='password' name='user_pass' class='panellogowania_texbox' value='has�o' onBlur=\"if(this.value=='') this.value='has�o';\" onFocus=\"if(this.value=='has�o') this.value='';\" ><br>

<input type='checkbox' title='Pamiętaj' value='y' name='remember_me'>

<input type='submit' name='login' value=' ' class='login1'>

<a href='".BASEDIR."register.php' class='side'><input type='button' name='register' value=' ' class='register1'></a>

</form>

<br>\n";

if ($settings['enable_registration']) {

echo "<a href='".BASEDIR."register.php' class='side'>Rejestracja</a>   |   \n";

}

echo "<a href='".BASEDIR."lostpassword.php' class='side'><font color=white>*Zgubione hasło</a>
</div>\n";

}
closesidel();

echo "
        </td>
        <td>
            <img src='".THEME."images/top/t4.jpg' width='121' height='118'></td>
    </tr>
</table>";

echo "<table id='top' width='1000' border='0' cellpadding='0' cellspacing='0'>
    <tr>
        <td colspan='11'>
            <img src='".THEME."images/top/t5.jpg' width='1090' height='36'></td>
    </tr>
</table>\n";

Jak rozwiązać ten problem
Proszę o pomoc
abort
1. Zamień w linii 51 miejscami apostrof z cudzysłowem. tuż przed słowem "style".
2. Znajdź edytor z porządnym podświetlaniem składni.
-diego-
Teraz ta linijka wygląda tak:
Kod
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php?aid=6c17a3c99804464a"' "style" = 'color : #000;text-decoration: underline;'><font color=white>Panel Administratora</a>\n";
}{


Ale nadal jest nie tak dalej ten błąd
Pobrałem program Ked ale wszystko jest na zielono
kadlub
  1. echo '<img src="'.THEME.'images/bullet.gif" alt=""> <a href="'.ADMIN.'index.php?aid=6c17a3c99804464a" style = "color : #000;text-decoration: underline;"><font color="white">Panel Administratora</a>\n';


ja bym w twoim przypadku kod html przy wyświetlaniu za pomocą echo wstawiał w ' '
-diego-
Po wklejeniu tego znowu mi taki błąd wyskakuję :
Kod
Fatal error: Cannot redeclare opensidex() (previously declared in /var/www/virtual/ligarf.c0.pl/themes/f1c/theme.php:304) in /var/www/virtual/ligarf.c0.pl/includes/theme_functions_include.php on line 249
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.