Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC:
#49594
[SOLVED] URLs in search results expanding template 2 Months, 3 Weeks ago  
Hi,

I had an issue with long URLs in search results.
Because an URL is one word there is no word wrap and the template is beeing expanded.

Example URL:
Code:

http://www.domain-domain.tld/advanced_search_result.php?keywords=suppe+nudel+ruschin&x=0&y=0


My Template has a content width of 600px, the above text in the search result expanded it to 691px.

To fix this i altered the file
Code:

components/com_fireboard/sources/fb_search.class.php

on line 263, i added afterwards:

Code:

$searchResultList = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "[<a href=\"\\0\">URL</a>]", $searchResultList);


Now all Links in the search results are replaced with a hyperlink and the text [URL].

Cheers, 05282
05282 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Germany
 
The administrator has disabled public write access.  
#49595
Re:[SOLVED] URLs in search results expanding template 2 Months, 3 Weeks ago  
[... sorry, i guess it is the wrong board, when it is deleted I will post it in the right place..]
05282 (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Germany
 
The administrator has disabled public write access.  
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop