vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - v3 Arcade Lights Out Mode (https://vborg.vbsupport.ru/showthread.php?t=272803)

woffie 11-12-2011 11:42 AM

I have tried every suggestion, nothing works. Oh well

Mark.B 11-12-2011 02:48 PM

Thanks Gemma, I have this working spot on in v3Arcade.

You may be interested to know that I also got this working in ibProArcade, the code is almost the same, *except* it wouldn't work in IE for reasons I can't fathom.
But, it's fine in v3Arcade in IE.

Brandon Sheley 11-12-2011 03:21 PM

nice addition, thanks for sharing :)

Mark.B 11-12-2011 04:44 PM

Managed to get this version working in IE ibProArcade.

Tip for anyone trying that:
Instead of the footer instructions, add this to the copyright function in skin_arcade (or skin_v3arcade):
Code:

$text = $text . "</div></div><div id='shadow'></div> ";

stangger5 11-14-2011 12:03 AM

For ibproarcade,,I put

PHP Code:

</div></div><div id='shadow'></div

right above the last

PHP Code:

</table

in the function game($game,$top,$extra) code..

Thanks Gemma !!

woffie 11-15-2011 01:24 AM

Awesome, it works on an arcade it was not made for and I can't get it to work on the one it was written for. :(

Gemma 11-15-2011 04:15 PM

Quote:

Originally Posted by woffie (Post 2268052)
Awesome, it works on an arcade it was not made for and I can't get it to work on the one it was written for. :(

If you want me to have a go at installing it for you (or checking for conflicts) PM me a temporary admin account on your site and I'll have a look. Can't really say why its not working without testing.

Gemma 11-16-2011 09:42 AM

Quote:

Originally Posted by woffie (Post 2268052)
Awesome, it works on an arcade it was not made for and I can't get it to work on the one it was written for. :(

Should be working for you now :D

ofir24 11-16-2011 09:46 AM

you forgot my message :
https://vborg.vbsupport.ru/showpost....4&postcount=30

Gemma 11-16-2011 10:46 AM

Quote:

Originally Posted by ofir24 (Post 2268487)

Don't know if this will work or not :o

Go to AdminCP > Languages & Phrases > Phrase Manager

Add two new phrases

Phrase Type: Global
Product: vBulletin
Var Name: lights_on
Text: Your translation of 'Turn The Lights On'

Do the same but for lights_off

Then in your v3ARCADE_PLAY find:

Code:

<!-- main -->
            <div class="blockrow">{vb:raw flashcode}</div>
            <vb:if condition="$game['instructions']">
                <div class="blockrow">{vb:raw game.instructions}</div>
            </vb:if>
            <!-- /main -->
        </td>

        <td valign="top" style="width: 200px; padding-left: 10px;">
            <!-- right area -->

Replace with:
Code:

<vb:if condition="THIS_SCRIPT == 'arcade'">
<script type="text/javascript">
        $(document).ready(function(){
    $("#shadow").css("height", $(document).height()).hide();
    $(".lightSwitcher").click(function(){
        $("#shadow").toggle();
        if ($("#shadow").is(":hidden"))
            $(this).html("{vb:rawphrase lights_off}").removeClass("turnedOff");
        else
            $(this).html("vb:rawphrase lights_on").addClass("turnedOff");
    });
});
    </script>
</vb:if>
<link rel="stylesheet" href="css/lights.css"/>
<div id="acontainer">
          <div id="header"> 
            <div id="command"><a class="lightSwitcher" href="javascript:void(0)">{vb:rawphrase lights_on}</a></div>
        </div>
        <div id="movie">
            <div class="blockrow">{vb:raw flashcode}</div>
                       
            <!-- /main -->

<table width="700" border="0">
 <vb:if condition="$game['description']">
  <tr>
  <th scope="row"><span><b>Description:</b> {vb:raw game.description}<br/><br/></span></th>
    </tr>
    </vb:if>
<vb:if condition="$game['instructions']">
  <tr>
    <th scope="col"><span><b>Instructions:</b> {vb:raw game.instructions}</span></th>
    </tr>
    </vb:if>

</table>
</td>
        <td valign="top" style="width: 200px; padding-left: 10px;">
            <!-- right area -->

Find:
Code:

{vb:raw footer}
Below add:
Code:

</div>
    </div>
    <div id="shadow"></div>

Save.

Upload the lights.css file and the images, no need for the lights.js file or headinclude template edit.


All times are GMT. The time now is 07:42 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.01094 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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