Thread: Forum Home Enhancements - Forum Category Icons (Advanced)
View Single Post
  #786  
Old 06-09-2014, 10:06 AM
Tibiaspy Tibiaspy is offline
 
Join Date: May 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Disco_Stu View Post
Looks like you may have a line break in there somewhere.

Check the templates

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

and scan for {vb:rawphrase viewing}

See if you have any line breaks like <br> before {vb:rawphrase viewing}

It could also be a </span> or </div> ending tag in the wrong place. There's a number of things that could be causing this.
Thanks for tips I checked and there are no line breaks before that phrase.

I have category icon after status icon enabled so this is the part of the code that's responsible for that:

Code:
<div class="forumdata">
<div class="datacontainer">
<vb:if condition="$vbulletin->options['forumiconimg_location'] == '0'">
<!-- category icon after status icon -->
<img src="images/{vb:raw vboptions.forumiconimg_folder}/{vb:raw forum.forumiconimg}" alt="{vb:raw forum.title}" style="float:left; <vb:if condition="$vbulletin->options['forumiconimg_margin_location'] == '1' OR $vbulletin->options['forumiconimg_margin_location'] == '3'">margin:{vb:raw vboptions.forumiconimg_margin};<vb:else />margin-right:4px;</vb:if> <vb:if condition="$vbulletin->options['forumiconimg_size'] == '1'">width:{vb:raw forum.forumiconimg_forum_width}px; height:{vb:raw forum.forumiconimg_forum_height}px;<vb:else />width:{vb:raw vboptions.forumiconimg_width}px; height:{vb:raw vboptions.forumiconimg_height}px;</vb:if>;" />
<div>
<h2 style="font-weight:bold; font-size:13px;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
<vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>						
<vb:if condition="$show['forumdescription']"><p>{vb:raw forum.description}</p></vb:if>
</div>
<vb:elseif condition="$vbulletin->options['forumiconimg_location'] == '1'" />
In default style we have:

Code:
<div class="titleline">
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
<vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
</div>
When I changed that <h2 style="font-weight:bold; font-size:13px;"> to <h2 class="forumtitle"> I got it almost working because then it was like this:
Forum_name Browsing Forum_description

I couldn't get that forum_description to a new line. So after that h2 style=forumtitle I did something like this:
<vb:if condition="$show['forumdescription']"><p>{vb:raw forum.description}</p></vb:if>

Changed to this:
<vb:if condition="$show['forumdescription']"><br><br><p>{vb:raw forum.description}</p></vb:if>

It kinda works - description is in next line but it doesn't look good. I had to add <br> 2 times because if there was only one it didn't worked. It was little lower but not in a completely new line. When there are two <br> it is in new line but there is also a lot of space between forum title and forum description. It doesn't look that good.

Now it looks like this:

Code:
<div>
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
<vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
<vb:if condition="$show['forumdescription']"><br><br><p>{vb:raw forum.description}</p></vb:if>
</div>
Any ideas how to make it right?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01127 seconds
  • Memory Usage 1,785KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete