Intigrating blog into a site

Skinning and designing Serendipity (CSS, HTML, Smarty)
StarF
Regular
Posts: 66
Joined: Thu Sep 29, 2005 4:53 pm
Location: Denmark
Contact:

Post by StarF » Tue Oct 04, 2005 11:11 pm

garvinhicking wrote:In your index.tpl this code emits the Sidebar:

Code: Select all

{serendipity_printSidebar side="left"}
[...]
{serendipity_printSidebar side="right"}


(This is Smarty markup, and the Smarty functions call the serendipity_plugin_api::functions.)

Regards,
Garvin


alright tnx.. would it be legal to simple remove all 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>
</table>


the reason that i am asking before trying, is before i was playing around in the index.tpl file, and everything crewed, so i had to use a hour or more just to get it all to work again.. wouldent that to happen again if i can avoid it...

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Tue Oct 04, 2005 11:15 pm

Sure, just remove those printSidebar commands, that should get you started! :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

StarF
Regular
Posts: 66
Joined: Thu Sep 29, 2005 4:53 pm
Location: Denmark
Contact:

Post by StarF » Tue Oct 04, 2005 11:16 pm

alright figured it all out now :)

the answer for anyone else whit the same limited brain capasity as me is, simple remove

Code: Select all

{serendipity_printSidebar side="right"}


and

Code: Select all

{serendipity_printSidebar side="left"}


all now to do, is to figure out how to style the calender, so it get smaller :)

btw you should try to write this down, in your docs.. think it can save you from many questions in there :)

one last one tough.. is it possible to only call one spefic plugin, like the calander only ?

or can you only call right and left side?

/edit ahh to late!

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Tue Oct 04, 2005 11:21 pm

:)

Actually we did write it down:

http://www.s9y.org/78.html
http://www.s9y.org/43.html
http://www.s9y.org/44.html

The calendar can be styled by its specific template file, the plugin_calendar.tpl. Some plugins have their own *.tpl files, but most of the internal plugins only emit HTML code from within their PHP plugin.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

StarF
Regular
Posts: 66
Joined: Thu Sep 29, 2005 4:53 pm
Location: Denmark
Contact:

Post by StarF » Tue Oct 04, 2005 11:28 pm

garvinhicking wrote::)

Actually we did write it down:

http://www.s9y.org/78.html
http://www.s9y.org/43.html
http://www.s9y.org/44.html

The calendar can be styled by its specific template file, the plugin_calendar.tpl. Some plugins have their own *.tpl files, but most of the internal plugins only emit HTML code from within their PHP plugin.

Best regards,
Garvin


damn sorry for taking up so mouch of your time... :oops:
but its all starting to make more sence now..
any way i plan to pay back for the help.. I will create a new nice theme, if you would liek that, and its possible to submit it to you

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Tue Oct 04, 2005 11:36 pm

No need to feel sorry, that's what I'm here for!

It would be nice if you could create a nice theme, we are always looking for that! :)

Best regards - and have fun,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

StarF
Regular
Posts: 66
Joined: Thu Sep 29, 2005 4:53 pm
Location: Denmark
Contact:

Post by StarF » Tue Oct 04, 2005 11:39 pm

alright i will start doing one, should i just email it, when i am done, and you will validate it and deside if its good enought to use?

one last question also.. the calender.tpl file. if i copy that from the defautl and put it in my new theme, would it automatic be used or?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Tue Oct 04, 2005 11:46 pm

Sure, just announce the theme here in the forums! Then everyone can look at it and I can fetch it to upload it to our repository.

And yes, you can copy the calendar file to your directory and it gets used automatically.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

StarF
Regular
Posts: 66
Joined: Thu Sep 29, 2005 4:53 pm
Location: Denmark
Contact:

Post by StarF » Tue Oct 04, 2005 11:48 pm

Alright tnx for all your help!....

and i will post something with in a few weeks.. just need to understand all the tpl stuff better :)

Post Reply