PDA

View Full Version : How to create a fiel for rep power in postbit?


Sworm
06-26-2011, 08:18 AM
Hi all, i have a custom skin for my vb 4.1.4. The first fields of my postbit are inside a div, but not the rep power and blog post:
http://img13.imageshack.us/img13/5918/catturasl.jpg

Here my postbit:
<dl class="userinfo_extra">
<vb:if condition="$post['joindate']"><div class="post_field"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></div></vb:if>
<vb:if condition="$post['field2']"><div class="post_field"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></div></vb:if>
<vb:if condition="$post['age']"><div class="post_field"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></div></vb:if>
<div class="post_field"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd></div>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>
<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">
<vb:if condition="$show['infraction']">
<dt>{vb:rawphrase infractions}</dt>
<dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
</vb:if>
<vb:if condition="$show['reputation']">
<vb:if condition="$show['reppower']">
<dt>{vb:rawphrase reppower}</dt>
<dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
</vb:if>
</vb:if>
</dl>
</vb:if>
{vb:raw template_hook.postbit_userinfo_right}
<div class="imlinks">
{vb:raw post.icqicon} {vb:raw post.aimicon} {vb:raw post.msnicon} {vb:raw post.yahooicon} {vb:raw post.skypeicon}
</div>
</vb:if>
</div>
<div class="postbody">
<div class="postrow<vb:if condition="$show['postedited'] || $post['signature']"> has_after_content</vb:if>">
{vb:raw template_hook.postbit_messagearea_start}
<vb:if condition="$post['title'] OR $show['messageicon']">
<h2 class="title icon">
<vb:if condition="$show['messageicon']"><img src="{vb:raw post.iconpath}" alt="{vb:raw post.icontitle}" /> </vb:if>{vb:raw post.title}
</h2>
</vb:if>

Not there's a way to include this 2 fields in that rectangle?

Thanks in advance

Lynne
06-26-2011, 02:53 PM
Move it up into the "<dl class="userinfo_extra">" area.

Sworm
06-26-2011, 03:16 PM
Move it up into the "<dl class="userinfo_extra">" area.


And removing from the <dl class="user_rep"> ? I'm talking abount reppower....

In this mode the gap will end too i think....

Lynne
06-26-2011, 03:25 PM
Yes, just move it from one area to the other and see if it now looks like what you want it to look like.

Sworm
06-26-2011, 03:31 PM
Yess work.... :) and the gap was removed :) thanks lynne ....

Now The empty
<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">

</dl>
</vb:if>

Must be removed or can be leaved like it is now?

Lynne
06-26-2011, 03:33 PM
If it's empty, you might as well just remove it.

Sworm
06-26-2011, 03:37 PM
You think should be a good idea to add inside that the vbseo "liked" ? vbseo is another third part product so should be proof to separate from the other fields.....

But i'm a bit confused because that cond and the dl are for rep and i don't know what can cause if i add inside them the 2 vbseo liked:
<vb:if condition="$show['infraction'] OR $show['reppower']">
<dl class="user_rep">
<div class="post_field"><dt>Mi Piace Ricevuti</dt> <dd>{vb:raw post.vbseo_likes_in}</dd></div>
<div class="post_field"><dt>Mi Piace Inviati</dt> <dd>{vb:raw post.vbseo_likes_out}</dd></div>
</dl>
</vb:if>Not there's much sense in this code.... so maybe better to remove the empty tags.

Lynne
06-26-2011, 03:43 PM
I don't know what that code is from and can't recommend doing anything to it. If it's from a mod, then you should ask the mod developer what to do with it.

Sworm
06-26-2011, 03:47 PM
Understood, thanks lynne.