Quote:
Originally Posted by Peterpan002
I successfully created new tab and with the following code I now get output of "field 12" showing but not "field 11" instead of both showing, am also having difficulty inserting the field title in the output. A little help maybe.
I would really appreciate a little help with this as its so close to working fully -  Bump
|
This one:
Code:
function prepare_output($id = '', $options = array())
{
$this->block_data['checklist'] = $this->profile->userinfo['field11'];
$this->block_data['checklist'] = $this->profile->userinfo['field12'];
}
}
To this one:
Code:
function prepare_output($id = '', $options = array())
{
$this->block_data['checklist'] = $this->profile->userinfo['field11'];
$this->block_data['checklist'] .= $this->profile->userinfo['field12'];
}
}
--------------- Added [DATE]1207746300[/DATE] at [TIME]1207746300[/TIME] ---------------
My question here...
In vBulletin 3.6.* I had such code in product:
Code:
<plugin active="1" executionorder=5" product="test">
<title>Test - member complete</title>
<hookname>member_complete</hookname>
<phpcode><![CDATA[if (THIS_SCRIPT == 'member')
{
$test = "Hellow!";
if ($vbulletin->options[test_auto])
{
$footer = $test.$footer;
}
}]]></phpcode>
</plugin>
Question: How to add $test to the new tab?
This one doesn't work:
Code:
function prepare_output($id = '', $options = array())
{
$this->block_data['test'] = "$test";
}