vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Strip VBCode from Search Preview (https://vborg.vbsupport.ru/showthread.php?t=48251)

SFishy 01-28-2003 01:32 PM

Strip VBCode from Search Preview
 
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

Code:

($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


All times are GMT. The time now is 08:23 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02052 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete