Zobacz temat
Przerabianie skórki
|
|
airman |
Dodany dnia 16.06.2005 21:44:02
|
Przedszkolak Postów: 8 Data rejestracji: 18.05.2005 20:05 |
Chcialem przerobić skórke do wersji 6.00 i wydawalo mi się że wszystko zrobiłem dobrze. Sprawdzilem kilka razy i ciągle wyskakuje mi taki błąd Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/accounts_a/airman/public_html/themes/z-Heaven/theme.php on line 119 bardzo bym prosił aby ktoś przejżał ten kod i zobaczył czy nie mam czegos źle:) <?
// z-Heaven Theme by zszywak (http://z-themes.prv.pl) // theme settings $body_text = "#000000"; $body_bg = "#FFFFFF"; $theme_width = "100%"; $theme_width_l = "180"; $theme_width_r = "180"; function render_header($header_content) { global $theme_width,$settings,$userdata; echo "<script type='text/javascript' src='".FUSION_THEME."date1.js'></script>"; echo "<table align='center' width='$theme_width' cellspacing='0' cellpadding='0' style='border:0px #444 solid;'> <tr> <td class='login'>\n"; echo "<table width='100%' cellspacing='0' cellpadding='0' height='18px' align='center' valign='middle'>\n<tr>\n<td class='login2'>\n"; include THEME."login.php"; echo "<td align='right' class='login3'> <form name='clock' onSubmit='0'> <input type='text' name='face' class='date' value=''> </form> <script type='text/javascript' language='javascript'> startclock2() </script> </td></tr></table></td> </tr> <tr> <td class='header'> $header_content</td> </tr> </table>\n"; echo "<table width='100%' cellspacing='0' cellpadding='0' style='border-top:0px #333 solid;border-bottom:1px #333 solid;'>\n<tr>\n"; $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_visibility<='".iUSER."' AND link_position>='2' ORDER BY link_order"); if (dbrows($result) != 0) { echo "<td class='header2'>\n"; $i = 1; while($data = dbarray($result)) { if ($data['link_url']!="---") { if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) { echo "<a href='".$data['link_url']."' class='white'>".$data['link_name']."</a>"; } else { echo "<a href='".BASEDIR.$data['link_url']."' class='white'>".$data['link_name']."</a>"; } } if ($i != dbrows($result)) { echo "<b style='color:#0CCFF0'> *</b>\n"; } else { echo "\n"; } $i++; } echo "</td>\n"; } echo "<td align='right' class='header3'>".ucwords(showdate("%A, %d %B, %Y", time()))."</td> </tr> </table> </td> </tr> </table>\n"; echo "<table width='$theme_width' cellspacing='0' cellpadding='0'>\n<tr>\n"; } function render_footer($license=false) { global $theme_width,$settings,$locale; echo "</tr>\n</table>\n"; echo "<table cellpadding='0' cellspacing='0' width='100%'> <tr> <td class='footer'>".stripslashes($settings['footer'])."</td> </tr> </table> </td> </tr> </table> <table align='center' width='$theme_width' cellpadding='0' cellspacing='0' width='100%'> <tr> <td align='center' class='footer2'> <table width='100%' height='20px'> <tr> <td width='25%' style='text-align: left; color: #FFFFFF;'> z-Heaven Theme by <a href='http://mac.aplus.pl/themes/' target='blank' class='white'>zszywak</a> </td><td width='50%' style='text-align: center; color: #FFFFFF;'>"; if ($license == false) { echo "Powered by <a href='http://www.php-fusion.co.uk' class='white'>PHP-Fusion</a> v". sprintf("%.2f", $settings['version']/100)." © 2003-2004</td>"; } echo "<td width='25%' style='text-align: right; color: #FFFFFF;'>".$settings['counter']." ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n"); echo "</td></tr></table>\n"; echo "</td> </tr> </table>\n"; } function render_news($subject, $news, $info) { global $locale; echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'> <tr> <td class='caption'>$subject</td> </tr> <tr> <td class='main-body'> $news </td> </tr> <tr> <td> <table cellpadding='0' cellspacing='0' width='100%'> <tr> <td class='infobar' style='text-align: left'> ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='infobar2'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['news_date'])."</td><td class='infobar' style='text-align: right'> ".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."' class='infobar2'>".$locale['042']."</a> ·\n" : "")." if ($info['news_allow_comments']) echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> ·\n" ".$info['news_reads'].$locale['044']." <a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a> </td> </tr> </table> </td> </tr> </table>\n"; } function render_article($subject, $article, $info) { global $locale; echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'> <tr> <td class='caption'>$subject</td> </tr> <tr> <td class='main-body'>\n"; echo ($info['article_breaks'] == "y" ? nl2br($article) : $article)." </td> </tr> <tr> <td> <table cellpadding='0' cellspacing='0' width='100%'> <tr> <td class='infobar' style='text-align: left'> ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."' class='infobar2'>".$info['user_name']."</a> ".$locale['041'].showdate("longdate", $info['article_date'])."</td><td class='infobar' style='text-align: right'> if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." ·\n"; ".$info['article_reads'].$locale['044']." <a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a> </td> </tr> </table> </td> </tr> </table>\n"; } function opentable($title) { echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'> <tr> <td class='caption'>$title</td> </tr> <tr> <td class='main-body'>\n"; } function closetable() { echo "</td> </tr> </table>\n"; } function openside($title) { echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'> <tr> <td class='side-caption'>$title</td> </tr> <tr> <td class='side-body'>\n"; } function closeside() { echo "</td> </tr> </table>\n"; tablebreak(); } function opensidex($title,$open="on") { $box_img = ($open=="on" ? "off" : "on"); echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'> <tr> <td> <table width='100%' cellpadding='0' cellspacing='0'> <tr> <td class='side-caption'>$title</td> <td class='side-caption' align='right'> <img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".FUSION_THEME."images/panel_$box_img.gif'> </td> </tr> </table> </td> </tr> <tr> <td class='side-body'> <div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n"; } function closesidex() { echo "</div> </td> </tr> </table>\n"; tablebreak(); } function tablebreak() { echo "<table width='100%' cellspacing='0' cellpadding='0'> <tr><td height='8'></td></tr> </table>\n"; } ?> Edytowane przez airman dnia 16.06.2005 21:45:20 |
|
|
Wścibski Gość |
Dodany dnia 24.11.2024 19:32:29
|
Pan Kontekstualny Postów: n^x Data rejestracji: Zawsze |
|
IP: localhost | |
airman |
Dodany dnia 17.06.2005 18:07:56
|
Przedszkolak Postów: 8 Data rejestracji: 18.05.2005 20:05 |
szkoda ze nikt nie chce mi pomoc |
|
|
Alarmus |
Dodany dnia 17.06.2005 20:39:18
|
Przedszkolak Postów: 37 Data rejestracji: 13.06.2005 21:38 |
Być może styl będzie wymagał jeszcze drobnych korekt, adaptowałem go na szybko. Theme z-HEAVEN Plik theme.php login.php |
|
|
zszywak |
Dodany dnia 17.06.2005 21:44:11
|
Bywalec Postów: 382 Data rejestracji: 09.11.2004 23:19 |
z-Heaven jak i pozostałe moje skórki sa juz dostosowane do wersji PHP Fusion 6, można je pobierać ze strony z-themes
|
|
|
Alarmus |
Dodany dnia 17.06.2005 21:47:38
|
Przedszkolak Postów: 37 Data rejestracji: 13.06.2005 21:38 |
To po grzyba się męczyłem?
|
|
Przejdź do forum: |