PDA

View Full Version : [How-to] Add a right postbit to the profile page?


gamerfu
04-30-2009, 02:40 PM
I am unsure how to add a right postbit to the profile page.

Any ideas?

Lynne
04-30-2009, 03:14 PM
A postbit is the template used to create posts in a thread. I'm not sure what you mean that you want to add it to your profile page.

gamerfu
04-30-2009, 03:17 PM
I meant, how do you add a right-hand box, like user statistics to the members profile page.

I would like to add a box to the right-hand side of the users profile

Lynne
04-30-2009, 03:32 PM
Try this:
Create a new template called "memberinfo_block_yours" with this (Just copied from memberinfo_block_ministats):

<!-- Your new block -->
<div class="alt1 block_row">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="100%">
Your stuff here
</td>
</tr>
</table>
</div>
<!-- / Your new block -->
Create a plugin at hook location "member_build_blocks_start" with this:

eval('$template_hook[profile_right_first] .= "' . fetch_template('memberinfo_block_yours') . '";');



I have NOT tested this.

gamerfu
04-30-2009, 04:01 PM
that worked perfectly! :cool: wow! :eek:

how can I can I add a collapsible box (border) with a title around this like the mini-stats? :)

anyway to change order of box?

Lynne
04-30-2009, 06:00 PM
Just take a look at the mini stats memberinfo box and add the code for collapsing it. Make sure you use a unique name/id for yours.