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.


All times are GMT. The time now is 05:27 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.01028 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete