The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|