Quote:
Originally Posted by gnrx
A few days ago, I add in my additional.css this code:
Code:
.postbit .userinfo_extra dl dt {clear: both;}
.postbit .userinfo_extra dl dd {float: left;}
.postbit .userinfo .userinfo_extra dl, .postbit .userinfo_noavatar .userinfo_extra dl {width: 200px;}
After this, I modified some line in vars (with indications of some post here):
In template post_thanks_postbit_info
search and replace all vb:stylevar right by vb:stylevar left
All ok, but in some users, in postbit, some line of thanks appears in the same line, other users, have the thanks in differents lines (this is ok).
I attachs a images for view this:
How can I made for appears in all postbits, the thanks lines, in differents lines?
Thanks and regards!
|
change your post_thanks_postbit_info template to this..
Code:
<vb:if condition="$post['userid']">
<dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
<vb:if condition="$post['post_thanks_thanked_times'] == 1">
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
<vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
<vb:else />
<dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
</vb:if>
</vb:if>
while your there editing your template
change your post_thanks_javascript template
to this one there is a } missing. fixes a different problem..
Code:
<script type="text/javascript" src="clientscript/post_thanks.js"></script>
<style type="text/css">
.postbitlegacy .postfoot .textcontrols a.post_thanks_button, .postbit .postfoot .textcontrols a.post_thanks_button {
background: url({vb:stylevar imgdir_button}/post_thanks.png) no-repeat transparent {vb:stylevar left};
padding-{vb:stylevar left}: 20px;
}
.postbitlegacy .postfoot .textcontrols a.post_thanks_button:hover, .postbit .postfoot .textcontrols a.post_thanks_button:hover {
background: url({vb:stylevar imgdir_button}/post_thanks-hover.png) no-repeat transparent {vb:stylevar left};
}
</style>
the template fix should keep it looking like the image attached , no matter how may post thanks