Quote:
Originally Posted by MissKalunji
Step 1. Create Plugin
Hook Location : member_build_block_start
Name : Ishop Richness Profile Tab
Execution Order : 5 (I left it as default)
Plugin PHP Code :
Code:
$blocklist = array_merge($blocklist, array(
'ishopmod' => array(
'class' => 'ishopmod',
'title' => 'Items',
'hook_location' => 'profile_left_last'
)
));
class vB_ProfileBlock_ishopmod extends vB_ProfileBlock
{
var $template_name = 'memberinfo_block_richness';
function confirm_empty_wrap()
{
return false;
}
function confirm_display()
{
return ($this->block_data['ishopmod'] != '');
}
function prepare_output($id = '', $options = array())
{
$this->block_data['ishopmod'] = 'Content to show in the tab.';
}
}
Plugin is Active : Yes
Save
Step 2.
Then Create a Template Name : memberinfo_block_richness
Code:
<div class="alt1 block_row">
<ul class="list_no_decoration">
<br/>
<!-- show inventory -->
<fieldset><legend><a href="ishop.php?do=ViewMember&id=$userinfo[userid]" title="$userinfo[username]'s Inventory">$userinfo[username]'s </a></legend>
<br/>
<div>
$userinfo[invrow]
<br>
</div>
</fieldset>
<!-- /show inventory -->
<div class="smallfont">$post[giftsdisplay]</div>
</ul>
</div>
Then it should appear on the left after Contact
Screenshot
Attachment 85869
And i'm using Vb Credits as Bank
|
I tried this but nothing shows in my members items section. Any idea what I am missing? I have th etemplate edits just like you have here. The $post[giftsdisplay] & $userinfo[invrow] Don;t seem to show up in the member section??