vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Display Enhancements - Icon Legend - Remove (https://vborg.vbsupport.ru/showthread.php?t=258498)

OldSchoolDSL 02-06-2011 10:00 PM

Icon Legend - Remove
 
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:

PHP Code:

<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

Quote:

Originally Posted by Boofo (Post 2159793)
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

Quote:

Originally Posted by voglermc (Post 2159814)
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

Quote:

Originally Posted by Boofo (Post 2159818)
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

Quote:

Originally Posted by Boofo (Post 2159796)
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
Code:

#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

Quote:

Originally Posted by Gemma (Post 2159822)

Yes, like that. Thanks Gemma. ;)
Quote:

Originally Posted by OldSchoolDSL (Post 2159823)
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:
Quote:

<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

Quote:

Originally Posted by Dr.osamA (Post 2159940)
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

Quote:

Originally Posted by Boofo (Post 2159887)
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


All times are GMT. The time now is 01:53 AM.

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.01107 seconds
  • Memory Usage 1,770KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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