Niger
Garbės narys
Antras po Dievo
Pranešimai: 3554
Įstojęs: 2005 Bir. 21 18:06:06
Sveiki, tai man prisireike truputuka pagalbos :|
Zodziu bandau kodinti theme t.y bandau kaip ir mokinuos tai pradedu nuo headerio.
Va themes.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/* Theme Settings */
$body_text = "#000000";
$body_bg = "#c51a1a";
$theme_width = "999";
$theme_width_l = "185";
$theme_width_r = "185";
function render_header($header_content) {
global $theme_width;
echo "<table colspan='10' align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='999' height='375' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td rowspan="4">
<img src='".THEME."images/header_01.jpg" width="170" height="171" alt=""></td>
<td colspan="2" rowspan="2">
<img src='".THEME."images/header_02.jpg" width="162" height="90" alt=""></td>
<td colspan="4">
<img src='".THEME."images/header_03.jpg" width="236" height="80" alt=""></td>
<td colspan="3" rowspan="2">
<img src='".THEME."images/header_04.jpg" width="431" height="90" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="1" height="80" alt=""></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_05.jpg" width="30" height="10" alt=""></td>
<td rowspan="3">
<img src='".THEME."images/header_06.jpg" width="8" height="91" alt=""></td>
<td colspan="2">
<img src='".THEME."images/header_07.jpg" width="198" height="10" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="1" height="10" alt=""></td>
</tr>
<tr>
<td colspan="3" rowspan="2">
<img src='".THEME."images/header_08.jpg" width="192" height="81" alt=""></td>
<td colspan="3">
<img src='".THEME."images/header_09.jpg" width="311" height="55" alt=""></td>
<td rowspan="3">
<img src='".THEME."images/header_10.jpg" width="126" height="134" alt=""></td>
<td rowspan="4">
<img src='".THEME."images/header_11.jpg" width="192" height="182" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="1" height="55" alt=""></td>
</tr>
<tr>
<td colspan="3">
<img src='".THEME."images/header_12.jpg" width="311" height="26" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="1" height="26" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="3">
<img src='".THEME."images/header_13.jpg" width="188" height="204" alt=""></td>
<td colspan="4" rowspan="3">
<img src='".THEME."images/header_14.jpg" width="209" height="204" alt=""></td>
<td colspan="2" rowspan="3">
<img src='".THEME."images/header_15.jpg" width="284" height="204" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="1" height="53" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src='".THEME."images/header_16.jpg" width="126" height="151" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="1" height="48" alt=""></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_17.jpg" width="192" height="103" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="1" height="103" alt=""></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif" width="170" height="1" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="18" height="1" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="144" height="1" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="30" height="1" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="8" height="1" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="27" height="1" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="171" height="1" alt=""></td>
<td>
<<img src='".THEME."images/spacer.gif" width="113" height="1" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="126" height="1" alt=""></td>
<td>
<img src='".THEME."images/spacer.gif" width="192" height="1" alt=""></td>
<td></td>
</tr>
</table>\n";
tablebreak();
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</tr>\n</table>\n";
echo "<table cellpadding='2' cellspacing='0' width='$theme_width' class='footer'><tr>";
echo "<td>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td height='28' width='35%' class='footer' align='left'><div align='left'>";
if ($license == false) {
echo "Teises priklauso: ERONET.US<br>";
echo "Varikliukas: PHP -Fusion";
}
echo "</div></td>";
echo "<td class='footer' height='28' width='20%'align='center'>".stripslashes($settings['footer'])."";
echo "<td class='footer' height='28' width='35%' align='right'>";
echo "<font class='visits'><b>".$settings['counter']." </b></font>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table></td>";
echo "</tr></table></td></tr></table>";
echo "<td width='25' nowrap='nowrap' class='righttd'></td></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table bgcolor='#ABA8A0' class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panele'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'> ".newsposter($info)."</td>";
echo "<td height='24' align='right' class='news-footer'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table bgcolor='#ABA8A0' class='border2' cellspacing='0' width='100%' cellpadding='3'><tr>";
echo "<td class='panel'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>".articleposter($info)."</td>";
echo "<td height='25' align='right' class='news-footer'>";
echo openform("A",$info['article_id']).articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr height='3px'><td></td></tr>
<tr>
<td class='panel2'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
// Close table end
function closetable() {
echo "</td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table bgcolor='#ABA8A0' border='0' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "$title</td></tr>";
echo "<tr><td bgcolor='#BAB7AE' class='side-body' width='100%'>";
}
function closeside() {
echo "</td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table bgcolor='#ABA8A0' border='0' cellspacing='0' width='100%' cellpadding='0'><tr>";
echo "<td width='100%' class='panel'>";
echo "<img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' alt='' onclick=\"javascript:flipBox('$boxname')\"> $title";
echo "</td></tr>";
echo "<tr><td bgcolor='#BAB7AE' class='side-body' width='100%'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div></td></tr></table>";
tablebreak();
}
// Table functions
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Meta klaida: Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in
Tai ta eilute pabraukiau raudonai.
Ir nesuprantu kas ten blogai :( gal jus suprantat???
Aciu kas pahelpins... 10+ kaip visada. s.k.y.p.e - pavojuz
BeeT
Narys
Kapitonas
Pranešimai: 551
Įstojęs: 2008 Rugs. 7 23:09:04
vietoj " parašyk 'Ateik tu irgi esi sąraše!
Niger
Garbės narys
Antras po Dievo
Pranešimai: 3554
Įstojęs: 2005 Bir. 21 18:06:06
BeeT parašė:
vietoj " parašyk '
Visiskai nieko... hmzz some body help me... s.k.y.p.e - pavojuz
BeeT
Narys
Kapitonas
Pranešimai: 551
Įstojęs: 2008 Rugs. 7 23:09:04
Šiaip aš galvojau, kad tipo dėl negalimu ženklų čia tai va pamačiau " tia ir pagalvojau, kad ten klaida..... Nežinau tada tuoj gal kas šaus į galvą.Ateik tu irgi esi sąraše! Redagavo
BeeT 2008 Spa. 7 23:10:22
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
echo "<table colspan='10' align='center' cellspacing='0' cellpadding='0' width='$theme_width'>
<tr>
<td>
<table width='999' height='375' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td rowspan='4'>
<img src='".THEME."images/header_01.jpg' width='170' height='171' alt=''></td>
<td colspan='2' rowspan='2'>
<img src='".THEME."images/header_02.jpg' width='162' height='90' alt=''></td>
<td colspan='4'>
<img src='".THEME."images/header_03.jpg' width='236' height='80' alt=''></td>
<td colspan='3' rowspan='2'>
<img src='".THEME."images/header_04.jpg' width='431' height='90' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='80' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_05.jpg' width='30' height='10' alt=''></td>
<td rowspan='3'>
<img src='".THEME."images/header_06.jpg' width='8' height='91' alt=''></td>
<td colspan='2'>
<img src='".THEME."images/header_07.jpg' width='198' height='10' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='10' alt=''></td>
</tr>
<tr>
<td colspan='3' rowspan='2'>
<img src='".THEME."images/header_08.jpg' width='192' height='81' alt=''></td>
<td colspan='3'>
<img src='".THEME."images/header_09.jpg' width='311' height='55' alt=''></td>
<td rowspan='3'>
<img src='".THEME."images/header_10.jpg' width='126' height='134' alt=''></td>
<td rowspan='4'>
<img src='".THEME."images/header_11.jpg' width='192' height='182' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='55' alt=''></td>
</tr>
<tr>
<td colspan='3'>
<img src='".THEME."images/header_12.jpg' width='311' height='26' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='26' alt=''></td>
</tr>
<tr>
<td colspan='2' rowspan='3'>
<img src='".THEME."images/header_13.jpg' width='188' height='204' alt=''></td>
<td colspan='4' rowspan='3'>
<img src='".THEME."images/header_14.jpg' width='209' height='204' alt=''></td>
<td colspan='2' rowspan='3'>
<img src='".THEME."images/header_15.jpg' width='284' height='204' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='53' alt=''></td>
</tr>
<tr>
<td rowspan='2'>
<img src='".THEME."images/header_16.jpg' width='126' height='151' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='48' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/header_17.jpg' width='192' height='103' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='1' height='103' alt=''></td>
</tr>
<tr>
<td>
<img src='".THEME."images/spacer.gif' width='170' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='18' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='144' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='30' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='8' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='27' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='171' height='1' alt=''></td>
<td>
<<img src='".THEME."images/spacer.gif' width='113' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='126' height='1' alt=''></td>
<td>
<img src='".THEME."images/spacer.gif' width='192' height='1' alt=''></td>
<td></td>
</tr>
</table>\n";
Niger
Garbės narys
Antras po Dievo
Pranešimai: 3554
Įstojęs: 2005 Bir. 21 18:06:06
SONG mano didvyris !!! Ir dabar pasakyk paslapty kaip tu taip greitai sukeiteliojai tuos " ' rankiniu budu ??? nes man per ps kaip sukarpo padaro viska su "
Ten dar themes netixlumu yra atvaizdavime bet zinau kaip ten spresti... s.k.y.p.e - pavojuz
bad_user
Narys
Antras po Dievo
Pranešimai: 4956
Įstojęs: 2007 Spa. 26 20:10:01
ctrl + h
Niger
Garbės narys
Antras po Dievo
Pranešimai: 3554
Įstojęs: 2005 Bir. 21 18:06:06
SoNG parašė:
ctrl + h
lieku skoloj bokala s.k.y.p.e - pavojuz
Lite
Narys
Pulkininkas
Pranešimai: 410
Įstojęs: 2008 Rugp. 13 13:08:22
bus pamoka kaip su notepad naudotis
DelluXas
Narys
Margas
Pranešimai: 113
Įstojęs: 2007 Gru. 29 14:12:56
Laukiam, laukiam... Dirbu su grafika, darau viską! Paišau/Koduoju tinklalapius. Daugiau informacijos - PM.
Peršokti į forumą:
Žaliems
Nebeegzistuojančios svetainės
Bendri PHP-F klausimai
WordPress
Kiti PHP, HTML, MySQL klausimai
Expert PHP, MySQL klausimai
Kitos TVS
C#, Python, Java, JS, C++ klausimai
Naujų modų pristatymai
Mods, Panels & Infusions
Themes
Dalinuosi, dovanoju!
Jūsų saitai
Klausimai apie domenus ir hostingus
VPS/DS serverių konfigūravimas ir valdymas
Viskas apie skaitliukus, top'us ir lankomumą
Dizaino konkursai
Parduodu - perku dizainą, banerį
Parduodu - perku - keičiuosi reklama
Parduodu - perku domeną, tinklapį
Siūlau - ieškau hostingo/VPS serverio
Parduodu - perku skriptą, modifikaciją, tvs
Socialiniai tinklai - Facebook ir kiti
Legalus verslas, teisiniai klausimai
Visa kita kas susiję su darbu ir pinigais
LTStartups.com - Lietuvos startuolių bendruomenė
Off-Topic diskusijos
IT naujienos
Portalo informacija
Narių pasiūlymai
Geležis ir programinė įranga
Grafika
Out Of Place
Su e-verslu nesusijęs darbas ir prekyba
Dalinuosi, dovanoju!