Page 2 of 2
Posted: Tue Oct 04, 2005 11:11 pm
by StarF
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...
Posted: Tue Oct 04, 2005 11:15 pm
by garvinhicking
Sure, just remove those printSidebar commands, that should get you started!
Regards,
Garvin
Posted: Tue Oct 04, 2005 11:16 pm
by StarF
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!
Posted: Tue Oct 04, 2005 11:21 pm
by garvinhicking
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
Posted: Tue Oct 04, 2005 11:28 pm
by StarF
damn sorry for taking up so mouch of your time...
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
Posted: Tue Oct 04, 2005 11:36 pm
by garvinhicking
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
Posted: Tue Oct 04, 2005 11:39 pm
by StarF
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?
Posted: Tue Oct 04, 2005 11:46 pm
by garvinhicking
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
Posted: Tue Oct 04, 2005 11:48 pm
by StarF
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