Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

28275 Posts in 7909 Topics- by 10225 Members - Latest Member: 12nong12
Opensource CMS Community ForumMambo Templatesปัญหาสร้าง temp เองแล้วไม่มีอะไรขึ้นเลย
Pages: [1]   Go Down
Print
Author Topic: ปัญหาสร้าง temp เองแล้วไม่มีอะไรขึ้นเลย  (Read 1790 times)
touchy
มือใหม่หัดโพส
*

Karma: 0
Offline Offline

Posts: 3


Email
« on: February 28, 2010, 11:38:07 am »

คือผมสร้าง temp เองอะครับแล้วทีนี้พอเอามาอัพลงแล้ว
มานขึ้นแต่โล่ง... เองอะครับคือมีแต่ temp นอกนั้นไม่มีอะไรเลย

ข้อความไม่ขึ้น เมนูไม่มี ไมู่รู้ปัญหา่เกิดจากอะไรครับ

นี่ครับ หน้าเว็บ


-------------------------
นี่ code ใน  templateDetails

<?xml version="1.0" encoding="iso-8859-1"?>
<mosinstall type="template" version="1.0">
  <name>temp_az</name>
  <creationDate>date/month/year</creationDate>
  <author>avalance</author>
  <copyright>This template is released under GNU/GPL License.</copyright>
  <authorEmail> mail@mail.com </authorEmail>
  <authorUrl>www.avalance.name</authorUrl>
  <version>1.0</version>
  <description> My First Template </description>
  <files>
    <filename>index.php</filename>
<filename>template_thumbnail.png</filename>
  </files>
</mosinstall>


---------------------------------------
นี่ code ใน index.php

<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
   initEditor();
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link href="<?php echo $mosConfig_live_site;?>/templates/temp_az/css/template_css.css" rel="stylesheet" type="text/css"/>

<style type="text/css">
<!--
body {
   background-color: #FFFFFF;
}
-->
</style></HEAD>
<body>
<center>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (web.psd) -->
<table id="Table_01" width="900" height="1150" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
   <tr>
      <td height="220" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="900" height="220" valign="top">
           <img src="templates/temp_az/images/index_01.jpg" width="900" height="220" alt=""></td>
   </tr>
       </table>      </td>
   </tr>
   <tr>
      <td height="400" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="900" height="400" valign="top">
           <img src="templates/temp_az/images/index_02.jpg" width="900" height="400" alt=""></td>
   </tr>
        </table>      </td>
    </tr>
   <tr>
      <td width="623" height="486" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"background="templates/temp_az/images/index_03.jpg">
        <!--DWLayoutTable-->
        <tr>
          <td width="623" height="49" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
      </tr>
        <tr>
          <td height="437">&nbsp;</td>
         </tr>
        
        
        
        
        
        
        
        
        </table>      </td>
      <td width="277" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="277" height="486" valign="top">
           <img src="templates/temp_az/images/index_04.jpg" width="277" height="486" alt=""></td>
   </tr>
        </table>      </td>
   </tr>
   <tr>
      <td height="44" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <!--DWLayoutTable-->
        <tr>
          <td width="900" height="44" valign="top">
           <img src="templates/temp_az/images/index_05.jpg" width="900" height="44" alt=""></td>
   </tr>
        </table>
      </td>
    </tr>
</table>
<!-- End ImageReady Slices -->
</center>
</body>
</html>



Logged
touchy
มือใหม่หัดโพส
*

Karma: 0
Offline Offline

Posts: 3


Email
« Reply #1 on: February 28, 2010, 11:38:52 am »

ผมไม่รู้เรื่อง จิงๆ ครับ
มือใหม่ด้วย   

ขอความกรุณาหน่อยนะครับ
Logged
ataaha
Jr. Member
**

Karma: 0
Offline Offline

Posts: 81

j_ta48@hotmail.com
Email
« Reply #2 on: March 04, 2010, 10:44:18 pm »

ในไฟล์ xml 
ยังขาดอีกหลายตัวครับ เช่น โฟลเดอร์ css  image   
และไฟล์ทุกตัว ทั้งรูปและไฟล์ css ที่ต้องใช้ในเทมเพลทต้องระบุในไฟล์  xml ด้วยครับ
ไม่ใช่แค่ไฟล์ index.php กะ template_thumbnail.png  เท่านั้นครับ
เพราะโปรแกรมจะอ่านค่าต่างๆ จากไฟล์ xml หากไม่มีชื่อไฟล์ มันจะไม่ก๊อปปี้ไฟล์ไปเก็บบนเซอร์เวอร์
หรือหากกำหนดที่อยู่ของไฟล์ผิดมันก้อจะ

ส่วนในไฟล์ index.php

ยังไม่มีโค้ด php สำหรับใช้งานเลยครับ เช่น <?php mosLoadModules('top',-1); ?>
<?php mosPathWay(); ?> <?php mosLoadModules('left'); ?>  ต่างๆ เหล่านี้เป็นตำแหน่งการแสดงผลต่างๆ ไม่ว่าจะเป็น ทางนำ โมดูลซ้ายขวา  ซึ่งขึ้นอยู่ตามที่เราระบุชื่อใน backen

By GUmaiRU  สักเท่าไร อิอิ

Logged
Pages: [1]   Go Up
Print
Jump to: