![]() |
Defining a Variable in a Phrase using php
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? |
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.
|
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:
|
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?)
|
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. |
All times are GMT. The time now is 12:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|