![]() |
v3 Arcade Lights Out Mode
1 Attachment(s)
I did this a long time ago, so I'd advise you to back up your v3ARCADE_PLAY template before you do anything else, just incase I've forgotten something :o
I released a simplified version of this to Premium Members on v3arcade.com, now here is the more advanced version. What Does This Do? Basically, when you turn lights down, the entire page darkens and let you play the game in the 'dark' which cuts out distractions. I've also added a section of code which will show a game description (if one is available) above the game instructions. Open your headinclude template and add: Code:
<vb:if condition="THIS_SCRIPT == 'arcade'"> In your v3ARCADE_PLAY template and find: Code:
<!-- main --> Code:
<!-- main --> Code:
{vb:raw footer} Code:
</div> Upload the contents of the zip file to your server using your FTP css/lights.css js/lights.js images/arcade/light_bulb.png images/arcade/light_bulb_off.png images/arcade/shade5x5.png You can see a live demo in our arcade, play a game and click on 'Turn The Lights Off'. To upgrade from version 1.0.1 to version 1.0.2, unpack the archive and upload the files. No need to re-edit any templates Version History 1.0.1 - Initial release on vB.org 1.0.2 - Added new lights.css file If anyone wants to further develop any of my addons, you are free to do so. |
Sorry, I had a bit of the code wrong. If you had already installed and it wasn't working, change the headinclude template to this:
Code:
<vb:if condition="THIS_SCRIPT == 'arcade'"> |
Updated the css file to fix a problem when viewing with Google Chrome. If you're updating, just replace the css file.
|
Installed, doesn't seem to work on Google Chrome. In fact, it doesn't work at all I'm afraid. I tried IE, FireFox and Chrome. None of them worked. I copy/pasted the exact lines as instructed.
|
Does the demo link work for you?
Can you PM me a link to your site so I can have a look |
Yea, demo works fine: http://forum.esforces.com
|
Try this,
In your v3ARCADE_PLAY template find: Code:
<!-- main --> Code:
<!-- main --> Code:
{vb:raw footer} Code:
</div> |
Doesn't work either I'm afraid. Makes the light button unclickable. Nothing happens. Not even the light text changes to on.
Btw, I know this is off-topic, but I've made a edit reply in the main arcade thread regarding new threads/replies on highscores ^^. |
Just below:
Code:
<vb:if condition="THIS_SCRIPT == 'arcade'"> Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> |
Nothing still I'm afraid, here's my play template:
Code:
{vb:stylevar htmldoctype} |
All times are GMT. The time now is 08:40 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|