Embed into HTML index page

Having trouble installing serendipity?
Post Reply
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Embed into HTML index page

Post by Berg »

Is there a simple way to embed the blog into an html page?

I have been reading some posts here about this issue, but can't seem to find a simple answer as my coding skills are not that great.

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

Re: Embed into HTML index page

Post by garvinhicking »

Hi!

The most easy way is to edit your "index.tpl" Smarty template file to include the usual layout of your page.

Also the s9y.org documentation contains some references about the "Embed" mode. Also this forum is full of embedding-how tos and problems, so you should take a tour around :)

Have fun,
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/
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Post by Berg »

This desribes better want I want to do. Have the latest blog entry appear in my html page.

http://www.s9y.org/forums/viewtopic.php ... ight=embed
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You might want to try the "Show entries via Javascript" event plugin ("serendipity_event_backend"), which allows you to insert some javascript into your homepage to show the latest entries of your blog.

Of course the PHP-way you already found in the thread you linked. :)

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/
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Post by Berg »

The Java plug in sounds like it would do the job, however the plug ins can't connect to the server now, is it down?
I get this:

Trying to open URL package_event_en.xml...
The URL http://netmirror.org/mirror/serendipity ... ent_en.xml could not be opened. Maybe the Serendipity or SourceForge.net Server is down - we are sorry, you need to try again later.
Fetched 203926 bytes from already existing file on your server. Saving file as /home/u4/alphastocks/html/cblog/templates_c/package_event_en.xml...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, did it work previously for you? When I call the mentioned URL, the file is available.

You can also fetch the file from http://spartacus.s9y.org/

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/
Berg
Regular
Posts: 17
Joined: Sat May 20, 2006 5:38 pm

Post by Berg »

I had some issues prior, but it has worked fine recently, maybe it's my host, I use Aplus.net...

I tried to to it the other way, from the link I gave you, but what do I need to do with the index.tpl file?

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

Post by garvinhicking »

Hi!

The index.tpl method actually only applies if you want to embed the complete serendpity installation into an existing webpage, or if you want to apply your own homepage layout into a serendipity template.

For your means, you should best disregard it and focus on either the PHP or the JS solution. :)

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