PDA

View Full Version : How to Edit Template - Forum Post Identification of Poster?


Dave234
09-01-2012, 11:52 PM
Hello,
I really hope someone can help me. I have a (hopefully) easy question, and I can't for the life of me seem to find the answer.

How can I change what appears in the part that appears in the forum posts of my website, where it says the poster's name, join date, location, etc

I've attached an example of what I'm talking about, because I don't even know what I'm supposed to call it, so I can't even search for it properly.

kh99
09-01-2012, 11:59 PM
That's in the template called postbit_legacy.

Dave234
09-02-2012, 04:05 AM
Do you know where? I really can't find it no matter how hard I look.

--------------- Added 1346564106 at 1346564106 ---------------

I can find the postbit_legacy template, but I can't find where in that template to make the change....

kh99
09-02-2012, 10:01 AM
I don't know exactly hwat change you want to make, but the part of postbit_legacy you want starts like this:

<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
{vb:raw post.onlinestatus}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if>
</div>


That's the part that shows either the username with a dropdown menu, or Guest. If you haven't looked at templates before, it's really just html, but with some special tags for "if" statements and variable replacement.

Dave234
09-02-2012, 11:37 AM
I found it! But I can't seem to figure out how to alter the code to fix the errors that I see in my posts. Can you please take a look at the attachment in my initial post? I have the following errors:
-The "Join Date" is too far to the right
-The "1" that is to the right of "Thanked 0 Times in 0 Posts" should be next to "Blog Entries:"
-The "0" that is on the same line as "Groan:" is waaaay too far to the right

<div class="postdetails">
<div class="userinfo">
<div class="username_container">
<vb:if condition="$post['userid']">
{vb:raw memberaction_dropdown}
{vb:raw post.onlinestatus}
<vb:else />
<span class="username guest">{vb:raw post.musername}</span>
</vb:if>
</div>
<span class="usertitle">
{vb:raw post.usertitle}
</span>
<!-- Wy Country Flags Start -->
<vb:if condition="$post['field44']"><style="text-align:left"> Country:</dt> <img src="{vb:stylevar imgdir_button}/flags/{vb:raw post.field44}.GIF" align="middle" alt="{vb:raw post.field44}" border="" /></vb:if>
<!-- Wy Flags End -->
<vb:if condition="$post['rank']">
<span class="rank">{vb:raw post.rank}</span>
</vb:if>
{vb:raw template_hook.postbit_userinfo_left}
<vb:if condition="$show['reputation']">
<span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}">
<vb:each from="reputationdisplay" value="row">
<img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend}
</vb:each>
</span>
</vb:if>
<vb:if condition="$show['avatar']">
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
<vb:if condition="$post['userid']">
<hr />
<dl class="userinfo_extra">
<dt>{vb:raw post.crowns}{vb:raw post.champtext}</dd><br />
<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>
{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>

kh99
09-02-2012, 11:46 AM
Well, I'm not really an html person. But I see a place where you have <dd>somthing</dt>, so I have to assume that's not right. It's where you added the champtext stuff. I don't see the code for the other stuff - it might be added by a plugin.

Dave234
09-03-2012, 04:29 AM
That fixed the issue of the "Join Date" being too far to the right (thank you very much!!), but I'm still trying to figure out how to take care of the following:

-The "1" that is to the right of "Thanked 0 Times in 0 Posts" should be next to "Blog Entries:"