Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del kodavimo themes.

Parašė Niger· 2008 Spa. 7 23:10:02
#1

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'>&nbsp;".newsposter($info)."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo openform("N",$info['news_id']).newsopts($info,"&middot;").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,"&middot;").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')\"> &nbsp;$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.

Parašė BeeT· 2008 Spa. 7 23:10:00
#2

vietoj " parašyk '

Parašė Niger· 2008 Spa. 7 23:10:13
#3

BeeT parašė:
vietoj " parašyk '


Visiskai nieko... :| hmzz some body help me... :s

Parašė BeeT· 2008 Spa. 7 23:10:18
#4

Š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ą.

Redagavo BeeT· 2008 Spa. 7 23:10:22

Parašė bad_user· 2008 Spa. 7 23:10:39
#5

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";



Redagavo bad_user· 2008 Spa. 7 23:10:37

Parašė Niger· 2008 Spa. 7 23:10:31
#6

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...

Parašė bad_user· 2008 Spa. 7 23:10:49
#7

ctrl + h

Parašė Niger· 2008 Spa. 7 23:10:19
#8

SoNG parašė:
ctrl + h


;) lieku skoloj bokala :|

Parašė Lite· 2008 Spa. 8 15:10:53
#9

bus pamoka kaip su notepad naudotis :)

Parašė DelluXas· 2008 Spa. 8 16:10:06
#10

Laukiam, laukiam... ;)