mathforum
02-23-2014, 07:38 PM
Hello all,
I have finally figured out an issue that has been bugging me for months! I couldn't get images from a custom add-on to show in PMs but somehow today it came to me. :)
The only remaining problem is styling. The way this is working is I've edited the template code for the add-on to the following (very short):
<!-- show ranks -->
<if condition="$post[showuserranks]">
<dl class="userinfo_extra">
<div style="padding-bottom: 5px;">
<dt>Thanks</dt> <dd>{vb:raw post.vbseo_likes_out} times</dd>
<dt>Awards</dt> <dd>$post[userranks]</dd>
</dl>
</if>
<!-- /show ranks -->
Here is what a PM postbit looks like now:
https://vborg.vbsupport.ru/external/2014/02/12.png
There is some extra space between "Thanked" and "Awards", most likely due to the fact that I have two separate <dl> blocks - the one in the postbit legacy template and the one above. It is rendering as two separate blocks.
Any ideas how I can fix this?
I have finally figured out an issue that has been bugging me for months! I couldn't get images from a custom add-on to show in PMs but somehow today it came to me. :)
The only remaining problem is styling. The way this is working is I've edited the template code for the add-on to the following (very short):
<!-- show ranks -->
<if condition="$post[showuserranks]">
<dl class="userinfo_extra">
<div style="padding-bottom: 5px;">
<dt>Thanks</dt> <dd>{vb:raw post.vbseo_likes_out} times</dd>
<dt>Awards</dt> <dd>$post[userranks]</dd>
</dl>
</if>
<!-- /show ranks -->
Here is what a PM postbit looks like now:
https://vborg.vbsupport.ru/external/2014/02/12.png
There is some extra space between "Thanked" and "Awards", most likely due to the fact that I have two separate <dl> blocks - the one in the postbit legacy template and the one above. It is rendering as two separate blocks.
Any ideas how I can fix this?