vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Mourning Mode [Works with IE] (https://vborg.vbsupport.ru/showthread.php?t=244977)

sharkfin 06-20-2010 09:00 PM

Mourning Mode [Works with IE]
 
1 Attachment(s)
Mourning Mode [Works with IE]

Many of the bulletin boards are based on a particular community or a nation. And if a natural disaster happened in your area , what about making the color of the site dim? Have you ever thought of having a MOD for that?
OR
If any of your staff/active member died. You really want to express your condolences to them. Right?

This is right mod for the above said purposes. You can turn your site to Morning Mode with this and the whole color of the forum changes to gray scale(only in Internet Explorer).

Installing this MOD

Template Edits

At headinclude template , Add this at bottom :
Code:

<script type="text/javascript">
<!--
function dim_color()
{
        // Mourning Mode Hack ;)
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
}
dim_color();
//-->
</script>

To temporarily disable this hack
At headinclude template , Find
Code:

<script type="text/javascript">
<!--
function dim_color()
{
        // Mourning Mode Hack ;)
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
}
dim_color();
//-->
</script>

Remove
Code:

dim_color();
And to enable this again , just add that line again. :)

To uninstall / turn off this hack completely :
At headinclude template , Remove this code ..
Code:

<script type="text/javascript">
<!--
function dim_color()
{
        // Mourning Mode Hack ;)
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
}
dim_color();
//-->
</script>


Please click 'Mark as Installed' if you use liked this hack.

tafreeh 06-21-2010 04:06 AM

Tagged for future use... (( hopefully not !!! :D lol ))

RobbieZ 06-23-2010 11:00 PM

You need to make it working across all browser platforms.

Sajeth 06-25-2010 11:52 AM

Wont work with all designs and only shows effect in Internet Explorer... pretty useless, although I really like the idea behind it ;)

MichaelDance 08-16-2010 12:39 PM

Id like it if it worked in every browser as most of my users use Chrome or Firefox....


All times are GMT. The time now is 05:53 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.01594 seconds
  • Memory Usage 1,715KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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