vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Postbit help (https://vborg.vbsupport.ru/showthread.php?t=296248)

killerford 03-18-2013 02:47 AM

Postbit help
 
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

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..

Code:

<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:
HTML Code:

<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:
HTML Code:

<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.


All times are GMT. The time now is 09:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01149 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete