PDA

View Full Version : search for user's posts autolinking or [] elimination


boatdesign
Sun 23rd Sep '01, 6:20am
When you search for posts by a specific user, I really like the formatting of the results page, except that hyperlinks are not linked and instead have the ugly brackets around them.

I hope that the next release will either
1.) not display the [ brackets ] on the search for posts by user, or
2.) hyperlink the hyperlinks as they are in the rest of the forum (or is there a reason why they are not hyperlinked here?)

tubedogg
Sun 23rd Sep '01, 11:25am
No vB code is parsed in the search results to save having to go through the horrid regexes that run the vB code. It is assumed that you are showing the post to get an idea of it and will link to the actual post if you want to do anything with it (after all, only the first 200 (?) characters are shown).

boatdesign
Sun 23rd Sep '01, 11:38am
I still wish it looked a bit better and was easier to read. I suppose it would take as much cpu to remove the [ bracket code ] as to link the links?

Chen
Sun 23rd Sep '01, 11:42am
If you want to remove the brackets completely from all links remove them from the makelinkcode function in adminfunctions.php:
// ###################### Start makelinkcode #######################
function makelinkcode($text,$url,$newwin=0,$popup="") {
return " <a href=\"$url\"".iif($newwin," target=\"_blank\"","").iif($popup!="","title=\"$popup\"","").">[$text]</a>";
}
If you want to remove it from that place only, just remove the call to makelinkcode and add the link manually.

tubedogg
Sun 23rd Sep '01, 12:03pm
makelinkcode() is only used in the Admin CP. :)

Chen
Sun 23rd Sep '01, 12:06pm
Oh, he's talking about regular searches. Sorry...