Gossamer Forum
Home : Products : Links 2.0 : Customization :

Open links in new window?

Quote Reply
Open links in new window?
Hi,
I just installed Links today, and it went smooth. The tailoring of the templates took a while, but everything comes to an end.

I just wondered if it's possible to have the links to open a new browser window.
I don't want people to leave the site completely...

I think I saw that v1.1 opened a frame and kept the rating bar in the bottom - how can I do that?

Thanks in advance,
Ørjan
Quote Reply
Re: Open links in new window? In reply to
As I understand, you're using templates, not 'site_html.pl' file. If this is the case, then in 'link.html' file change this:

Code:


<ul><li><a class="link" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

<%if Description%>
<span class="descript">- <%Description%></span>
<%endif%>

<%if isNew%>
<small><sup class="new">new</sup></small>
<%endif%>

<%if isPopular%>
<small><sup class="pop">pop</sup></small>
<%endif%>

<small class="date">(Added: <%Date%> Hits: <%Hits%> Rating: <%Rating%> Votes: <%Votes%> ) <a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It</a></small>

</ul>

to this:

Code:


<ul><li><a class="link" target="_new" href="<%db_cgi_url%>/jump.cgi?ID=<%ID%>"><%Title%></a>

<%if Description%>
<span class="descript">- <%Description%></span>
<%endif%>

<%if isNew%>
<small><sup class="new">new</sup></small>
<%endif%>

<%if isPopular%>
<small><sup class="pop">pop</sup></small>
<%endif%>

<small class="date">(Added: <%Date%> Hits: <%Hits%> Rating: <%Rating%> Votes: <%Votes%> ) <a href="<%db_cgi_url%>/rate.cgi?ID=<%ID%>">Rate It</a></small>

</ul>

... just add target="_new" in <a href...> </a> tags.


Regards,

Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net
Quote Reply
Re: Open links in new window? In reply to
Thanks pasha, simple problem, simple solutions Smile
Ørjan