vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Would this hack slaughter performance? (https://vborg.vbsupport.ru/showthread.php?t=70026)

VodkaFish 09-30-2004 02:54 PM

Would this hack slaughter performance?
 
I'm thinking of making a hack for my hockey site that goes like this:
I have team pages (player pages too)... and when people post to the board I'd like the names of teams to be automatically converted. So, I'd like a search and replace so when someone types New York Islanders, that would be linked to the team page. What I did do is create a separate bbcode for it, in case the url of the page changes later, so it'd be something like [team=19]New York Islanders[/team]. Of course, I'd like to do this for the players too.

So is combing a message for a string and replacing it with the custom bbcode wrapped around the string going to slow things down much?

Xenon 09-30-2004 03:39 PM

well, every bbcode slows things down, but it is really marginal.

Also you can enable post caching, then it's no problem at all, as posts aren't parsed several times then :)

Regs 09-30-2004 03:57 PM

I *think* I remember reading about a hack here that did what you're talking about VF... the name escapes me right now but maybe someone else remembers?

Cheers,

~Regs.

VodkaFish 09-30-2004 04:12 PM

Quote:

Originally Posted by Regs
I *think* I remember reading about a hack here that did what you're talking about VF... the name escapes me right now but maybe someone else remembers?

Cheers,

~Regs.

Wow, that'd be nice if this was done already, then all I'd have to do is change a few table names and I'd be set. I did some searching, haven't found it yet though...

Regs 09-30-2004 09:58 PM

maybe it wasn't a hack... there's lots of discussion here though on the topic using replacement variables .

Do a search here on: replacement variables

That should be a start.

Cheers,

~Regs.


All times are GMT. The time now is 07:25 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.00992 seconds
  • Memory Usage 1,717KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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