I want to embed serendipity into my website the hard way specifically because my content requires it, but I need to figure it out. I used to use CuteNews to do any type of blogging to news posting on my websites but the problem is since it doesnt work w/ MySQL tables its very easy to spam in comments and such, plus obviously does not have the same benefits of this blog script. I looked all around the net and chose this script because it was the only one that SPECIFICALLY stated in its features that you can embed it rather than building around it.
Now to my question (as I feel may be a very simple idea without the answer I want), I want to know how to embed different pieces of the blog (the blog itself, comments, latest comments, latest posts, archive, etc) in different places. If that doesnt make sense, right now as far as embedding I see:
Code: Select all
<?php
echo $serendipity_contents; // Print the variable
?>
All I want to do is have seperate prints for each piece
Code: Select all
<?php
echo $serendipity_latestcomments; // Print the variable
?>
Code: Select all
<?php
echo $serendipity_latestposts; // Print the variable
?>
Code: Select all
<?php
echo $serendipity_blog; // Print the variable
?>
Code: Select all
<?php
echo $serendipity_shoutbox; // Print the variable
?>
and so on... Now I am NOT asking that the codes look or labeled specifically like this ('$serendipity_blog', etc), I only used these codes for the example of what I'm doing... Now though CuteNews had a lot less features and is simply news rather than an official blog, it was easily able to do these things and its imperative that I have them.
Heres an example of the layout:
http://www.***************
Thats my basic layout / I threw in the "latest posts" and "latest comments" and a sample shoutbox just for the sake of design and seeing it as I build it.
Unfortunately if serendipity cant do what I'm asking I think I'm going to have to find something else...
If someone can help me that'd be fantastic.