![]() |
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? |
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 :) |
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. |
Quote:
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|