Thanks for the help kh99. Trying to follow what you suggested, I did this...
New template called
exp_shop_tab containing:
Code:
<if condition="$block_data[xperience_points_shop]<>0">
<fieldset class="vbexperience_group">
<legend>$vbphrase[xperience_shop]</legend>
<ul class="list_no_decoration">
<li><span class="shade">$vbphrase[xperience_points_shop]:</span> $block_data[xperience_points_shop]</li>
</ul>
<table>
<tr>
$block_data[xperience_shop_items]
</tr>
</table>
</fieldset>
</if>
<if condition="$block_data[xperience_shop_items_received] ">
<fieldset class="vbexperience_group">
<legend>$vbphrase[xperience_shop_items_received]</legend>
<table>
<tr>
$block_data[xperience_shop_items_received]
</tr>
</table>
</fieldset>
</if>
Plugin edited to contain this code:
Code:
function prepare_output($id = '', $options = array())
{
eval('$this->block_data[mymodification] ="' . fetch_template('exp_shop_tab') . '";');
}
That returns this error on my page (page still loads, but many tabs are missing and error message is at the top of the page):
Code:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /hermes/web05/b980/pow.mobowow/htdocs/forums/member.php(463) : eval()'d code on line 307