vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Forum category description is not displayed (https://vborg.vbsupport.ru/showthread.php?t=319479)

Haiwan88 07-15-2015 09:58 AM

Forum category description is not displayed
 
Some one know how to fix this Bug?

http://tracker.vbulletin.com/browse/VBV-11049


Thank You

Replicant 07-15-2015 07:54 PM

You need to edit the display_Forums_list template and add this code just under the "category-header" code section on or about line 10. You can also add this code to the display_Forums_item template to display the description in the individual forum view. This CSS will also need to be written for the responsive view with @media queries

Code:

<tr>
    <td colspan="4"><a class="category-description">{vb:raw channel.description}</a></td>
</tr>

add to css_additional.css, adjust padding, fontsize, and colors as necessary for your taste.

Code:

a.category-description {
  background: #F0F0F0;
  float: left;
  color: black!important;
  width: 100%;
}


nt_loader 12-16-2015 08:50 PM

What is the process for making this work with version 5.1.10?

napy8gen 12-20-2015 11:28 PM

1 Attachment(s)
The code supplied by Replicant is good for vb5.1.10

Style manager> style name> edit templates> display templates> display_forum_list

nt_loader 12-21-2015 12:47 PM

Thanks!

--------------- Added [DATE]1450711399[/DATE] at [TIME]1450711399[/TIME] ---------------

One more question, how would I move over the txt right under the Heading? See below for an example

https://vborg.vbsupport.ru/external/2015/12/13.png

napy8gen 12-21-2015 02:54 PM

If you are using Replicant code the category description is wrap in link <a></a> which I think it may not actually serve the purpose as description as it is not link. We can change the link<a> to <div></div> or a<p></p> or any html tag that serve your purpose as text description.

1)so change first in Style manager> style name> edit templates> display templates> display_forum_list> Replace the replicant code with this one. Please see above screenshot in my first reply to see the exact location.

HTML Code:

<tr>
    <td colspan="4"><div class="category-description">{vb:raw channel.description}</div></td>
</tr>

2)go to style manager> style name> edit templates> css templates> css_additional.css> paste below code inside.

HTML Code:

.category-description {
 padding-left:14px;
}

See that this css class has no a. in front of it like original. It will work on any html tag you choose that defined this class. Class can be used repeatedly not like an css id.

Try increase or decrease value as fit because I have not tested it.
I prefer padding from margin.

nt_loader 12-21-2015 03:15 PM

Awesome! Thank you very much for your time, I greatly appreciate your reply.

Saved me a lot of time and effort trying to figure this out. I also want to thank you for explaining the changes.

Hectorsky 12-21-2015 07:23 PM

Hi , i was trying on my forum , but doesn't work

Wmteknik 12-27-2015 08:19 PM

Thank you

napy8gen 10-21-2016 07:30 AM

I am sorry it is still working with vb5.2.4


All times are GMT. The time now is 06:56 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.01309 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)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