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
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
Customizing footer
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Customizing footer
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
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/
# 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/
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
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
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
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
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 , so which in which to change in the (sidebar.tpl - index.tpl)
Because some function I want to put them in right side and other functions I want them to be in left side
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 , so which in which to change in the (sidebar.tpl - index.tpl)
Because some function I want to put them in right side and other functions I want them to be in left side
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/