View Full Version : Forum category description is not displayed
Haiwan88
07-15-2015, 09:58 AM
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
<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.
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
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 1450711399 at 1450711399 ---------------
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.
<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.
.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
Replicant
10-23-2016, 10:27 AM
This template mod is verified working in 5.2.4. If you have short descriptions and want to save some realestate, you can slide the description in right next to the category by using a span in the existing line instead.
On or about line 8 in display_forum_list, you will find this code.
<tr class="category-header" id="forum{vb:raw channel.nodeid}">
<td colspan="4"><a class="category" data-nodeid="{vb:raw channel.nodeid}" href="{vb:url {vb:raw channel.routeid}}">{vb:raw channel.title}</a></td>
</tr>
Change to:
<tr class="category-header" id="forum{vb:raw channel.nodeid}">
<td colspan="4"><a class="category" data-nodeid="{vb:raw channel.nodeid}" href="{vb:url {vb:raw channel.routeid}}">{vb:raw channel.title}</a><span class="category-description">{vb:raw channel.description}</span></td>
</tr>
Then add CSS for the desired appearance.
noypiscripter
10-23-2016, 03:54 PM
Personally, I prefer to display the forum description over the category description to let users know what a forum channel is about. I think when posting, users will care more on what a forum channel is for rather than what a category is for.
I have a free mod for that which doesn't require editing templates.
http://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin-5-miscellaneous-modifications/1610-display-forum-description-on-forum-channel-page-using-an-ad-module
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.