PDA

View Full Version : Postbit help


killerford
03-18-2013, 02:47 AM
Hi guys. In the postbit area where you see posts, Location, Joined Date I've added Gamertag, Timezone and Main Games for my clan community. I've made it so the Information put in is default and white and the main text bold and red as you can see on the first screenshot.

http://imageshack.us/a/img10/3518/properscreenshot.png

But for some reason on registered members and another member of my Mods group are coming up like this

http://imageshack.us/a/img94/3273/erroredscreenshot.png

why?

There is a guy on our mods group that's getting the bold and red on both text like the bottom screenshot but I have other people in the same group and it's fine like the first screenshot. Why is this and can it be fixed?

Zantox
03-18-2013, 03:26 AM
I took a look around your forum and I am guessing you disabled the things causing the issue for now because I was un able to find anywhere with a messed up postbit.

I'm guessing you used custom user profile fields. Then edited the postbit template. Make sure the if statements are accurate to what you are trying to do and that all of your variables are the same per item you want to add.

There is a guide here with more information: here (http://www.vbulletin.com/forum/forum/vbulletin-legacy-versions-products/legacy-vbulletin-versions/vbulletin-3-5-how-do-i-questions-and-troubleshooting/172913-how-to-add-a-profile-field-to-the-postbit?)

killerford
03-18-2013, 06:57 PM
The theme what I'm using is a child theme of our main theme and it's only viewable to me. As I'm making changes without people seeing them.

findingpeace
03-18-2013, 07:17 PM
Hey killerford, it looks like an unclosed HTML tag after Gamertag (maybe /strong or /b or /style or /font)? Either way, the difference starts at the colon, not the actual content of the Gamertag info. Is there a conditional for certain users or usergroups?

Can you paste the postbit code here?

killerford
03-20-2013, 07:47 PM
I've done this..

<span style="color:#BE1A1A"><b><vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt></b></b></span> <dd>{vb:raw post.joindate}</dd></vb:if>
<span style="color:#BE1A1A"><b><vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt></b></b></span> <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>

<vb:if condition="$post['field6']"><dt><span style="color:#BE1A1A"><b>Gamertag</b></span></dt> <dd>{vb:raw post.field6}</dd></vb:if>
<vb:if condition="$post['field10']"><dt><span style="color:#BE1A1A"><b>Main Games</b></span></dt> <dd>{vb:raw post.field10}</dd></vb:if>
<vb:if condition="$post['field9']"><dt><span style="color:#BE1A1A"><b>Timezone</b></span></dt> <dd>{vb:raw post.field9}</dd></vb:if>

Lynne
03-20-2013, 08:56 PM
This is incorrect:
<span style="color:#BE1A1A"><b><vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt></b></b></span> <dd>{vb:raw post.joindate}</dd></vb:if>
<span style="color:#BE1A1A"><b><vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt></b></b></span> <dd>{vb:raw post.field2}</dd></vb:if>
should be:
<vb:if condition="$post['joindate']"><dt><span style="color:#BE1A1A"><b>{vb:rawphrase join_date}</b></span></dt> <dd>{vb:raw post.joindate}</dd></vb:if>
<vb:if condition="$post['field2']"><dt><span style="color:#BE1A1A"><b>{vb:rawphrase location_perm}</b></span></dt> <dd>{vb:raw post.field2}</dd></vb:if>
(Actually, I wouldn't use <b>, but..... )

killerford
03-20-2013, 09:59 PM
That same for the others to?

Lynne
03-21-2013, 03:28 AM
Anyone that you want to look that way. The last three were done correctly, I'm not sure why the first ones weren't done the same way.

killerford
03-21-2013, 11:53 PM
So that's causing the the registered groups and odd staff members to have error's? Such as all being bold. As most of the groups on the forums are correct.

Lynne
03-22-2013, 12:48 AM
Yes, that is causing the issues you see. You are starting the <span> (color) and <b> tags outside of the condition.

killerford
03-23-2013, 11:05 PM
Thanks for the help and support.

killerford
03-26-2013, 02:48 AM
In our postbit legacy it's currently showing as this

<vb:if condition="$post['userid']">
<hr />
<dl class="userinfo_extra">
<span style="color:#BE1A1A"><b><vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt></b></b></span> <dd>{vb:raw post.joindate}</dd></vb:if>
<span style="color:#BE1A1A"><b><vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt></b></b></span> <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>

<vb:if condition="$post['field6']"><dt><span style="color:#BE1A1A"><b>Gamertag</b></span></dt> <dd>{vb:raw post.field6}</dd></vb:if>
<vb:if condition="$post['field10']"><dt><span style="color:#BE1A1A"><b>Main Games</b></span></dt> <dd>{vb:raw post.field10}</dd></vb:if>
<vb:if condition="$post['field9']"><dt><span style="color:#BE1A1A"><b>Timezone</b></span></dt> <dd>{vb:raw post.field9}</dd></vb:if>

<span style="color:#BE1A1A"><b><dt>{vb:rawphrase posts}</dt></b></span> <dd>{vb:raw post.posts}</dd>
{vb:raw template_hook.postbit_userinfo_right_after_posts}
</dl>


and still a few people still having parts of the profile fields in bold where it shouldn't be. Can you tell me in full on what it needs to be changed to as I change a few things and get errors.

--------------- Added 1364266517 at 1364266517 ---------------

Never mind. I've done it now just my posts and the : is all red instead of just the posts text.

Lynne
03-26-2013, 03:04 AM
And that postbit is full of html errors. You need to correct them or you will keep having problems. Make sure each <tag> has an ending </tag> and that they are within the same condition and they are nested correctly.