Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
[SOLVED] URLs in search results expanding template (1 viewing) (1) Guest
TOPIC: [SOLVED] URLs in search results expanding template
#49594
[SOLVED] URLs in search results expanding template 8 Months, 2 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
Logged Logged
 
 
#49595
Re:[SOLVED] URLs in search results expanding template 8 Months, 2 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
Logged Logged
 
 
Go to top