Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Problem with search.php

 
Reply to topic    Forum Index » Bugs and errors View previous topic
View next topic
Problem with search.php
Author Message
MemorX



Joined: 20 Mar 2008
Posts: 2

Post Problem with search.php Reply with quote
Hi,

I am having ? problem with the search function of cutenews. Some articles that show up, are not correctly formatted.

Look at the Search function inside the website:

http://playstation.sistestopp.com/side.php?do=search&search=ps3&category=&year=0&month=0&day=0&search_boolean=and

And directly from search.php:

http://playstation.sistestopp.com/cms/search.php?do=search&search=ps3&category=&year=0&month=0&day=0&search_boolean=and

This only happens when the articles are searched..

Looking at the html-code, I find this in the articles that are bad:

Code:
<font size="2"><a href="http://www.sistestopp.com/news.php?id=347"><b><span class="hilite">youtube</span> med hoeyere kvalitet</b></a></font><br>
<img src="images/pil.png" border="0"> 5. Apr 2008 av: <a href="http://www.sistestopp.com/side.php?cat=redaksjon&side=Michael">Michael</a> i <a href="side.php?cat=kat&side=generelt">Generelt</a>, YouTube klipp<br>
Lei av daarlig kvalitet p? <span class="hilite">youtube</span>? Det er naa fordtid!<br>

<p><a href="http://www.sistestopp.com/news.php?id=347">Les mer...</a></p>


The <span class> part is not supposed to be there. Do any of you know where it is coming from?

Thanks.
Fri Apr 11, 2008 3:59 pm View user's profile Send private message
Guest








Please login to hide the ads.

MemorX



Joined: 20 Mar 2008
Posts: 2

Post Reply with quote
I have tried changing the template, but it doesent help. Has anyone had this problem?
Mon Apr 14, 2008 9:58 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2683
Location: Germany

Post Re: Problem with search.php Reply with quote
MemorX wrote:
The <span class> part is not supposed to be there. Do any of you know where it is coming from?

It's added in search.php to highlight the word you searched for.

Find this line (twice) in search.php and remove the span tag from it:
Code:
$result = eregi_replace($whatfind, '<span class="hilite">'.$whatfind.'</span>', $result);

Tue Apr 15, 2008 2:31 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Bugs and errors All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.