Hello forum
I intalled this blog for multiple users. Everything worked fine. But there is one problem. I want to put my own header at the top of the blog so that it will be mixed up with my other pages.
The Installation Docs available on www.s9y.org are only for experts. These are usefull for 90% general people like me. They should be more descriptive and helpful. These should guide the user step by step. I request the community to kindly rewrite the manual and copy of installation manual should be with the software itsel.
Now my problem:
I could not understand what to do. I simly put my header code in the top of index file. But the header does not appear. When I choose the command 'embed' in admin area..... The header now appears but all the other content becomes unformated, means the css style does not work.
Now I request the users and experts please HELP me.
Want to use my own header & footer
-
stm999999999
- Regular
- Posts: 1531
- Joined: Tue Mar 07, 2006 11:25 pm
- Location: Berlin, Germany
- Contact:
I want to insert my own header & footer
Yes !
I have inserted the header in index.tpl of the theme i selected.
The header is comming.
But the real problem is that the style and formating are gone.
I am in trouble please help.
I have inserted the header in index.tpl of the theme i selected.
The header is comming.
But the real problem is that the style and formating are gone.
I am in trouble please help.
-
stm999999999
- Regular
- Posts: 1531
- Joined: Tue Mar 07, 2006 11:25 pm
- Location: Berlin, Germany
- Contact:
You can fix the style problem by including
<link href="style.css" rel="stylesheet" type="text/css">
in your header and copy the style.css from your template map to the serendipity map, or you can change the path to the location where the right style.css is located.
However, having this fixed. If you click comments my header and footer are gone! How to have the page open the comments in the same table with my own content wrapped around it?
<link href="style.css" rel="stylesheet" type="text/css">
in your header and copy the style.css from your template map to the serendipity map, or you can change the path to the location where the right style.css is located.
However, having this fixed. If you click comments my header and footer are gone! How to have the page open the comments in the same table with my own content wrapped around it?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Webber: The comment popup has its own template file: commentpopup.tpl - you need to insert your custom code there as you did with the index.tpl.
HTH,
Garvin
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/
# 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/
Here is the index.tpl
{if $is_embedded != true}
{if $is_xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{else}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
{/if}
<html>
<head>
<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" />
<meta name="Powered-By" content="Serendipity v.{$head_version}" />
<link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" />
<link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2" />
<link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml" />
{if $entry_id}
<link rel="pingback" href="{$serendipityBaseURL}comment.php?type=pingback&entry_id={$entry_id}" />
{/if}
{serendipity_hookPlugin hook="frontend_header"}
</head>
<body>
{else}
{serendipity_hookPlugin hook="frontend_header"}
{/if}
{if $is_raw_mode != true}
<TABLE cellSpacing=0 cellPadding=0 width="780" border=0 >
<TBODY>
<TR>
<TD width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="780" border=0
>
<TR>
<TD><IMG height=49 src="http://www.ifrendz.com/header.gif" width=780></TD></TR>
<TR>
<TD vAlign=center bgColor=#2266BB height=20 align=center valign=center>
<a href="http://www.ifrendz.com/index.php" ><img name="Image1" border="0" src="http://www.ifrendz.com/but1.gif" width="50" height="20"></a>
<a href="http://www.ifrendz.com/inspirations/index.php" ><img name="Image2" border="0" src="http://www.ifrendz.com/but2.gif" width="90" height="20"></a>
<a href="http://www.ifrendz.com/dosti/index.php" ><img name="Image3" border="0" src="http://www.ifrendz.com/but3.gif" width="43" height="20"></a>
<a href="http://www.ifrendz.com/shaadi/index.php" ><img name="Image4" border="0" src="http://www.ifrendz.com/but4.gif" width="57" height="20"></a>
<a href="http://www.ifrendz.com/freeads/index.php" ><img name="Image5" border="0" src="http://www.ifrendz.com/but5.gif" width="70" height="20"></a>
<a href="http://www.ifrendz.com/ecards/index.php" ><img name="Image6" border="0" src="http://www.ifrendz.com/but6.gif" width="55" height="20"></a>
<a href="http://www.ifrendz.com/mboard/mboard.php"><img name="Image7" border="0" src="http://www.ifrendz.com/but7.gif" width="82" height="20"></a>
<a href="http://www.ifrendz.com/gallery/index.php"><img name="Image8" border="0" src="http://www.ifrendz.com/but8.gif" width="100" height="20"></a>
<a href="http://ifrendz.ezthemes.com/jokes/index.php"><img name="Image9" border="0" src="http://www.ifrendz.com/but9.gif" width="50" height="20"></a>
<a href="http://www.ifrendz.com/games/index.html"><img name="Image10" border="0" src="http://www.ifrendz.com/but10.gif" width="55" height="20"></a>
<a href="http://www.ifrendz.com/fun/index.html"><img name="Image11" border="0" src="http://www.ifrendz.com/but11.gif" width="36" height="20"></a>
<a href="http://www.ifrendz.com/blogs/index.php"><img name="Image12" border="0" src="http://www.ifrendz.com/but12.gif" width="46" height="20"></a>
</td></tr></table>
<div id="serendipity_banner">
<h1><a class="homelink1" href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle}</a></h1>
<h2><a class="homelink2" href="{$serendipityBaseURL}">{$head_subtitle|@default:$blogDescription}</a></h2>
</div>
<table id="mainpane">
<tr>
{if $leftSidebarElements > 0}
<td id="serendipityLeftSideBar" valign="top"><div class="sideBarSpacer">{serendipity_printSidebar side="left"}</div></td>
{/if}
<td valign="top" id="content"><div id="contentSpacer">{$CONTENT}</div></td>
{if $rightSidebarElements > 0}
<td id="serendipityRightSideBar" valign="top"><div class="sideBarSpacer">{serendipity_printSidebar side="right"}</div></td>
{/if}
</tr>
</table>
{/if}
{$raw_data}
{serendipity_hookPlugin hook="frontend_footer"}
<div id="copyright">Design <a href="http://garv.in/">Garvin Hicking</a>, Icons <a href="http://tango-project.org/">Tango Project</a></div>
{if $is_embedded != true}
</body>
</html>
{/if}
Now please look it and tell me what to do?
{if $is_embedded != true}
{if $is_xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{else}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
{/if}
<html>
<head>
<title>{$head_title|@default:$blogTitle} {if $head_subtitle} - {$head_subtitle}{/if}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" />
<meta name="Powered-By" content="Serendipity v.{$head_version}" />
<link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" />
<link rel="alternate" type="application/rss+xml" title="{$blogTitle} RSS feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/index.rss2" />
<link rel="alternate" type="application/x.atom+xml" title="{$blogTitle} Atom feed" href="{$serendipityBaseURL}{$serendipityRewritePrefix}feeds/atom.xml" />
{if $entry_id}
<link rel="pingback" href="{$serendipityBaseURL}comment.php?type=pingback&entry_id={$entry_id}" />
{/if}
{serendipity_hookPlugin hook="frontend_header"}
</head>
<body>
{else}
{serendipity_hookPlugin hook="frontend_header"}
{/if}
{if $is_raw_mode != true}
<TABLE cellSpacing=0 cellPadding=0 width="780" border=0 >
<TBODY>
<TR>
<TD width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="780" border=0
>
<TR>
<TD><IMG height=49 src="http://www.ifrendz.com/header.gif" width=780></TD></TR>
<TR>
<TD vAlign=center bgColor=#2266BB height=20 align=center valign=center>
<a href="http://www.ifrendz.com/index.php" ><img name="Image1" border="0" src="http://www.ifrendz.com/but1.gif" width="50" height="20"></a>
<a href="http://www.ifrendz.com/inspirations/index.php" ><img name="Image2" border="0" src="http://www.ifrendz.com/but2.gif" width="90" height="20"></a>
<a href="http://www.ifrendz.com/dosti/index.php" ><img name="Image3" border="0" src="http://www.ifrendz.com/but3.gif" width="43" height="20"></a>
<a href="http://www.ifrendz.com/shaadi/index.php" ><img name="Image4" border="0" src="http://www.ifrendz.com/but4.gif" width="57" height="20"></a>
<a href="http://www.ifrendz.com/freeads/index.php" ><img name="Image5" border="0" src="http://www.ifrendz.com/but5.gif" width="70" height="20"></a>
<a href="http://www.ifrendz.com/ecards/index.php" ><img name="Image6" border="0" src="http://www.ifrendz.com/but6.gif" width="55" height="20"></a>
<a href="http://www.ifrendz.com/mboard/mboard.php"><img name="Image7" border="0" src="http://www.ifrendz.com/but7.gif" width="82" height="20"></a>
<a href="http://www.ifrendz.com/gallery/index.php"><img name="Image8" border="0" src="http://www.ifrendz.com/but8.gif" width="100" height="20"></a>
<a href="http://ifrendz.ezthemes.com/jokes/index.php"><img name="Image9" border="0" src="http://www.ifrendz.com/but9.gif" width="50" height="20"></a>
<a href="http://www.ifrendz.com/games/index.html"><img name="Image10" border="0" src="http://www.ifrendz.com/but10.gif" width="55" height="20"></a>
<a href="http://www.ifrendz.com/fun/index.html"><img name="Image11" border="0" src="http://www.ifrendz.com/but11.gif" width="36" height="20"></a>
<a href="http://www.ifrendz.com/blogs/index.php"><img name="Image12" border="0" src="http://www.ifrendz.com/but12.gif" width="46" height="20"></a>
</td></tr></table>
<div id="serendipity_banner">
<h1><a class="homelink1" href="{$serendipityBaseURL}">{$head_title|@default:$blogTitle}</a></h1>
<h2><a class="homelink2" href="{$serendipityBaseURL}">{$head_subtitle|@default:$blogDescription}</a></h2>
</div>
<table id="mainpane">
<tr>
{if $leftSidebarElements > 0}
<td id="serendipityLeftSideBar" valign="top"><div class="sideBarSpacer">{serendipity_printSidebar side="left"}</div></td>
{/if}
<td valign="top" id="content"><div id="contentSpacer">{$CONTENT}</div></td>
{if $rightSidebarElements > 0}
<td id="serendipityRightSideBar" valign="top"><div class="sideBarSpacer">{serendipity_printSidebar side="right"}</div></td>
{/if}
</tr>
</table>
{/if}
{$raw_data}
{serendipity_hookPlugin hook="frontend_footer"}
<div id="copyright">Design <a href="http://garv.in/">Garvin Hicking</a>, Icons <a href="http://tango-project.org/">Tango Project</a></div>
{if $is_embedded != true}
</body>
</html>
{/if}
Now please look it and tell me what to do?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hina: What's your URL? I guess you have enabled the "URL Rewriting" option in your serendipity configuration, but your server can't handle it...so you need to use "NONE" as "URL Rewriting"?
Regards,
Garvin
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/
# 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/
-
stm999999999
- Regular
- Posts: 1531
- Joined: Tue Mar 07, 2006 11:25 pm
- Location: Berlin, Germany
- Contact:
Dear Gravin,garvinhicking wrote:Hina: What's your URL? I guess you have enabled the "URL Rewriting" option in your serendipity configuration, but your server can't handle it...so you need to use "NONE" as "URL Rewriting"?
Regards,
Garvin
My url is http://www.ifrendz.com/blog/
How can I know that the "URL Rewriting" option is enabled?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
By looking at your URL, I can tell you two things:
1. Your URL Rewriting is disabled (as it shuld be)
2. You have enabled the "Embed" mode of serendipity. That is why no header and footer is displayed. Do not enable this, if you plan on editing your index.tp file. Embed mode is only meant for advanced PHP redirection of custom scripts.
Best regards,
Garvin
By looking at your URL, I can tell you two things:
1. Your URL Rewriting is disabled (as it shuld be)
2. You have enabled the "Embed" mode of serendipity. That is why no header and footer is displayed. Do not enable this, if you plan on editing your index.tp file. Embed mode is only meant for advanced PHP redirection of custom scripts.
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/
# 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/