The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
plugging custom text into standard error and redirect
Hi,
I've added some custom phrases and tested them to be sure they work using Code:
echo $vbphrase('some_custom_text'); Code:
eval(print_standard_error('some_custom_text')); or eval(print_standard_redirect('some_custom_text')); Could not find phrase 'some_custom_text'. What am I missing here? thanks, Ed |
#2
|
|||
|
|||
You have them in the wrong phrase group...add the error ones to the "Front-End Error Messages" phrase group and the redirect to the "Front-End Redirect Messages" phrase group.
|
#3
|
|||
|
|||
Change your call to explictly avoid the phrase fetching using the second parameter ('false' below). Examples:
Code:
eval(print_standard_error($vbphrase['some_custom_text'], false)); or eval(print_standard_redirect($vbphrase['some_custom_text'], false)); |
#4
|
|||
|
|||
Quote:
Why? Doing it the way I stated was correct.... |
#5
|
||||
|
||||
Many thanks, that worked great. I knew I must be missing something obvious!
Ed |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|