Customizing footer

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Customizing footer

Post 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:
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Customizing footer

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

thanks for your support :oops:

Regards, Way :D
Post Reply