Welcome! Log In Create A New Profile

Advanced

when clicking on a search result, new window ?

Posted by nessler 
when clicking on a search result, new window ?
September 05, 2011 09:15PM
Hi, I'm using spider and very happy with it.

Just one thing, I use a search page in a lightbox function, it appears as a pop up.
The results page fits nicely, but I would love to have the links, when clicked on, opening in a new browser window
instead of the smaller pop up.

Can anyone tell me where I need to adjust ?

thanks a bunch in advance, it's probably simple.

Nick
Re: when clicking on a search result, new window ?
September 25, 2011 09:59AM
It very simple, actually. Here example for 1.3.5 (i not use sphider-plus)

Open /templates/standard/search_results.html

find string
<a href="<?php print $url?>" class="title">	<?php print ($title?$title:$sph_messages['Untitled'])?></a><br/>

and change it to
<a target="_blank" href="<?php print $url?>" class="title">	<?php print ($title?$title:$sph_messages['Untitled'])?></a><br/>

just add

target="_blank"
that all! It works for me fine smiling smiley

[code.google.com] - free for all | support [www.sphider.eu]
Sorry, only registered users may post in this forum.

Click here to login