Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Turn colors on/off Details »»
Turn colors on/off
Version: 1.00, by Mazinger Mazinger is offline
Developer Last Online: Feb 2019 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 11-19-2007 Last Update: Never Installs: 9
Template Edits
Is in Beta Stage  
No support by the author.

This modification allows users to turn on/off colors in the style (grayscale) - (works in IE Only).



Screenshot:



--------

Installation:

In Navbar, search for:

HTML Code:
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
Above it, add:

HTML Code:
<!-- colors form -->
<td class="alt1">
<script language="JavaScript">
<!--
function ColorsOff()
{
 ht = document.getElementsByTagName("html");
 ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
}
function ColorsOn()
{
 ht = document.getElementsByTagName("html");
 ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=0)";
}
function changeButton()
{
 if (document.onoff.B1.value=='Colors Off')
 {
 document.onoff.B1.value='Colors On';
 ColorsOff()
 }
 else
 {
 document.onoff.B1.value='Colors Off';
 ColorsOn()
}
}
//-->
</script>
<form name="onoff">
  <input type="button" value="Colors Off" name="B1" class="button" style="width: 80px;" onClick="changeButton()" />
</form>
</td>
<!-- / colors form -->
Save the work.

--------

Credits: Thanks to Wayne Luke for his help in making this mod.

What's next: Looking for someway to save selected option with cookies.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-20-2007, 06:54 PM
daz1967's Avatar
daz1967 daz1967 is offline
 
Join Date: Mar 2007
Location: birmingham
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting thanks
Reply With Quote
  #3  
Old 11-20-2007, 07:37 PM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Work only in IE and it's very useless.
Reply With Quote
  #4  
Old 11-20-2007, 07:56 PM
TigerWare TigerWare is offline
 
Join Date: Feb 2007
Location: England, UK
Posts: 282
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by testebr View Post
Work only in IE and it's very useless.
Think "People With Visual Impairments". It may actually be quite useful to the "usually forgotten minority". To be visually impaired is a huge problem for some surfers as they have great difficulty with certain colours. Having a button to swith off colours can be a huge asset on a specialist website. Not 'useless' at all.

Good job Mazinger!
Reply With Quote
  #5  
Old 11-20-2007, 08:06 PM
lostgirl815 lostgirl815 is offline
 
Join Date: Apr 2006
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, very nice! Tagging this for future use.
Reply With Quote
  #6  
Old 11-20-2007, 08:07 PM
Mazinger's Avatar
Mazinger Mazinger is offline
 
Join Date: Nov 2006
Location: Egypt
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TigerWare View Post
Think "People With Visual Impairments". It may actually be quite useful to the "usually forgotten minority". To be visually impaired is a huge problem for some surfers as they have great difficulty with certain colours. Having a button to swith off colours can be a huge asset on a specialist website. Not 'useless' at all.

Good job Mazinger!
Exactly! Thanks for the info.
Reply With Quote
  #7  
Old 11-20-2007, 08:16 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It didn't work on my test board. BTW, the button appeared below the Navbar. 3.6.8 PL1. TIA.
Reply With Quote
  #8  
Old 11-20-2007, 08:19 PM
Mazinger's Avatar
Mazinger Mazinger is offline
 
Join Date: Nov 2006
Location: Egypt
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested it on IE - not sure about FF, probably I can test it on FF this week.


@Fungsten, add the code above this:

HTML Code:
<!-- / breadcrumb, login, pm info -->
Reply With Quote
  #9  
Old 11-20-2007, 08:21 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mazinger View Post
I tested it on IE - not sure about FF, probably I can test it on FF this week.


@Fungsten, add the code above this:

HTML Code:
<!-- / breadcrumb, login, pm info -->
Here's where I put it:

Quote:

</tr>
</table>
<!-- colors form -->
<td class="alt1">
<script language="JavaScript">
<!--
function ColorsOff()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progidXImageTransform.Microsoft.BasicImage(gray scale=1)";
}
function ColorsOn()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progidXImageTransform.Microsoft.BasicImage(gray scale=0)";
}
function changeButton()
{
if (document.onoff.B1.value=='Colors Off')
{
document.onoff.B1.value='Colors On';
ColorsOff()
}
else
{
document.onoff.B1.value='Colors Off';
ColorsOn()
}
}
//-->
</script>
<form name="onoff">
<input type="button" value="Colors Off" name="B1" class="button" style="width: 80px;" onClick="changeButton()" />
</form>
</td>
</tr>
</table>
<!-- / colors form -->
<!-- / breadcrumb, login, pm info -->
Reply With Quote
  #10  
Old 11-20-2007, 09:24 PM
Mazinger's Avatar
Mazinger Mazinger is offline
 
Join Date: Nov 2006
Location: Egypt
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add the code above the first two lines:

HTML Code:
</tr>
</table>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08359 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete