vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > v3 Arcade Support > Addon Modifications & Hacks

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2011, 04:09 PM
Gemma's Avatar
Gemma Gemma is offline
Senior Member
 
Join Date: Nov 2004
Location: Scotland
Posts: 454
Default Lights Off (Simplified Version)

I've got two versions of the lights off mode, if anyone wants to have a go at the simplified version then here is the code and files.

Upload lights_out.css to your css folder (if you don't have a css folder, create one) and upload light_bulb.png and light_bulb_off.png to your images/arcade folder.

Add the following to the bottom of your headinclude template
Code:
<link rel="stylesheet" href="css/lights_out.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript">
	function lightsOn()
	{
		$('#dim').fadeOut(500,function() { $("#dim").remove(); });
	};

	function lightsOff()
	{
		$('body').append('<div id="dim"></div>');
		$('#dim').fadeIn(250);
	};
	
</script>
Save the template

Open your v3ARCADE_PLAY template

Find:
Code:
<body>
Below add:
Code:
<body1>
Find:
Code:
<td align="center" class="blockbody" valign="top">
			<!-- main -->
Below that add
Code:
<div id="video">
	<div id="controlBar"><img src="{vb:raw vboptions.arcadeimages}/light_bulb_off.png"><a href="javascript:lightsOff()">Turn Off The Lights</a>&nbsp;&nbsp;&nbsp;<span>|</span>&nbsp;&nbsp;<img src="{vb:raw vboptions.arcadeimages}/light_bulb.png"><a href="javascript:lightsOn()">Turn On The Lights </a><br />
	</div>
Find:
Code:
{vb:raw footer}
</body>
</html>
Replace with:
Code:
{vb:raw footer}
</div>
</body1>
</body>
</html>
You can change the opacity of the lights dimming by changing this line in the css file opacity: 1.0; and making it lower.

I'm sure some of you will be able to enhance it

The advanced version looks like this - http://www.forumbanter.com/arcade/game-166/
__________________
Arcade Junkies - one site, two arcades and a whole lot of other goodies.
Reply With Quote
  #2  
Old 10-25-2011, 04:47 PM
Gemma's Avatar
Gemma Gemma is offline
Senior Member
 
Join Date: Nov 2004
Location: Scotland
Posts: 454
Default Re: Lights Off (Simplified Version)

Released an updated version - http://www.vbulletin.org/forum/showthread.php?t=272803
Reply With Quote
  #3  
Old 01-21-2012, 10:58 AM
Gemma's Avatar
Gemma Gemma is offline
Senior Member
 
Join Date: Nov 2004
Location: Scotland
Posts: 454
Default Re: Lights Off (Simplified Version)

New version released - http://www.vbulletin.org/forum/showthread.php?t=277346
Reply With Quote
  #4  
Old 09-05-2012, 05:31 PM
sano2007 sano2007 is offline
Junior Member
 
Join Date: Aug 2012
Posts: 4
Default

Thanks Gemma, you are great

but i need the vb 3.7.x version if you can make it ?

Thanks a lot .
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 -4. The time now is 02:10 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.