PDA

View Full Version : Profile Block - Adding hook


David Regimbal
06-01-2009, 11:35 PM
Hi everyone,

I was wondering how to add a hook to a profile block? Basically, I'm asking how to put a hook in a specific location in the template? At the moment I created a new profile block called:

memberinfo_block_test

And inside there is a hook that I want to be placed in a certain spot:


<if condition="$bbuserinfo[field6]">
<div id="test" class="tborder content_block">
<h4 class="thead block_title">
<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('test')"><img id="collapseimg_test" src="images/buttons/collapse_generic.gif" alt="" border="0" /></a>
<a name="albums"></a>
<span class="block_name">Testing</span>
</h4>
<div class="block_content" id="collapseobj_test" style="">

<div class="alt1 smallfont block_row">$template_hook[custom_2]</div>

</div>
</div>
</if>


And the hook would place the text that would pop-up, though instead the text from the hook pops up at the top of the page. :(

Any help?

GCSkye
06-02-2009, 12:35 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=165554" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=165554</a>

Maybe this will help