Integrate a plugin into a template

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Integrate a plugin into a template

Post by d_cee »

Hi

is is possible to integrate a plugin into a template so the the plugin does not have to be enabled by the user?

thanks

Dave
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Integrate a plugin into a template

Post by garvinhicking »

Hi!

Yes, you could do that all via config.inc.php, and by injecting your plugin into the global $sreendipity array of plugins. But I don't really suggest to do this.

Plugins should be kept distinct, and not mixed with Themes. That's why people enjoy Serendipity so much - it's not a plugin-pain like WP was. :-)

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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi

thanks Garvin - I'll not do it then :-)

Dave
Post Reply