Hello, I am having a real problem getting the blog program to install inside of my current website. I went to the admin section and I changed to serendipity embedded on. This changed the blog to all text. I read on the website that I need to change a file. I read this:
The "easier way"
For many users, this setup using a Wrapper-file may sound too complicated (even if it isn't).
Those users could just turn on the embed option option and leave the indexFile set to 'index.php'. And then you would only need to edit your template/yourtemplate/layout.php file and insert all the html/head tags and custom layout at the bottom and top of the file.
This method is easier to setup, and you'll have everything in one layout.php file - but the more flexible way is to use a custom wrapper file. You need to choose one, depending on your knowledge and what you want to achieve.
I dont understand what this means. There is no layout.php file in the main directory where I installed the blog. Then I went to the blog2/templates/default/ and once again no layout.php file. I dont understand how I can change this.
Thank you,
Sean.
Last edited by rockwilda on Mon Apr 28, 2008 4:55 pm, edited 1 time in total.
The way i understand it:
it means you need to create that file in the serendipity theme folder you use and put the 'theme' of your site in it. Then upload the whole thing and it should look like the same as your website
I'm really sorry that you found outdated information about 'Embedding'.
This is an option that was used in older times before we had Smarty Templating. Now the *.tpl files (index.tpl) replaces the code of the layout.php file.
What you know basically only need to do is to change your MyIndex.php file (or whatever you configured as "indexFile" option in the serendipity configuration) and place some code like http://www.s9y.org/123.html in it.
But the preferred way would be to edit your templates index.tpl file and just place the HTML code you want from your other site there.
Sadly I'm a bit short in time, but this forum also contains a lot of information about 'embedding' which you might want to search for...
HTH,
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/