Theme question

Skinning and designing Serendipity (CSS, HTML, Smarty)
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

Hm. I'm not 100% sure, but I don't think we already gave your template an index.tpl, did we? If we didn't, it would be pretty circumstantial to do so just to give it a copyright footer - why don't you do that one in the sidebar using the HTML Nugget sidebar plugin? That will be shown on any page, too.

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

YellowLed wrote:Hm. I'm not 100% sure, but I don't think we already gave your template an index.tpl, did we? If we didn't, it would be pretty circumstantial to do so just to give it a copyright footer - why don't you do that one in the sidebar using the HTML Nugget sidebar plugin? That will be shown on any page, too.
YL
Hi YL no I don't got a 'index.tpl' within the template dir. I can create one but what kind of code does it need to contain just the text (c) all rights reserved ?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:Hi YL no I don't got a 'index.tpl' within the template dir. I can create one but what kind of code does it need to contain just the text (c) all rights reserved ?
No, you'd have to copy the index.tpl from /templates/default to your theme directory (s9y_thin, if it's still called that way) and edit it like this:

Code: Select all

{if $is_embedded != true}
<div id="footer">
        <p>© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></p>
</div>
However, that footer might need additional CSS code, but I don't have time for that right now. Let's see how it looks without any, then we can fix it if necessary.

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

Morning YL, I copied the index.tpl from the default template to the w9y_thin template dir. but no succes.... i don't see anything.... :(

To do this with the HTML nugget how can this be done? I already got 1 nugget with a link to my portfolio. can i create a 2nd nugget and place this at the bottom (portfolio is in the middle)
Last edited by carlitocabana on Fri Feb 09, 2007 10:40 am, edited 1 time in total.
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:Morning YL, I copied the index.tpl from the default template to the w9y_thin template dir. but no succes.... i don't see anything.... :(
Hohum. That's strange. Did you actually edit the copied index.tpl and add the code I posted?

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

Well if i only paste the code you told i get a white page with an error
If i add the following code

<div id="footer">
<p>© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></p>
</div>

after the code

{if $is_embedded != true}

I get the footer on top of the page :)
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

I gotta take a closer look at this in my test blog over the weekend. Might take until Sunday night, sorry.

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

YellowLed wrote:I gotta take a closer look at this in my test blog over the weekend. Might take until Sunday night, sorry.

YL
*kick* found anything? :oops:
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:*kick* found anything? :oops:
Ouch :)

I'm terribly sorry, I almost forgot about that one. Let's get going: Copy a fresh index.tpl from /templates/default to your template directory and edit it like this:

Code: Select all

<table id="mainpane">
    <tr>
{if $leftSidebarElements > 0}
        <td id="serendipityLeftSideBar" valign="top">{serendipity_printSidebar side="left"}</td>
{/if}
        <td id="content" valign="top">{$CONTENT}</td>
{if $rightSidebarElements > 0}
        <td id="serendipityRightSideBar" valign="top">{serendipity_printSidebar side="right"}</td>
{/if}
    </tr>
    <tr id="footer">
        <td>© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></td>
    </tr>
</table>
That's it, right?

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

Almost YL it's at the bottom now :) as you can see on my blog now.
But I like it more when it's centered.
Also it's now on the left menu and stretches my left menu bar out of proportion.
Anyway to fix this? :shock:
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:But I like it more when it's centered. Also it's now on the left menu and stretches my left menu bar out of proportion.
Edit your index.tpl like this:

Code: Select all

    <tr id="footer">
        <td colspan="3">© 2007 carlitocabana all rights reserved | Design: carlitocabana & <a href="http://www.yellowled.de">YellowLed</a></td>
    </tr>
and add this:

Code: Select all

#footer { text-align: center; }
to your style.css. That should do the trick.

YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

OMG YellowLed you did it again hehe it's awesome :)
BTW a little request.... :oops:
Can the footer text be boxed (from left to right side of the page index)?
See below:

___________________________________
| FATSHARK |
| |
| |
------------------------------------------------
| footer text (c) all rights reserved etc.... |
-------------------------------------------------
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:Can the footer text be boxed (from left to right side of the page index)?
Something like this?

Code: Select all

#footer td { padding: 1em; border-top: 1px solid #000; }
YL
carlitocabana
Regular
Posts: 38
Joined: Tue Jan 16, 2007 5:25 pm

Post by carlitocabana »

YellowLed wrote:
carlitocabana wrote:Can the footer text be boxed (from left to right side of the page index)?
Something like this?

Code: Select all

#footer td { padding: 1em; border-top: 1px solid #000; }
YL
Damn your right again :D thanx
Is there a way to get the box smaller in height perhaps?
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Post by yellowled »

carlitocabana wrote:
YellowLed wrote:

Code: Select all

#footer td {
   padding: 1em;
   border-top: 1px solid #000;
}
Is there a way to get the box smaller in height perhaps?
Sure. Right now, the height of the box is determined by "padding: 1em;". Have a look at it with padding: 0.5em; or padding: 0.25em; - if even that's too much, leave out the padding line altogether.

YL
Post Reply