PDA

View Full Version : Click to show signature


rockon
11-05-2009, 08:12 AM
I'm trying to make the signature of a user hidden until someone clicks a link.

I have the functionality working but all signatures load in a div at the bottom of the last post.

Here's an example:

http://www.rockonpublishing.co.uk/showthread.php?t=13

The signature link is under each reply named "show signature".

The code i've used is:

-below the message (reply):
<a href="#" onclick="return toggle_collapse('sig_$post[userid]_1')">Show signature</a>

-beneath the close table tag of the postbit legacy:
<if condition="$post['signature']">
<!-- sig -->



<div align="bottom">

<div id="collapseobj_sig_$post[userid]_1" style="display: none; width: 100%; border-left: 1px solid #000; border-bottom: 1px solid #000; border-right: 1px solid #000; background-color: #CCC; height: 80px; overflow: auto;">
$post[signature]
</div>

</div>
<!-- / sig -->
</if>


Anyone know what's wrong?

--------------- Added 1257453865 at 1257453865 ---------------

Sorry to bump but i'd really love for this to work :)

Any ideas?