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 Manually Add Game via Admin CP (https://vborg.vbsupport.ru/showthread.php?t=103920)

vchase 03-17-2006 07:23 AM

thanks! installed

WoodiE 03-30-2006 06:44 PM

Oblivion Knight thanks so much for this add-on. After many failed attempts at trying to get John to fix a problem adding games, I was able to install this add-on and manually add them myself and it works - to bad the auto system doesn't.

Thanks again!

-Michael

Oblivion Knight 04-08-2006 08:00 PM

You're most welcome, WoodiE.. :)

Cajun 04-09-2006 06:10 AM

I am using v3arcade 1.0.5. I installed this mod and I can add games but can not edit them after installing. I have to reinstall the un-edited arcadeamin.php file to edit any on my games.

I see this mod is for v3arcade 1.0.2 only. Is that causing this problem and if so will you update to work with v3arcade 1.0.5 and 1.0.6?

Oblivion Knight 04-09-2006 08:45 AM

It states 1.0.2, however other users have tested it with newer versions and haven't reported any such problems. I'll try and find some time to look into it though..

In the meantime I suggest double checking your file edits of admincp/arcadeadmin.php

Oblivion Knight 04-28-2006 10:27 PM

1.0.2 is now available..
Just a small update to integrate the vbBux addon that was added to v3arcade.


Upgrade Instructions:
Open up admincp/arcadeadmin.php and find:
Code:

        print_input_row($vbphrase['flash_file'], 'file', $game['file']);
        print_input_row($vbphrase['standard_image'], 'stdimage', $game['stdimage']);
        print_input_row($vbphrase['mini_image'], 'miniimage', $game['miniimage']);

        print_yes_no_row($vbphrase['is_active'] . $vbphrase['is_active_dfn'], 'gamepermissions[isactive]', $game['permissions']['isactive']);
        print_yes_no_row($vbphrase['show_award'], 'gamepermissions[showaward]', $game['permissions']['showaward']);
        print_yes_no_row($vbphrase['enable_challenges'], 'gamepermissions[enablechallenges]', $game['permissions']['enablechallenges']);
        print_yes_no_row($vbphrase['use_reverse'], 'isreverse', $game['isreverse']);

Below it, add:
Code:

        // vbBux Integration
        if ($vbulletin->options['vbbux_pointsfield'])
        {
                print_input_row($vbphrase['game_cost'], 'cost', $game['cost']);
        }

Find:
Code:

        'categoryid' => TYPE_UINT
        ));

        // Get that bitfield value calculated.
        require_once(DIR . '/includes/functions_misc.php');
        $vbulletin->GPC['gamepermissions'] = convert_array_to_bits($vbulletin->GPC['gamepermissions'], $vbulletin->bf_misc_gamepermissions);

        if ($vbulletin->GPC['author'] == '' AND $vbulletin->GPC['instructions'] == '')
        {
                $db->query_write("INSERT INTO " . TABLE_PREFIX . "arcade_games (shortname, title, description, file, width, height, miniimage, stdimage, gamepermissions, categoryid, dateadded, minpoststotal, minpostsperday, minpoststhisday, minreglength, minrep, isreverse) VALUES
                ('" . addslashes($vbulletin->GPC['shortname']) . "', '" . addslashes($vbulletin->GPC['title']) . "', '" . addslashes($vbulletin->GPC['description']) . "', '" . addslashes($vbulletin->GPC['file']) . "', '" . $vbulletin->GPC['width'] . "', '" . $vbulletin->GPC['height'] . "', '" . addslashes($vbulletin->GPC['miniimage']) . "', '" . addslashes($vbulletin->GPC['stdimage']) . "', '" . $vbulletin->GPC['gamepermissions'] . "', '" . $vbulletin->GPC['categoryid'] . "', '" . TIMENOW . "', '" . $vbulletin->GPC['minpoststotal'] . "', '" . $vbulletin->GPC['minpostsperday'] . "', '" . $vbulletin->GPC['minpoststhisday'] . "', '" . $vbulletin->GPC['minreglength'] . "', '" . $vbulletin->GPC['minrep'] . "', '" . $vbulletin->GPC['isreverse'] . "')");
        } else {
                $db->query_write("INSERT INTO " . TABLE_PREFIX . "arcade_games (shortname, title, author, description, instructions, file, width, height, miniimage, stdimage, gamepermissions, categoryid, dateadded, minpoststotal, minpostsperday, minpoststhisday, minreglength, minrep, isreverse) VALUES
                ('" . addslashes($vbulletin->GPC['shortname']) . "', '" . addslashes($vbulletin->GPC['title']) . "', '" . addslashes($vbulletin->GPC['author']) . "', '" . addslashes($vbulletin->GPC['description']) . "', '" . addslashes($vbulletin->GPC['instructions']) . "', '" . addslashes($vbulletin->GPC['file']) . "', '" . $vbulletin->GPC['width'] . "', '" . $vbulletin->GPC['height'] . "', '" . addslashes($vbulletin->GPC['miniimage']) . "', '" . addslashes($vbulletin->GPC['stdimage']) . "', '" . $vbulletin->GPC['gamepermissions'] . "', '" . $vbulletin->GPC['categoryid'] . "', '" . TIMENOW . "', '" . $vbulletin->GPC['minpoststotal'] . "', '" . $vbulletin->GPC['minpostsperday'] . "', '" . $vbulletin->GPC['minpoststhisday'] . "', '" . $vbulletin->GPC['minreglength'] . "', '" . $vbulletin->GPC['minrep'] . "', '" . $vbulletin->GPC['isreverse'] . "')");
        }

Replace it with:
Code:

        'categoryid' => TYPE_UINT,
        'cost' => TYPE_NUM
        ));

        // Get that bitfield value calculated.
        require_once(DIR . '/includes/functions_misc.php');
        $vbulletin->GPC['gamepermissions'] = convert_array_to_bits($vbulletin->GPC['gamepermissions'], $vbulletin->bf_misc_gamepermissions);

        if ($vbulletin->GPC['author'] == '' AND $vbulletin->GPC['instructions'] == '')
        {
                $db->query_write("INSERT INTO " . TABLE_PREFIX . "arcade_games (shortname, title, description, file, width, height, miniimage, stdimage, gamepermissions, categoryid, dateadded, minpoststotal, minpostsperday, minpoststhisday, minreglength, minrep, isreverse, cost) VALUES
                ('" . addslashes($vbulletin->GPC['shortname']) . "', '" . addslashes($vbulletin->GPC['title']) . "', '" . addslashes($vbulletin->GPC['description']) . "', '" . addslashes($vbulletin->GPC['file']) . "', '" . $vbulletin->GPC['width'] . "', '" . $vbulletin->GPC['height'] . "', '" . addslashes($vbulletin->GPC['miniimage']) . "', '" . addslashes($vbulletin->GPC['stdimage']) . "', '" . $vbulletin->GPC['gamepermissions'] . "', '" . $vbulletin->GPC['categoryid'] . "', '" . TIMENOW . "', '" . $vbulletin->GPC['minpoststotal'] . "', '" . $vbulletin->GPC['minpostsperday'] . "', '" . $vbulletin->GPC['minpoststhisday'] . "', '" . $vbulletin->GPC['minreglength'] . "', '" . $vbulletin->GPC['minrep'] . "', '" . $vbulletin->GPC['isreverse'] . "', '" . $vbulletin->GPC['cost'] . "')");
        } else {
                $db->query_write("INSERT INTO " . TABLE_PREFIX . "arcade_games (shortname, title, author, description, instructions, file, width, height, miniimage, stdimage, gamepermissions, categoryid, dateadded, minpoststotal, minpostsperday, minpoststhisday, minreglength, minrep, isreverse, cost) VALUES
                ('" . addslashes($vbulletin->GPC['shortname']) . "', '" . addslashes($vbulletin->GPC['title']) . "', '" . addslashes($vbulletin->GPC['author']) . "', '" . addslashes($vbulletin->GPC['description']) . "', '" . addslashes($vbulletin->GPC['instructions']) . "', '" . addslashes($vbulletin->GPC['file']) . "', '" . $vbulletin->GPC['width'] . "', '" . $vbulletin->GPC['height'] . "', '" . addslashes($vbulletin->GPC['miniimage']) . "', '" . addslashes($vbulletin->GPC['stdimage']) . "', '" . $vbulletin->GPC['gamepermissions'] . "', '" . $vbulletin->GPC['categoryid'] . "', '" . TIMENOW . "', '" . $vbulletin->GPC['minpoststotal'] . "', '" . $vbulletin->GPC['minpostsperday'] . "', '" . $vbulletin->GPC['minpoststhisday'] . "', '" . $vbulletin->GPC['minreglength'] . "', '" . $vbulletin->GPC['minrep'] . "', '" . $vbulletin->GPC['isreverse'] . "', '" . $vbulletin->GPC['cost'] . "')");
        }

Done.

S@NL - BlackBik 04-30-2006 08:05 PM

Thanks a lot OK.
Since I updated the Arcade, mass import doesn't work anymore.
This way I'm still able to add games.

a43079 05-22-2006 08:30 AM

i get this error after installing and tried to do a v3 Arcade - Mass Game Import after i hit start it cave me this error

Code:

Fatal error: Call to a member function read() on a non-object in C:\Program Files\Apache Group\Apache2\htdocs\home\forum\admincp\arcadeadmin.php on line 719
line 791 shows

Code:

        while (($filename = $d->read()) AND ($counter<$vbulletin->GPC['gamesperpage'])) {

HS2005 05-22-2006 04:33 PM

This Works Really Great, Your a Great Coder to come up with this handy Coding for vb 3.5.4 arcade help.

EDIT: I watched the .php codes for activating the submit code.
You Said That it must have been already imported for vb arcade to work.
but i looked up the php codes but i see no changes of one who is activated with v3 arcade and can submist and a game who can't submit.

Have any idea if it's even a .php file or does it lie different

a43079 05-23-2006 12:51 PM

Quote:

Originally Posted by a43079
i get this error after installing and tried to do a v3 Arcade - Mass Game Import after i hit start it cave me this error

Code:

Fatal error: Call to a member function read() on a non-object in C:\Program Files\Apache Group\Apache2\htdocs\home\forum\admincp\arcadeadmin.php on line 719
line 791 shows

Code:

        while (($filename = $d->read()) AND ($counter<$vbulletin->GPC['gamesperpage'])) {


could i get someone to help me with this please..

Oblivion Knight 05-24-2006 01:43 PM

Quote:

Originally Posted by a43079
could i get someone to help me with this please..

I'll take a look, although that line isn't touched by this modification IIRC..

You should try fixing this typo though..
Code:

        while (($filename = $d->read()) AND ($counter<$vbulletin->GPC['gamesperpage'])) {
Should read:
Code:

        while (($filename = $d[high]b[/high]->read()) AND ($counter<$vbulletin->GPC['gamesperpage'])) {

a43079 05-25-2006 06:37 AM

thank you i fixed the typo any help you can give me would be great thank you..

analog-x 05-27-2006 12:11 AM

I installed this MOD, but than I was unable to edit my other games details.

I followed the installation instructions very carefully. Once I removed this MOD i was able to edit my Game Details again.

a43079 06-02-2006 06:59 AM

well thank you for the help after playing with it for a week i figured it out its working fine now thank you..

bayard88 06-02-2006 10:17 AM

installed
thanks ;)

Oblivion Knight 06-03-2006 06:24 AM

Quote:

Originally Posted by a43079
well thank you for the help after playing with it for a week i figured it out its working fine now thank you..

Fixing that typo should have fixed it I think.. Was there anything else you needed to do?

foulplay 06-18-2006 02:59 AM

This hack would have been perfect if you could submit scores.

SupremeWeapon 06-20-2006 05:57 AM

Code:

Parse error: syntax error, unexpected T_STRING, expecting ']' in /var/www/forums/admincp/arcadeadmin.php on line 1114
Get this when trying to go tot he game import area. made file modifications to a T also.

Q139 07-02-2006 08:01 PM

Great mod....installed!!!

mljask 08-14-2006 11:57 AM

does this mod works for vbulletin 3.6???

Oblivion Knight 08-14-2006 12:51 PM

Quote:

Originally Posted by mljask
does this mod works for vbulletin 3.6???

I see no reason why it shouldn't, but I cannot confirm this.

Chicago_VLNU_4s 09-30-2006 07:50 PM

i don't have the file

Quote:

admincp/arcadeadmin.php
where can i get this?

andy1074 10-12-2006 09:11 AM

i installed this hack succesfully
thank you very very mach
when i installed a new game by this hack it works but dose not submit record
what should i do
please help me ...

F34R 10-17-2006 08:51 PM

Using this mod, after I've set the game up, they work fine. However, the Time Played stat for the game shows ZERO on all games I install with this mod. How do I get it to show the time played like it does for all the script installed games ?

litfoo 11-30-2006 08:07 PM

I have installed this mod, but really cannot see where I can actually manually add a game

help appreciated

litfoo

ZBJsmom 03-17-2007 01:23 PM

I too have successfully installed this hack but can't actually see where I manually add a game in the AdminCP.

Can anyone help us, please?

UPDATE! It appeared after I logged out of admin CP. thanks!

Ekshi 05-27-2007 10:01 PM

Nice add ons ;)

Lovemonk 02-16-2008 07:32 PM

Downloaded, installed, and I love it. Cheers!:o

m411b 09-04-2009 10:58 PM

Wish I could submit scores! Is there a fix?


All times are GMT. The time now is 01:33 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.01354 seconds
  • Memory Usage 1,819KB
  • 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
  • (11)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)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