The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to create a fiel for rep power in postbit?
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: Code:
<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> Thanks in advance |
#2
|
||||
|
||||
Move it up into the "<dl class="userinfo_extra">" area.
|
#3
|
|||
|
|||
And removing from the <dl class="user_rep"> ? I'm talking abount reppower.... In this mode the gap will end too i think.... |
#4
|
||||
|
||||
Yes, just move it from one area to the other and see if it now looks like what you want it to look like.
|
#5
|
|||
|
|||
Yess work.... and the gap was removed thanks lynne ....
Now The empty Code:
<vb:if condition="$show['infraction'] OR $show['reppower']"> <dl class="user_rep"> </dl> </vb:if> |
#6
|
||||
|
||||
If it's empty, you might as well just remove it.
|
#7
|
|||
|
|||
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: Code:
<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> |
#8
|
||||
|
||||
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.
|
#9
|
|||
|
|||
Understood, thanks lynne.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|