All right. I am completely new to creating themes for e107 and i need some help if it's okay?
I've just learned to code HTML and CSS but can not write PHP. I asked a month ago what I need to learn to create e107 themes. I got the response HTML and CSS. Here is the post I got the answer: Here
So I've learned HTML and CSS and I think I'm ready to learn to create themes for e107.
First: I have hand coded the HTML and CSS code now with my images and so on. Now I wonder if I should change my .html file to .php format instead?
Second: If i have this layout example:
// [layout]
$layout = "_default";
$HEADER = "
<table>
<tr>
<td colspan='2'>
<h1>{SITENAME}</h1>
<h2>{SITETAG}</h2>
</td>
</tr>
<tr>
<td colspan='2'>
{SITELINKS}
</td>
</tr>
<tr>
<td>
{MENU=1}
</td>
<td>";
// Main Content is placed here between the header and footer.
$FOOTER = "
</td>
</tr>
<tr>
<td colspan='2'>
{SITEDISCLAIMER}
</td>
</tr>
</table>";
The wiki link I provided explains it all. There is one theme.php file in which you include several pieces of code, as instructed per wiki, to render the theme.
Quick tip: the HTML starts where $HEADER is defined
Thanks mate! I have skipped the e107 for now and focuses more on learning HTML and CSS fully. But I will come back when I sure need more help from you guys. hahaha
Thanks mate! I have skipped the e107 for now and focuses more on learning HTML and CSS fully. But I will come back when I sure need more help from you guys. hahaha
I've been using HTML, CSS, and e107 for a number of years. I still learn new things related to HTML and CSS every single time I sit down to code a little bit. I know most of what I know regarding HTML, CSS, and PHP, just by messing with things related to e107.
While I'm not trying to talk you out of setting e107 aside to learn more HTML and CSS at all, you should remember that there is always something more to learn. Especially with how the Internet is growing and changing on a daily basis. What worked well and was the "standard" years ago is outdated and frowned upon now. I'm sure a great deal of what we're using right now will be the same dinosaur technology in a few years.
My overall point is, I guess, why not dive in head first with your initial plan? The theme engine for e107 is extremely easy to use and you can adapt pretty much HTML template into a theme in just a few easy steps. Plus, there are many of us here that will help you along the way if you have any questions or issues crop up.
Just, for the sake of everyone involved, make sure that your questions are semi-detailed so we can pin-point the problem better. The best possible thing to do is show us what isn't working instead of just a blanket "this code doesn't work".
Hopefully, for everyone's sake, some of your questions and issues are tough to tackle. This way we all learn a little bit.
edit: As for your question a few posts up: generally a theme will consist of everything in between the body tags of an HTML file.
Thanks mate! I have skipped the e107 for now and focuses more on learning HTML and CSS fully. But I will come back when I sure need more help from you guys. hahaha
Hopefully, for everyone's sake, some of your questions and issues are tough to tackle. This way we all learn a little bit.
Yep for sure. I've learned a great deal ever since I became active in giving support to other e107 users. There is always more to learn, and that will never stop