Page 1 of 1

Customizing footer

Posted: Fri Nov 11, 2005 4:21 pm
by Way
Hello
I'm sorry if that have been posted before, but I use search and many post around in the forum I didn't found it :oops:

Well,
What is the easiest way to add php code in the footer (Example web counter code or Aliks buttons) :?: :!:

I understand that could be made also with (sidebar.tpl) but iltel bit confused with that :oops:

Re: Customizing footer

Posted: Fri Nov 11, 2005 4:31 pm
by garvinhicking
You should create a config.inc.php in your template directory, and register a custom Smarty function for that. You can then use the smarty function in your index.tpl file on the place where you want your footer. This is described in depth on http://www.s9y.org/78.html#A4 and http://www.s9y.org/44.html :)

Best regards,
Garvin

Posted: Fri Nov 11, 2005 10:34 pm
by Way
Well, that’s sound little bit difficult for me :oops: because I'm still under studying Smarty :shock: , if I get some files that’s already have been done than I start to work some changes on them, that’s might be easier :D

Posted: Sat Nov 12, 2005 12:17 pm
by garvinhicking
It's pretty easy, don't be scared! The docs already give some examples, and our .tpl files already make use of Smarty functions. Just have a look and take your time :)

Regards,
Garvin

Posted: Sun Nov 13, 2005 5:26 pm
by Way
I believe that still I'm beginner in this process, and I need time to understand it well, would you please do it for me,

I need jus the files stick in it any example of counter code, then I will change that code my self

Another question, I see in your site http://www.garv.in/serendipity/
That you made a lot of modification in the template, so I'm eager to make that in my site, lot of functions , links , clips and images

Thanks and I appreciate you support

Posted: Mon Nov 14, 2005 12:08 am
by garvinhicking
I can only do it for you if you tell me the PHP code you need in your template -- then, sure, no problem. :)

And yes, I did make a lot of customizations in my smarty template. It's only HTML magic, though. So just take some time to learn it, you'll easily make progress :)

Best regards,
Garvin

Posted: Fri Nov 18, 2005 5:34 pm
by Way
Well thanks for your support

Now I want to get little bit deep in managing templates.

So I want to make my site consist of 3 section (left – center-right) as yours :oops: , so which in which :D to change in the (sidebar.tpl - index.tpl)

Because some function I want to put them in right side :roll: and other functions I want them to be in left side

Posted: Mon Nov 21, 2005 11:49 am
by garvinhicking
For that, you need to change both index.tpl and sidebar.tpl -- but most things can be done with the simple Sidebar Plugin Configuration in Serendipty. A HTML nugget here and there, and you should be done with most of it :)

The index.tpl only defines where the left and sidebar show up. What shows up in the sidebar is controled pretty within Serendipity. :)

Regards,
Garvin

Posted: Mon Nov 21, 2005 4:45 pm
by Way
thanks for your support :oops:

Regards, Way :D