PDA

View Full Version : Templates for EE


Oceanwatcher
23rd of February 2005 (Wed), 12:34
First of all, I must say I like some of the bundled templates for EE well. But there are still things I would like different.

My main problem now is the caption for each picture. It is streched too wide because it resize with the browser window. I wish I could find a template that has a margin on both sides that takes the text in 20 percent on each side. That would look better for the presentation.

Is there a repository for templates anywhere? Or could people upload here in the forum?

Pekka
23rd of February 2005 (Wed), 14:33
Template editing needs only skills in html coding. The page is basically laid out using tables. If you change in pagetemplates/photo/default.php line 167 to

<table border="0" cellspacing="0" cellpadding="0" align="center" width="70%"><tr>

you get narrowed description. Description can also be tied with photo width by putting it into same table as photo (but personally I would like to keep pages elements from jumping around with every photo), like this:

Edit line 92 to

<table border="0" cellspacing="0" cellpadding="0" align="center" width="1"><tr>

Add under </div> at line 113:

<?php
if ($description_text_html != "") {
print "<table border=\"0\"><tr><td>&nbsp;&nbsp;</td><td><p>";
print $description_text_html;
print "<br></p></td><td>&nbsp;&nbsp;</td></tr></table>";
}
?>

and then remove lines 167-190:

<table border="0" cellspacing="0" cellpadding="0" align="center"><tr>

<?php
print $filler_td_html;
?>

<td width="100%">

<?php
if ($description_text_html != "") print "<p><br>";
print $description_text_html;
if ($description_text_html != "") print "<br><br></p>";
?>

</td>

<?php
print $filler_td_html;
?>

</tr>


</table>


The forum accepts attachments in zip format, so feel free to upload templates here.

malum
23rd of February 2005 (Wed), 14:38
you can also put html directly in the description box (which is what I do) wrapping the text in a table.

Oceanwatcher
23rd of February 2005 (Wed), 17:14
Template editing needs only skills in html coding. The page is basically laid out using tables. If you change in pagetemplates/photo/default.php line 167 to

<table border="0" cellspacing="0" cellpadding="0" align="center" width="70%"><tr>

Perfect! Exactly what I needed. Now it looks better. Thanks, Pekka. Only decent Finnish word I learnt was terve (I think). But that does not mean thank you... I know a couple of not so nice ones, but I'll keep that out of the forum. :lol:


The forum accepts attachments in zip format, so feel free to upload templates here.

Anyone?