PDA

View Full Version : Strip VBCode from Search Preview


SFishy
01-28-2003, 01:32 PM
Sorry to post this twice (I originally posted it in reply to another post), but I really need the answer and didn't want the question to get lost in another topic...)

Anyway, it's pretty much what the title says... when the preview comes up in search results it includes the VBCode -- how do I strip that out? I know there's a way to do it as I've seen it as part of other hacks, but I couldn't find the simple answer for a PHP novice like me :p

(ps. I've using v 2.2.5 -- yes I realize I'm behind in the times, but I can't keep spending the time to reinstall hacks so my next upgrade will probably be when version 3 is officially released)

Help please :cheeky:

SFishy
01-29-2003, 11:24 AM
Anyone know the answer to this? I'm figuring someone has to know...

Crinos
01-29-2003, 07:12 PM
bumping this one for you, since I am also curious as to how to get this done :D

SFishy
01-30-2003, 12:42 AM
Thanks Crinos... I keep hoping someone will answer this :cross-eyed:

SFishy
01-30-2003, 05:42 PM
pretty pwease?

Logik
01-31-2003, 01:25 AM
I will see what i can do. Im pretty busy with hacks and PHP scripts that im writting.

SFishy
01-31-2003, 01:06 PM
Thanks Logik! Take this from me, the novice when it comes to programming, but it seems like it's not all that difficult (for someone who does know what they're doing). I've found the code to strip VBCode as part of other hacks

($message=bbcodeparse2($message,0,1,1,1);
or
$page2=bbcodeparse2[$page];
or
$page=iif(strlen($url)>30,substr($post[pagetext],0,30)."..."),$post[pagetext]);
$page=bbcodeparse2($page,1,1,1,1);

I just haven't been able to modify and get it to work in search.php

Thanks so much!

Logik
01-31-2003, 08:12 PM
I doubt i will be able to do it. Im really busy with a hack i want to release.

SFishy
02-04-2003, 07:34 PM
just a bump up for anyone who can figure this out