Page 1 of 1
Trouble with links
Posted: Sat Nov 11, 2006 11:56 pm
by Tavis
Do know wether i got the right section but I recently re-installed S9y , I used a theme i have never used before and customised the links in the top nav bar. But these links give me rearly stupid redirects like
Code: Select all
www.nintelligence.net/serendipitywww.nintelligence.net/smf
Anyone know how to fix this ?
Posted: Sun Nov 12, 2006 12:21 am
by carl_galloway
It looks like your template has the path coded into those links, and then you've added the path all over again. Have a look at your index.tpl where oyu edited the links and see if there is any smarty code before each link, it will most likely be {$serendipityBaseURL}.
If this is that case, then either shorten the url you've added or remove the smarty depending on which choice suits your needs better.
Hope that helps,
Carl
Posted: Sun Nov 12, 2006 10:39 am
by Tavis
Thanks carl , Still got some problems after trying to sort it out , here part of my file.
Code: Select all
-->
<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="stylesheet" type="text/css" href="{serendipity_getFile file=test.css}" />
<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}
<div id="banner_lc">
<div id="banner_rc">
<div id="banner_tc">
<div id="banner_bc">
<div id="banner_bl">
<div id="banner_br">
<div id="banner_tl">
<div id="banner_tr">
<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>
<div id="top_nav">
<a hred="www.nintelligence.net">Home</a>
<a href="www.nintelligence.net/smf">Forum</a>
<a href="www.nintelligence.net/download">Downloads</a>
<a href="www.nintelligence.net/news">News</a>
</div>
</div></div></div></div></div></div></div></div>
{if false}
<div id="content_lc">
<div id="content_rc">
<div id="content_tc">
<div id="content_bc">
<div id="content_bl">
<div id="content_br">
<div id="content_tl">
<div id="content_tr">
<div id="content_inside">
{if $leftSidebarElements > 0}
<div class="left_sidebar_container">
<div id="serendipityleftSideBar">
{serendipity_printSidebar side="left"}
</div></div>
{/if}
{if $rightSidebarElements >0 and $leftSidebarElements <=0}
<div id="content_right_only_position">
{elseif $rightSidebarElements >0 and $leftSidebarElements > 0}
<div id="content_middle_position">
{elseif $rightSidebarElements <=0 and $leftSidebarElements > 0}
<div id="content_left_only_position">
{else}
If you find the part that says
Thats the part that is giving me those weird links. Before the
www.blabla.bla was there it said {$serendipityBaseURL} but i deleted that.
Any ideas ?
Posted: Sun Nov 12, 2006 1:39 pm
by garvinhicking
Hi!
Your problem is easy: You entered invalid links!
You need to use "
http://www...." instead of just "www".
Regards,
Garvin
Posted: Sun Nov 12, 2006 5:21 pm
by carl_galloway
Also, you need tobe careful of using invalid html, your first link reads <a hred= and this must be <a href=
Let us know when your site is complete so we can see it in action, Good luck.
Posted: Mon Nov 13, 2006 5:57 pm
by Tavis
Will do Carl ,Site should be up soon
