Page 1 of 1
Ads in mainpane
Posted: Mon Jan 03, 2005 5:20 am
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.
Re: Ads in mainpane
Posted: Mon Jan 03, 2005 1:55 pm
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
Posted: Mon Jan 03, 2005 4:33 pm
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.
Posted: Tue Jan 04, 2005 11:49 am
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