Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2013, 02:47 AM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.



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



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?
Reply With Quote
  #2  
Old 03-18-2013, 03:26 AM
Zantox Zantox is offline
 
Join Date: Nov 2012
Location: USA
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 03-18-2013, 06:57 PM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-18-2013, 07:17 PM
findingpeace's Avatar
findingpeace findingpeace is offline
 
Join Date: Nov 2011
Posts: 268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 03-20-2013, 07:47 PM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 03-20-2013, 08:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..... )
Reply With Quote
  #7  
Old 03-20-2013, 09:59 PM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That same for the others to?
Reply With Quote
  #8  
Old 03-21-2013, 03:28 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 03-21-2013, 11:53 PM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 03-22-2013, 12:48 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, that is causing the issues you see. You are starting the <span> (color) and <b> tags outside of the condition.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:38 AM.


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.04431 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete