Welcome! Log In Create A New Profile

Advanced

How to change $url2 => to show Link to image and not to html

Posted by w_vienna 
How to change $url2 => to show Link to image and not to html
August 16, 2010 07:46PM
I just installed the latest version of Sphider (1.3.5) and everything works great.

I have one directory that works like an image archive.
The files in this directory are called:
001.jpg (the image) and
001.jpg.html (a file that shows the image and description of the image)
002.jpg
002.jpg.html
003.jpg
003.jpg.html
and so on...

Sphider is searching for keywords in this directory and is indexing the 00x.jpg.html files
The search result shows the links to the html files --> <?php print $url2?>

How can i mod Sphider to print/show the image instead of the html file?
e.g show 001.jpg instead of 001.jpg.html

That means how can I change $url2 to strip the .html in the end of the filename?

Thanks for any advice...

w_vienna
Sorry, only registered users may post in this forum.

Click here to login