vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   v3arcade Alternative Layout (https://vborg.vbsupport.ru/showthread.php?t=99007)

Oblivion Knight 10-21-2005 10:00 PM

v3arcade Alternative Layout
 
This is a port of GenSec's 3.0.x release (here).

This modification changes the layout of your main index page, and makes much better use of the space available.. It has been completely rewritten from scratch (using previous code as guidance), and is fully integrated with the Arcade Settings in the Admin CP. It is also fully phrased for our foreign friends.. :)

All credit to GenSec for the layout design, who has kindly given permission for me to release this.

Note: If you use the vbBux integration, please ensure that you're using the latest arcade_game_bit_slim template, otherwise you may get a display error.


Compatability: 1.0.6
Screenshots attached (outdated, but gives the general idea).. :)

deathemperor 10-22-2005 09:41 AM

[high]* deathemperor clicks install
[/high]

there're something I want to note, maybe it's because it's been along time since the last time we did the file editing to install a hack.

you should change:

Code:

In admincp/arcadeadmin.php find:

// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// DELETE GAME
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
if ($_REQUEST['do'] == 'deletegame')
{
        print_cp_header($vbphrase['arcade_games']);

        $vbulletin->input->clean_array_gpc('r', array(
        'gameid' => TYPE_UINT
        ));
       
        if ($thisgame = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "arcade_games AS arcade_games WHERE gameid=" . $vbulletin->GPC['gameid']))
        {
                $game_path = realpath($vbulletin->options['gamedir']);
                $image_path = realpath($vbulletin->options['arcadeimages']);
       
                $db->query_write("DELETE FROM " . TABLE_PREFIX . "arcade_games WHERE gameid=" . $vbulletin->GPC['gameid']);
                $db->query_write("DELETE FROM " . TABLE_PREFIX . "arcade_sessions WHERE gameid=" . $vbulletin->GPC['gameid']);

                @unlink($image_path . '/' . $thisgame['shortname'] . '1.gif');
                @unlink($image_path . '/' . $thisgame['shortname'] . '2.gif');
                @unlink($game_path . '/' . $thisgame['shortname'] . '.swf');
        }
        print_cp_redirect('arcadeadmin.php?do=games');
}

to

Code:

In admincp/arcadeadmin.php find:

// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// GAME TOOLS
// Everything to do with adding games.
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

and the next step is "Above it add".

And reduce the last 2 steps to one.

Code:

Find:

                                                                eval('$gamebits .= "' . fetch_template('arcade_game_bit' . iif($barsize==1, '_slim')) . '";');

                        }
                }

        }

Code:

replace it with

                                eval('$gamebits .= "' . fetch_template('arcade_game_bit' . iif($barsize==1, '_slim')) . '";');
                                $g++;
                                $x++;
                        }
                }

                // Finish processing the $gamebits for GenSec's template mod
                $gamebits .= '</tr>';

        }

        // Make sure we don't use any more memory than we need to..
        unset($x);

        // Construct categories.

That will make life easier ^^.

just my 2 cents.

Oblivion Knight 10-22-2005 10:22 AM

Done. :)

Sorry, it's been a while.. :D

ConqSoft 11-03-2005 12:48 PM

All my file sizes are showing 0... Do we need to do something to mass update all the sizes? (Sorry if I missed it in the instructions, but I did look.) :)

ConqSoft 11-03-2005 12:50 PM

Nevermind. Just saw the new option in AdminCP.

ConqSoft 11-03-2005 12:54 PM

Great mod! Thanks!

I changed the IMG tag in the game bits to have width="50" and height="50" hardcoded, since all standard images should be that size. Keeps the screen from jumping all over as the page loads. I also removed the Viewing Mode section from the right navbar.

Oblivion Knight 11-03-2005 06:07 PM

Quote:

Originally Posted by ConqSoft
I changed the IMG tag in the game bits to have width="50" and height="50" hardcoded, since all standard images should be that size. Keeps the screen from jumping all over as the page loads.

Good call.! I'll add that to the zip.. :)


Quote:

Originally Posted by ConqSoft
I also removed the Viewing Mode section from the right navbar.

I'm tempted to leave this.. With a bit of trickery, it should be possible to select between this layout and the standard layout (or even some totally different layout). It's something that I'm looking in to..

idwf 11-04-2005 08:26 AM

Quote:

Originally Posted by Oblivion Knight
Good call.! I'll add that to the zip.. :)


I'm tempted to leave this.. With a bit of trickery, it should be possible to select between this layout and the standard layout (or even some totally different layout). It's something that I'm looking in to..

we cant get the arcade atm... hmm...

Oblivion Knight 11-04-2005 08:29 AM

I know.. ;)

Quote:

v3arcade for 3.5.0 is currently in a private beta phase, with a public beta due out shortly.. For more information, please visit http://www.v3arcade.com

TJFweb 11-04-2005 09:52 AM

Argh all these v3arcade addons..... Release the 3.5.0 version already!!! ;)


All times are GMT. The time now is 01:46 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.01049 seconds
  • Memory Usage 1,748KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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