The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
constructing phrases for standard errors?
anyone know how can i use dynamic vb phrases and construct while using them as an error in print_standard_error function?
|
#2
|
|||
|
|||
I am not sure I understand the question AN-net. You could call it with any phrase, such as
Code:
eval(print_standard_error('This is an error.', false /* No lookup */)); eval(print_standard_error($vbphrase['some_phrase'], false)); |
#3
|
||||
|
||||
well here is my code:
PHP Code:
|
#4
|
|||
|
|||
No, the way you have it, you are passing 3 separate parameters to print_standard_error -- which do not match the usage for the arguments of that function. You will have to construct the phrase before you call print_standard_error by calling construct_phrase, which is intended to do what you want.
Then, once you have the phrase made, make the call to print_standard_error as I showed, with the second argument of "false". |
#5
|
||||
|
||||
oh ok cause i knew about construct_phrase but i wasnt sure how to do it with print_standard_error. thanks
edit: hmmm still doesnt work, it still gives me trouble my code: PHP Code:
|
#6
|
|||
|
|||
Quote:
eval(print_standard_error($vbphrase['journalfloodcheck'], false); A cleaner approach would be to not overwrite $vbphrase, like this: $msgTemp = construct_phrase($vbphrase['journalfloodcheck'], $setting['floodint'], 'commenting'); eval(print_standard_error($msgTemp, false)); |
#7
|
||||
|
||||
not to bump an old thread but i have tried to get it construct phrase and now it doesnt display the phrase at all but just the error box with nothing in it
here is my current code: PHP Code:
|
#8
|
||||
|
||||
PHP Code:
|
#9
|
||||
|
||||
nope nothing shows up still
|
#10
|
||||
|
||||
anyone, please i really need this
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|