I am not sure we are going to implement this as a plugin.
Still.
A friend of mine is building a php "quote of the day" script; it is base don a new table in the mysql db.
Now, we'd like to put the quote in the header, under the blog description.
Here's our weblog:
http://lnx.cnomania.it/serendipity
I guess we should modify the header, and the template skin.
Which is the easier and less obtrusive way to implement this php script into serendipity?
Cheers,
Davide
Putting a script under the blog description
-
- Regular
- Posts: 16
- Joined: Thu Nov 04, 2004 1:05 pm
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Putting a script under the blog description
There are two ways to approach this. The first is to just rewrite the $serendipity['blogDescription'] field with a plugin listening to the frontend_configure hook.
The second way is just like you mentioned to edit the layout.php or index.tpl file (depending on s9y version) to just insert the functionality.
Both of those ways are alright to go
Regards,
Garvin
The second way is just like you mentioned to edit the layout.php or index.tpl file (depending on s9y version) to just insert the functionality.
Both of those ways are alright to go
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/
-
- Regular
- Posts: 16
- Joined: Thu Nov 04, 2004 1:05 pm
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Depending on your plugin you need to modify templates/TEMPLATENAME/layout.php. If no layout.php file exists in your templatedirectory, use templates/default/layout.php...
# 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/