vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   How to remove 'description' block of the forums at Home Page ? (https://vborg.vbsupport.ru/showthread.php?t=255764)

cbishwaraj 12-23-2010 02:06 PM

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.

Lynne 12-23-2010 02:38 PM

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.)

cbishwaraj 12-23-2010 02:58 PM

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.

Lynne 12-23-2010 03:20 PM

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.

cbishwaraj 12-23-2010 06:50 PM

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/

Lynne 12-23-2010 08:43 PM

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.)

cbishwaraj 12-28-2010 02:13 PM

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

:)
cbishwaraj


All times are GMT. The time now is 02:36 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.01129 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete