The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Add variable to print_standard_error ..etc
Hello All,
Is it possible to add variables to a standard error? for example I have the standard error as "You are not allow to post because blah blah" Now I want to change it to "You are not allow to post because you are at the IP:xxx.xxx.xxx.xxxx" ==> The IP:xxx.xxx.xxx.xxxx is the variable generated from the php files. Please show me how to incorporate this one onto vb error message Thanks |
#2
|
|||
|
|||
You can define parameters passed by reference into error messages (phrases).
Use '{1}' for the first passed parameter. |
#3
|
||||
|
||||
Hi MarcoH64,
Thanks for replying to my thread. Would you please be more specific. I only see this like as eval(print_standard_error("invalidid")). How would we pass the parameters? Thanks |
#4
|
|||
|
|||
You are right, when using the print_standard_error function you can not use parameters for phrases.
You can with the satement: PHP Code:
If you now use the following for the error (mind the extra ', 0'): PHP Code:
|
#5
|
||||
|
||||
Thanks
I will try tonite |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|