Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
  #1  
Old 12-23-2010, 02:06 PM
cbishwaraj cbishwaraj is offline
 
Join Date: Jul 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to remove 'description' block of the forums at Home Page ?

Hi,
I am using Publishing suite 4.1.0. I have nearly 200 forums added.
I don't want to display description in home page instead i just want to display the title of the forums.
(But No Changes in Forum page : want to display description as default)

How can I do that ? where should I edit the code in template pages?
Thank you for your support.

cbishwaraj.
Reply With Quote
  #2  
Old 12-23-2010, 02:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you want to remove the description in the widget? Just remove that part from the widget template. To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code. (Sometimes the template is the one mentioned at the very top of the page source.)
Reply With Quote
  #3  
Old 12-23-2010, 02:58 PM
cbishwaraj cbishwaraj is offline
 
Join Date: Jul 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne,
I did the first step: vboptions > General Settings > Add Template Name in HTML Comments > set to Yes.

and where should I edit the page ?
is it in Style and templates -> Style Manager -> Forum Home ?
and what part of the code do i need to edit ?

Thank you for your support.
cbishwaraj.
Reply With Quote
  #4  
Old 12-23-2010, 03:20 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look in your page source and find the template name around the part of the code you want to edit. It should look something like this:
<!-- BEGIN TEMPLATE: template_name -->

That is the template you want to edit. And I would guess if you want to remove the description, you would remove something that says "description" in it. I don't know the exact code since you didn't post the name of the template you are wanting to edit.
Reply With Quote
  #5  
Old 12-23-2010, 06:50 PM
cbishwaraj cbishwaraj is offline
 
Join Date: Jul 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne,
can you please take a look to http://173.203.135.72/test/test.htm
and suggest me where should I edit the code?

Hope this screenshot gives you complete preview i want to do.

I really appreciate your help.

Happy Holidays!
cbishwaraj

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

BTW:
our site is http://www.screwedbyforums.com/
Reply With Quote
  #6  
Old 12-23-2010, 08:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That looks like the forum.php page to me, yet you said "But No Changes in Forum page : want to display description as default", so I'm confused about where you want to remove it. But again, you need to put the template name in the source code using the method I posted and then find the template using that method. According you using that method, the template should be
<!-- BEGIN TEMPLATE: forumhome_forumbit_level2_post -->

So, just remove the description text from there:
HTML Code:
<vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>
(You could also just write a plugin to set $show['forumdescription'] for that template when on that page, but it may be easier for you to just edit the template if you don't know how to write plugins.)
Reply With Quote
  #7  
Old 12-28-2010, 02:13 PM
cbishwaraj cbishwaraj is offline
 
Join Date: Jul 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne,
Great! My problem is solved.
Thank you so much for helping me.


cbishwaraj
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 09:00 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.03776 seconds
  • Memory Usage 2,208KB
  • Queries Executed 13 (?)
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_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete