Log in

View Full Version : How to add a new created template in profile page like Mini Stats


Idlehearts
10-15-2008, 08:24 PM
Hello

i created a new template memberinfo_block_news Now

How to add this new created template in profile page like Mini Stats

I tried to add this as below but it is not getting displayed

<div id="sidebar_container">
<!-- sidebar -->
$template_hook[profile_right_first]
$blocks[stats_mini]
$blocks[news]
$template_hook[profile_right_mini]
$blocks[friends_mini]
$blocks[albums]
$template_hook[profile_right_album]
$blocks[groups]
$blocks[visitors]
$template_hook[profile_right_last]
<!-- / sidebar -->
</div>

Need some help friends

Lynne
10-15-2008, 08:33 PM
create a plugin at the location "member_build_blocks_start" with the contents:

eval('$template_hook[profile_right_mini] .= "' . fetch_template('memberinfo_block_news') . '";');

That should eval the template.