Gossamer Forum
Home : Products : DBMan : Customization :

Bug with Search Results

Quote Reply
Bug with Search Results
I don't know if anyone has noticed this, but when you do a search of the database with URLs in them, and you come up with a keyword in the URL, it adds the <B></B> tags in the URL.

For instance, in our database, I search for "Rhode" and it brings up a record for "Jeff Rhode". It bolds "Rhode" and also adds the <B></B> tags in the URL:

http://www.coco.cc.az.us/~j<B>rhode</B>/

This, of course, causes an error. Is there a way to clean up the code so that the URL field will NOT be bolded if the keyword is found in it? (I do want to maintain the bolded text for other fields...nice feature of this program.)

Feel free to take a look at our Employee Directory (using DBMan) at:

http://www.coco.cc.az.us/cgi-bin/dbman/db.cgi

Use the following information to access the
database:

Userid: guest
Password: guest

Thanks for your assistance in advance.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited April 09, 1999).]

[This message has been edited by Eliot (edited April 09, 1999).]
Quote Reply
Re: Bug with Search Results In reply to
What you can do is add a line that will take out the bolding from the URL.

Assuming you have a field called URL, just after

my (%rec) = @_;

add

$rec{'URL'} =~ s/<?.B>//g;




------------------
JPD





Quote Reply
Re: Bug with Search Results In reply to
Thanks! It worked like a charm!

I assume that this could be also used for
the email link.

I will try it.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Bug with Search Results In reply to
Yep. Any time the bold tags might appear where you don't want them to.


------------------
JPD





Quote Reply
Re: Bug with Search Results In reply to
Thanks. I appreciate your speedy responses and support.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us