Trouble with links

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Tavis
Regular
Posts: 9
Joined: Sat Jun 03, 2006 12:50 am

Trouble with links

Post 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 ?
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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
Tavis
Regular
Posts: 9
Joined: Sat Jun 03, 2006 12:50 am

Post 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 ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Your problem is easy: You entered invalid links!

You need to use "http://www...." instead of just "www".

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/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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.
Tavis
Regular
Posts: 9
Joined: Sat Jun 03, 2006 12:50 am

Post by Tavis »

Will do Carl ,Site should be up soon :wink:
Post Reply