The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a plugin which has this code:
PHP Code:
fd_thisacct_is_deleted is the name of a phrase. I want to define a variable in this phrase so that when it is called from the standard_error template, it will be able to output the variables. For example I want to define the phrase like this: <phrase 1=" $threadinfo[title]">$vbphrase[fd_thisacct_is_deleted]</phrase> My question is, where and how can I define this phrase like that so that the variables are output only when the phrase is called? |
#2
|
||||
|
||||
![]()
What is the content of the phrase? You should jsut have to put {1} and {2} in the places you want those two variables to display.
|
#3
|
|||
|
|||
![]()
I can put {1} in the phrase, but I still haven't placed the <phrase 1="xx"> attribute anywhere, because it's to be placed in the standard_error template as defined by the plugin. I don't know how to modify the following plugin code to include the <phrase 1="xx"> tag:
PHP Code:
|
#4
|
||||
|
||||
![]()
I don't understand... you *have* the two attributes being passed - $userinfo['username'] and $userinfo['userid'] (assuming you used valid variables, that is). So, what else are you trying to do? (Did you look this function up in the API?)
|
#5
|
|||
|
|||
![]()
What I'm trying to do is add 2 more variables in addition to the existing 2 variables. In that case can I just add the 2 variables using commas within the function?
--------------- Added [DATE]1251670269[/DATE] at [TIME]1251670269[/TIME] --------------- ok i found my answer here: http://members.vbulletin.com/api/vBu...ionfetch_error Thanks. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|