View Full Version : How to remove 'description' block of the forums at Home Page ?
cbishwaraj
12-23-2010, 02:06 PM
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 1293137614 at 1293137614 ---------------
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:
<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
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.