PDA

View Full Version : Forum Display Enhancements - Icon Legend - Remove


OldSchoolDSL
02-06-2011, 10:00 PM
This modification will REMOVE the Icon Legend found on your Forum Home page.

Pros:
Will save on bandwidth (a little)
Will make your page load quicker
Will give your forum a cleaner look

Cons:
No Legend for the absolute noob (newbie)


You should always backup before making edits.

Even if it worked fine on your test site.

In FORUMHOME in your theme (style / template)

Look for:

<div id="wgo_legend" class="wgo_subblock section">
<h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase icon_legend}" />{vb:rawphrase icon_legend}</h3>
<div>
<dl id="icon_legends" class="icon_legends">
<dt><img src="{vb:stylevar imgdir_statusicon}/forum_new-16.png" alt="{vb:rawphrase new_posts_forum}" /></dt><dd>{vb:rawphrase new_posts_forum}</dd>
<dt><img src="{vb:stylevar imgdir_statusicon}/forum_old-16.png" alt="{vb:rawphrase no_new_posts_forum}" /></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
<dt><img src="{vb:stylevar imgdir_statusicon}/category-16.png" alt="{vb:rawphrase category_forum}" /></dt><dd>{vb:rawphrase category_forum}</dd>
<dt><img src="{vb:stylevar imgdir_statusicon}/forum_link-16.png" alt="{vb:rawphrase link_forum}" /></dt><dd>{vb:rawphrase link_forum}</dd>
<vb:if condition="$vboptions['pt_hasprojectforums']">
<dt><img src="{vb:stylevar imgdir_statusicon}/project_new-16.png" alt="{vb:rawphrase project_forum}" /></dt><dd>{vb:rawphrase project_forum}</dd>
</vb:if>
</dl>
</div>
</div>

DELETE It
SAVE It
Your Done




12-08-2011 = DISCONTINUED

No further update will be provided. Anyone who wishes is welcome to continue this on their own.

Recommended replacement: https://vborg.vbsupport.ru/showthread.php?t=254239

Boofo
02-07-2011, 03:33 PM
Actually, it would be wiser to enclose this in the vb:comment tags instead of removing it completely.

OldSchoolDSL
02-07-2011, 03:37 PM
Actually, it would be wiser to enclose this in the vb:comment tags instead of removing it completely.

Care to explain....

Personally I think loading less page code is better for optimizing your community.

Boofo
02-07-2011, 03:43 PM
It's easier to remove the comment tags instead of adding back the code in case they ever want to reverse it.

voglermc
02-07-2011, 04:20 PM
Why not just hide it with css and leave the template alone

Boofo
02-07-2011, 04:32 PM
Why not just hide it with css and leave the template alone

I've never tried it like that. How would you go about doing it?

Gemma
02-07-2011, 04:49 PM
I've never tried it like that. How would you go about doing it?

https://vborg.vbsupport.ru/showthread.php?t=254239

Like this?

OldSchoolDSL
02-07-2011, 04:50 PM
It's easier to remove the comment tags.....

As I have no idea what your talking about or how to go about that... I'll take your word for it.

But I still think removing un-needed code (in my opinion) is better, rather then adding more.

You're more then welcome to release your own modification & steps though.

voglermc
02-07-2011, 04:51 PM
Add this to your additional.css template

#wgo_legend.wgo_subblock.section{
display:none;
}

voglermc
02-07-2011, 04:54 PM
The reason I do it this way is when I update VB to the next version, it does not find a template that needs updating. I prefer not hacking templates unless extremely necessary.

Boofo
02-07-2011, 07:41 PM
https://vborg.vbsupport.ru/showthread.php?t=254239

Like this?

Yes, like that. Thanks Gemma. ;)
As I have no idea what your talking about or how to go about that... I'll take your word for it.

But I still think removing un-needed code (in my opinion) is better, rather then adding more.

You're more then welcome to release your own modification & steps though.

I apologize for stepping on any toes here, that was not my intention. I was just trying to offer some advice that would make reverting it easier. To answer you question, wrapping it in the following is what I meant:
<vb:comment></vb:comment>

It basically comments out that block of code.

Dr.osamA
02-07-2011, 09:20 PM
this one

https://vborg.vbsupport.ru/showthread.php?t=254239

is Much easier

thank you

voglermc
02-07-2011, 10:10 PM
this one

https://vborg.vbsupport.ru/showthread.php?t=254239

is Much easier

thank you
It was not updated for 4.1.1 yet and does not do all it says for that version

OldSchoolDSL
02-08-2011, 02:44 AM
Yes, like that. Thanks Gemma. ;)


I apologize for stepping on any toes here, that was not my intention. I was just trying to offer some advice that would make reverting it easier. To answer you question, wrapping it in the following is what I meant:


It basically comments out that block of code.


meh ..... No worries. Everyone is welcome to their opinion and also its good to learn new things.

But if you ever learn how to remove the forum legends, by removing code... As I've yet to find out how to do this.... It would be helpful. :)

OldSchoolDSL
12-08-2011, 11:35 PM
12-08-2011 = DISCONTINUED

No further update will be provided. Anyone who wishes is welcome to continue this on their own.

Recommended replacement: https://vborg.vbsupport.ru/showthread.php?t=254239