[ bolepks @ 24.01.2014. 19:09 ] @
Pratio sam tutorijal http://programiranje.org/post541.html#p541 za pravljnje temlejta i sve odradio kako treba xml stranica kod
Code:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="2.5" type="template" client="site">
    <name>ProgramiranjeOrgJoomlaTemplate</name>     
    <creationDate>August 2012</creationDate>     
    <author>HepeK</author>     
    <copyright>GPL</copyright>     
    <authorEmail>[email protected]</authorEmail>     
    <authorUrl>www.programiranje.org</authorUrl>     
    <version>1.0</version>     
    <description>Pokazna verzija template-a za joomla 1.5</description>     
    <files>
            <filename>index.php</filename>
            <filename>templateDetails.xml</filename>
            <folder>images</folder>
            <folder>css</folder>
    </files>
    <positions>
        <position>gore</position>
        <position>dole</position>
        <position>lijevo</position>
        <position>desno</position>
        <position>footer</position>
        <position>menu</position>
        <position>header</position>
    </positions>
</extension>


index.php
Code:
<?php defined( '_JEXEC' ) or die( 'Restricted access' );?>
<!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"
   xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/template.css" type="text/css" />
<link href="css/template.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="kontejner">
<div class="header"></div>
<div class="meni"><jdoc:include type="modules" name="menu" /> </div>
<div class="wrapper">
    <div class="boxLijevo"><jdoc:include type="modules" name="lijevo" /> </div>
    <div class="boxCentar"><jdoc:include type="component" /></div>
    <div class="boxDesno"><jdoc:include type="modules" name="desno" /> </div>
    <div style="clear: both;"></div>
</div>
<div class="footer"><jdoc:include type="modules" name="footer" /> </div>   
</div>
</body>
</html>


css
Code:
@charset "utf-8";
/* CSS Document */
body{
    background: silver;
    margin: 0;
    padding: 0;
}
.kontejner{
    width: 960px;
    margin: 0 auto 0 auto;
}
 
.header{
    width: 100%;
    height: 150px;
    background: green;
}
.meni{
    width: 100%;
    height: 35px;
    background: yellow;
}
.wrapper{
    width: 100%;
}
.boxLijevo{
    width: 200px;
    float: left;
    background: #8080FF;
}
.boxCentar{
    width: 560px;
    float: left;
    background: #FF8040;
}
.boxDesno{
    width: 200px;
    float: left;
    background: #8080FF;
}
.footer{
    width: 100%;
    background: maroon;
}


Kad pokušam da prebacim preko FTP u folder templates vidi se u folderu ali u panelu ne kao da nije ativna , ali kada zazipujem i preko Joomle javlja grešku Ka pokušam da zazipujem folder pa preko Joomle panela javlja grešku
JInstaller: :Install: File does not exist /home/vol15_5/byethost24.com/b24_14248879/htdocs/joomla/tmp/install_52e2b7c15f9ee/tutorial_template/images


[ Ivan Stojmenovic Ikac @ 04.02.2014. 12:10 ] @
Druze pre svega bih te posavetovao da izbegavas koriscenje externih tutorijala sa googla kad je upitanju programiranje Joomle.

Joomla ima vec svoju dokumentaciju koja se bavi datom tematikom i moze se naci na adresi:
http://docs.joomla.org .

Sto se tice izrade novog template-a imas jako fin tutorijal na stranici :
http://docs.joomla.org/Creating_a_basic_Joomla!_template

Greska koju dobijas prilikom instalacije je u tvom templateDetails.xml fajlu.

Gledajuci tvoj fajl sve izgleda uredu ali postoji tu jedna mala stvar koju ocekuje sam sistem prilikom instalacije.
U svaki direktorijum ubaci fajl pod imenom index.html koji je blanko (prazan).
Joomla prijavljuje gresku jer prazan folder za nju je isto kao i da nepostoji.

Susretao sam se sa ovim problemom vise puta i opet mi se desi da zaboravim da u sve i u root stavim blanko index.html stranice.


Nadam se da sam ti pomogao!