Ads in mainpane

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
cptnwinky
Regular
Posts: 8
Joined: Mon Oct 11, 2004 1:38 am

Ads in mainpane

Post by cptnwinky »

I would like to place some ads within the mainpane of my blog. I have searched through countless files and can't seem to find where the code that actually makes the mainpane is. I am not exactly a php expert and would appreciate any help I could get.

To illustrate my needs better, I want to place an ad right above the title of an entry.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Ads in mainpane

Post by garvinhicking »

I suggest you to upgrade to Serendipity 0.8 development. There we use Smarty HTML Templating and you can easily modify the files of templates/default/*.tpl - entries.tpl is the file you want to modify.

The best is to create your own template subdirectory and copy the files you want to modify (entries.tpl) there. This way you won't modify the default template and be able to upgrade to future versions easier.

For 0.7 the process is harder since you'd need to know some PHP... (edit serendipity_functions.inc.php, find function serendipity_printEntries()).

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/
cptnwinky
Regular
Posts: 8
Joined: Mon Oct 11, 2004 1:38 am

Post by cptnwinky »

I would love too but it's not production ready yet and with the nature of my site I get quite a few people that would love to find an exploit and take my whole site down. I do look forward to have better template support though, that will be a treat.

Thanks for helping me to know where to look though.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Okay, no problem. However I think that 0.8 is not easier to exploit than 0.7.1 - in fact, some security issues have even been improved in 0.8.

But of course I can't deny that 0.8 is still in development, and it's a choice you have to make, since I don't know a thing about your circumstances...

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/
Post Reply