Quote:
As of yet, I have not been able to get this mod working in PMs so the postbit_legacy edit has an if condition to only display it in showthread or showpost. I'll continue trying to find out how to get it to work in PMs or if anyone else has any ideas, always appreciated
|
The fix is actually quite simple..
PMs don't use the $post[postcount] figure, so just create a false one. I used 99..
My button code:
Code:
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapseuserinfo('postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>')"><img id="collapseimg_postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_postbit_legacy_userinfo].gif" alt="" border="0" /></a>
My tbody code:
Code:
<tbody id="collapseobj_postbit_legacy_userinfo<if condition="THIS_SCRIPT == 'private'">99<else />$post[postcount]</if>" style="$vbcollapse[collapseobj_postbit_legacy_userinfo]">
It seems to work fine for me anyway!