Quote:
Originally Posted by Makc666
Maybe, but...
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";
}
|
This won't work. Why? Because there is no variable named as $test in the function prepare_output. You need to have it there.
Example:
PHP Code:
function prepare_output($id = '', $options = array())
{
$visitedcountries = "Turkiye, Kazakistan, Kirgizistan, Turkmenistan, Uzbekistan";
$this->block_data['visitedcountries'] = $visitedcountries;
}
How do I know that? Thought on this about half an hour and noticed after that.