it still isn't going to work !
it shows nothing, still keeping the 2 div lines. within the first line class is block.
and no output is showing.
i think it is in my plugin but i can't find simmular mod's/plugins to see how they did it.
my template name is now:
memberinfo_block_mymodification
[PHP]<div id="view-mymodification" <vb:if condition="$selected_tab == 'mymodification'"> class="selected_view_section"<vb:else />class="view_section"</vb:if>>
<h3 class="subsectionhead">Bijlages</h3>
{vb:raw block_data.mymymodification}
</div>
<div class="underblock"></div>
<!-- / {vb:raw id} --> [/PHP
plugin name
extra tab
PHP Code:
$blocklist = array_merge($blocklist, array(
'mymodification' => array(
'class' => 'MyModification',
'title' => 'My Modification',
'hook_location' => 'profile_left_last'
)
));
class vB_ProfileBlock_MyModification extends vB_ProfileBlock
{
var $template_name = 'memberinfo_block_mymodification';
function confirm_empty_wrap()
{
return false;
}
function confirm_display()
{
return ($this->block_data['mymodification'] != '');
}
function prepare_output($id = '', $options = array())
{
$this->block_data['mymodification'] = 'Content to show in the tab.';
}
}
@lynn, the 2 div lines are automaticly generated and i don't know why there are 2 lines and not one.