The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
construct_phrase() not working.
Can someone tell me what I'm doing wrong?
PHP Code:
|
#2
|
||||
|
||||
What's the result? Where are you using it?
Check your two input values as well (var_dump or something similar). |
#3
|
|||
|
|||
I echo both but $vbphrase['tooshort'] won't parse.
|
#4
|
||||
|
||||
Inside a function? Phrase cached?
|
#5
|
|||
|
|||
I just used echo $vbphrase['tooshort'];. I don't know how to cache a phrase.
|
#6
|
||||
|
||||
When you enter the phrase group in the $phrasegroups array (beginning of a file), it will tell vBulletin which phrase groups should be cached. Using a phrase that isn't won't work. The exception is global phrases, which are always cached.
|
#7
|
|||
|
|||
This is odd. It's throwing this error
PHP Code:
I'm using PHP Code:
|
#8
|
||||
|
||||
Is that a new phrase group? If so - you have to add them using a function and not just create a new record in the database.
|
#9
|
|||
|
|||
Search for the varname "tooshort" in your phrases and you'll see it's under "Error Messages" and the fieldname for "Error Messages" is "error".
|
#10
|
||||
|
||||
Error phrases are handled differently in the fact that they aren't cached with the rest of the phrases. Instead, it grabs em as it needs them and caches them inside the function (static). Try this:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|