Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2015, 09:58 AM
Haiwan88 Haiwan88 is offline
 
Join Date: Jul 2015
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Forum category description is not displayed

Some one know how to fix this Bug?

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


Thank You
Reply With Quote
  #2  
Old 07-15-2015, 07:54 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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%;
}
Reply With Quote
Благодарность от:
MarkFL
  #3  
Old 12-16-2015, 08:50 PM
nt_loader nt_loader is offline
 
Join Date: Dec 2015
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the process for making this work with version 5.1.10?
Reply With Quote
  #4  
Old 12-20-2015, 11:28 PM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code supplied by Replicant is good for vb5.1.10

Style manager> style name> edit templates> display templates> display_forum_list
Attached Images
File Type: png displayforumlist.png (57.2 KB, 0 views)
Reply With Quote
2 благодарности(ей) от:
MarkFL, nt_loader
  #5  
Old 12-21-2015, 12:47 PM
nt_loader nt_loader is offline
 
Join Date: Dec 2015
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Reply With Quote
  #6  
Old 12-21-2015, 02:54 PM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
MarkFL
  #7  
Old 12-21-2015, 03:15 PM
nt_loader nt_loader is offline
 
Join Date: Dec 2015
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
MarkFL
  #8  
Old 12-21-2015, 07:23 PM
Hectorsky's Avatar
Hectorsky Hectorsky is offline
 
Join Date: Mar 2015
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi , i was trying on my forum , but doesn't work
Reply With Quote
  #9  
Old 12-27-2015, 08:19 PM
Wmteknik Wmteknik is offline
 
Join Date: Dec 2015
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #10  
Old 10-21-2016, 07:30 AM
napy8gen napy8gen is offline
 
Join Date: Jan 2006
Location: port ++++son
Posts: 519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am sorry it is still working with vb5.2.4
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07886 seconds
  • Memory Usage 2,276KB
  • Queries Executed 12 (?)
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
  • (2)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
  • (5)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete