How do I embed my blog into my site...please help
Posted: Sat Apr 12, 2008 3:27 am
Ok i'm lost. I need to know how to embed my blog into a web page. Could someone help me.
Thanks
Thanks
User and developer community
https://board.s9y.org/
Hi sindy; I hope you don't mind me jumping into your thread. I think this second option is also what I want to do with my football site-- recreate it in Serendipity so that people can post comments to what are now just static pages and so I can update the site just by posting new blog entries.judebert wrote:If you just want to add dynamic content to an existing website, it's usually easier to reproduce the existing website within Serendipity. We use Smarty templating for our output. It looks a lot like HTML, but with extra {} among the <>. If you had the savvy to create an HTML + CSS website, you'll find converting it to Smarty pretty simple.
That's what I'm here for!AFC_North wrote:Thank you for your help, judebert! These sorts of instructions are exactly what I needed to start figuring this out.
And it's looking awesome, I must say.AFC_North wrote: I am trying to set up a parallel page to www.afc-north.com at www.afc-north.com/serendipity using s9y.
And that's pretty easily handled by giving each team a category. We've even got a plugin that lets you switch templates when you display a new category.AFC_North wrote:Banner: ... The real intention for the buttons is for them to go to "headquarters" pages for each of the four teams. I figure that if I can turn the site into a blog, I can group articles pertaining to the Ravens on the Ravens headquarter page (famous games, coaches, etc.) and do the same for the other three.
The easiest way to move the buttons around will probably be with the {$view} variable. You can either add a class to the buttons, so they're hidden everywhere except when the desired view is displayed, or use an {if $view == 'whatever'} {/if} to output the HTML only when desired.AFC_North wrote:I'll have to decide if I want those buttons at the top of every page on my site; I'm thinking I may not. Somewhat related to this: I removed the blog title and subtitle. Is that a bad thing to do for the sake of Google searches?
I see the glitch. I don't know why it happens here, but not on the front page; Serendipity and Smarty don't change the way JS works (although you may need to surround your JS with {literal}{/literal} to keep Smarty from interpreting the {} as Smarty commands).AFC_North wrote:Ticker: I was pleasantly surprised to see that the Javascript still works, but there seems to be a glitch-- as soon as the end of the string scrolls on, it instantly jumps back to the beginning instead of giving the visitor time to read the entire message. I wonder if there's a plugin I can replace this with.
I couldn't figure that out either, even using FireBug. Usually it helps me track down these problems in minutes.AFC_North wrote:I don't quite understand how to make each sidebar two separate nuggets.
Left Sidebar: I couldn't figure out what style to change to get rid of the thin blue border around the left sidebar.
Not understanding; sorry. The Serendipity page is a .php file. You might be running into some security features that prevent us from calling PHP from our templates. We have a poll plugin, as I recall. It would probably be more secure to switch over to that.AFC_North wrote:Poll: The poll works with PHP-- the page it's on needs to be changed from .html to .php for it to display, so it's not working.
Progress!AFC_North wrote:Content: I reproduced the "Mark your calendars" post-- this is exactly how I'd like to be able to update my front page!
If you turn them into HTML Nugget plugins (especially if you change the layout to work by CSS) you can decide dynamically, mix and match. Try it out and see what works best for you.AFC_North wrote:Right Sidebars: I put them to the right of the sidebars that I already had on the page by default, since I haven't decided which of those to keep yet.
Bad! Bad designer!AFC_North wrote:OK-- my main question is what to do next. Your Step 4 says to make my intro text "sticky." What is my intro text? The banner at the top, or the "Mark your calendars" post? I already put valign=top into the entire row, so it's already going to display at the top.
We'll be here!AFC_North wrote:Thank you for your help-- I'm looking forward to learning more!
Code: Select all
<?php
if (IN_serendipity !== true) {
die ("Don't hack!");
}
$template_config = array(
array(
'var' => 'ticker_code',
'name' => 'Ticker Code',
'type' => 'text',
'default' => '',
)
);
$template_loaded_config = &serendipity_loadThemeOptions($template_config, $serendipity['smarty_vars']['template_option']);Code: Select all
{if $template_option.ticker_code && $view == 'start' && $staticpage_pagetitle == ''}
<div id="serendipity_below_banner">
{$template_option.ticker_code}
</div>
{/if}