PDA

View Full Version : Add-On Releases - v3 Arcade - Professional vBulletin Gaming (vB4)


Pages : [1] 2 3 4 5

KW802
11-04-2010, 10:00 PM
v3 Arcade is now a member of the vBadvanced family!

http://www.vbadvanced.com/forum/showthread.php?t=47571

The support forums & data from v3Arcade.com have been merged into the vBadvanced.com site.



=================================
v3 Arcade for vBulletin 4.x.x
For vBulletin 3.x.x, please see here (https://vborg.vbsupport.ru/showthread.php?t=205692).
=================================

Please note... until v3Arcade.com is upgraded to vBulletin 4, some demo sites can be found here (http://www.v3arcade.com/forums/showthread.php?t=3563). Also, because of styling changes introduced in vB 4.0.8 to allow customized user profile pages, this version requires 4.0.8+ to be installed.

"v3 Arcade" is the premiere arcade system written specifically for vBulletin. It's coded from scratch - not a port of an older version - and because it was coded specifically for vBulletin it uses the product system for code modifications & utilizes AJAX technology throughout. Here's a brief rundown of the features in this version of v3 Arcade.

Supports MochiAds (http://www.v3arcade.com/forums/showthread.php?t=1934), v3 Arcade and IBPArcade games!
Download THOUSANDS of *legal* free and premium games directly from Mochi Media to your v3 Arcade installation. Earn money from people playing games on your site! :eek: With just a few mouse clicks you download games directly from within your ACP or from the Mochi Media web site. You have to check it out it to see just how easy it is.
Tournaments! Challenge your friends to see who the champ is! :D
Integrated arcade statistics on your user's profile pages!
AJAX based instant ratings, for simple to use game ratings.
AJAX based inline score moderation.
AJAX based instant game searching.
Tabbed, customizable categories.
Challenge system for one-on-one contests.
User-permission based settings for email/PM notification, challenge settings.
Streamlined viewing modes for users with lower resolutions.
AJAX based quick stats, for viewing statistics by passing the cursor over a username.Mass import tools for importing games in bulk.
Reverse and decimal based scoring.
Arcade-only closure with customizable message.
Per game criteria, allows you to control access to games by reputation, posts, registration length.
Postbit based awards.
Personalized recommendations for other games users might like, based on what they?re playing.
Quick stats, letting a user know how many other scores are above and below theirs.
Score ranking.
Admin customizable ?score feedback?, displays a message based on how well as user has done.
Numerous Admin CP settings to control things like popup opacity, maximum comment length, hover delay length, and numerous other behaviors.
Full admin control over the types of content allowed in comments (BB code, HTML, smilies, etc.)
Usergroup based access permissions.
Fully phrased, for each translation into other languages.
An ever growing collection of third party add-ons
A slick, professional layout.
Edit-free template updates!
User ability to specify viewing resolution while playing games.v3 Arcade for vBulletin 4 also has some feature differences versus v3 Arcade for vBulletin 3. Currently that list includes....
The separate Arcade navbar has been replaced with the options being moved up to the standard vB navbar. Be sure to turn on the navbar link! (ACP => v3 Arcade => v3 Arcade Settings => v3 Arcade General Settings => Navbar Link Position)
When viewing a game categories other than the 'All' category, the category name will now be included in the navbar breadcrumbs.
Added a new template "v3arcade_postbit_userid_trophy_wrapper" to allow adding some HTML around the arcade award images in the postbit.
The category tabs shown on the main page will use the vB styling instead of their own defined styles. As we go forward the vB4 version of v3A will lose more & more of it's custom styling and instead use more of the new vB4 styling features elements.
New option to display a "New" game category tab that will display all games in newest to oldest order. In addition to the new tab a "New Games" link will also be shown in the vB "What's New" navbar link. (ACP => v3 Arcade => v3 Arcade Settings => v3 Arcade Homepage Settings => Display "New" Category Tab)=================================
Branding Free
=================================
All v3 Arcade installations carry and require a small "v3 Arcade" logo in the footer, as well as the text "Powered by v3 Arcade" which links to http:www.v3arcade.com (http://www.v3arcade.com/). For information on legally removing the branding, please visit www.v3arcade.com (http://www.v3arcade.com/).


=================================
www.v3arcade.com (http://www.v3arcade.com/)
=================================
If you're looking for more games, add-ons, support, tutorials, or anything Arcade related - www.v3arcade.com (http://www.v3arcade.com/) is the place to go. :)


=================================
Copyright
=================================
All code & images distributed in this zip is Copyright ?2010 CinVin, with the following exceptions:
class_tar.php - Credits within.
All games & associated images, unless otherwise noted.=================================
Many thanks to...
=================================
All branding-free customers and donors, for supporting the project!
John (https://vborg.vbsupport.ru/member.php?u=10079), the original founder behind the v3 Arcade platform. :cool:
Tigga (https://vborg.vbsupport.ru/member.php?u=2861), the v3 Arcade lead developer (as well as all of the vBadvanced products! ;))
Everybody who has provided feedback & suggestions to help us make v3 Arcade to be the best arcade platform.=================================
Change Log
=================================
For the complete change log, please click here (http://www.v3arcade.com/membersarea.php?do=viewusermanual&productid=1). The change log is getting too big to include inline with this thread. ;)

KW802
11-05-2010, 06:19 PM
{reserved for screen shots, misc. stuff going forward, etc.}...

numberguy
11-05-2010, 06:42 PM
How do I go from ibProArcade for vBulletin, to V3 arcade for vBulletin? will there be an issue with the .tar files? will the new system adapt?

I am relatively new to this, but know enough to maintain a healthy board. I just don't want to mess my arcade up as it is now---it works!

KW802
11-05-2010, 07:27 PM
How do I go from ibProArcade for vBulletin, to V3 arcade for vBulletin? will there be an issue with the .tar files? will the new system adapt?

I am relatively new to this, but know enough to maintain a healthy board. I just don't want to mess my arcade up as it is now---it works!
NumberGuy,

Before you doing anything, make a backup copy of your vB database! That is always the first to be done before any type of update to your site.

After that follow the steps here (http://www.v3arcade.com/forums/showthread.php?t=3001) carefully. The most important things to remember are (a) backups, backups, backups, and (b) not to uninstall your existing arcade until you are comfortable with how your new v3A installation is working.

For the .tar files question, do you mean installing new games or existing games? If you mean existing games then those .tar files unpacked during installation and the original .tar files remove. That's the way it works with both your existing arcade and v3A. Check the /games folder on your server and you can find the actual games files. As long as you do not uninstall or delete anything from your server then everything should be imported fine and, if need be, reverted back to your existing arcade.

numberguy
11-05-2010, 08:12 PM
Thank-you, KW802!

Should I switch from ibProArcade - professional Arcade System for vBulletin, or go to v3 and why? If you don't mind me asking.

sorry, english is my second language.

KW802
11-05-2010, 09:50 PM
Thank-you, KW802!

Should I switch from ibProArcade - professional Arcade System for vBulletin, or go to v3 and why? If you don't mind me asking.

sorry, english is my second language.
That is not the easiest answer because everybody will have a different opinion on it. My opinion will be a bit biased because v3 Arcade is my project. But, with that said, a few things to consider would be...

- v3 Arcade has been designed from scratch to work with vBulletin; the other arcade was not.

- v3 Arcade has a dedicated support site; the other arcade does not.

- v3 Arcade has support for Mochi Media games, which can help bring in some revenue to your site and provides you with access to thousands of free games; the other arcade does not.

- v3 Arcade has a dedicated lead developer; the other arcade, at least at the present time, does not appear to.

- v3 Arcade is constantly adding new features and looking for ways to make integration with vBulletin easier (and hence why there are two separate versions for vB3 & vB4); the other arcade seems to rely mostly upon hacks & fixes submitted by users.


Again, though, that is just my own personal opinion. Some people love the other arcade and find no problems with it on their site.

Trip3151
11-05-2010, 10:00 PM
v3 Arcade = Supported - own community - easy to install games - easy to install - no template changes


ibProArcade = Not supported - Issues with VB4 - poor support , heaps of template / tweaks changes to get it to work with VB4 saying that there is 1 guy that has been working out the fixes for VB4.

present day v3 Arcade is 100% yes to go with

Just my thoughts :)

KevinL
11-05-2010, 10:01 PM
Awesome work!

cory_booth
11-05-2010, 10:18 PM
I get the security tokin is missing with an arcade score save - is there any code for the index.php?

KW802
11-05-2010, 10:32 PM
I get the security tokin is missing with an arcade score save - is there any code for the index.php?
Cory, thanks for reminding about that. :)

Because there is no corresponding plugin available for us to use to capture IPB scores in the CMS page, like there is in the forum home page, there is a file edit needed.

FAQ: IPB Scores Not Saving With vB4 Suite CMS (http://www.v3arcade.com/forums/showthread.php?t=3215)


For vBadvanced CMPS users who have vBa CMPS as their home page and they have vBa CMPS in the same folder as vBulletin, you will also need to do an edit for saving IPB scores for the same reason as the CMS users (because the plugin available to use in the forum home page is not available to us in the vBa CMPS page).

FAQ: IPB Scores Not Saving With vBadvanced CMPS (http://www.v3arcade.com/forums/showthread.php?t=3407)


Don't worry, we tried making it as simple as possible so it is just a one-line change.

cory_booth
11-05-2010, 10:40 PM
Thanks! Yep, that did it and I must say - seems MUCH faster than the other.
Scores are saving where they didn't before - that's cool!

I was looking forward to this release as it will get my games in the right format for a "different" forum I have... :-)

cory_booth
11-05-2010, 10:46 PM
OK...
So let me get the smack now if I missed the post on v3arcade...

But...
Are there any ready available php scripts for building a CMPS or PHP Widget for scores?

cory_booth
11-05-2010, 10:50 PM
One issue...
I noticed I had to enable Tournaments to get permission to play a game.
I set all Arcade permissions to "yes" for admin - got No permission
I then saw the tournament and set all to "yes" and was allowed.

Strange I needed to enable tournaments for the aracde?

KW802
11-05-2010, 11:41 PM
OK...
So let me get the smack now if I missed the post on v3arcade...

But...
Are there any ready available php scripts for building a CMPS or PHP Widget for scores?There is the "Stats (http://www.v3arcade.com/forums/showthread.php?t=3502)" module available for vBa CMPS on vB4. That is the big module (like what is shown on the front page of v3A.com) converted for vB4. That seems to the one most people wanted converted over. If you see any other 'arcade' related modules that you'd like to see converted over just point me in the direction. :)

One issue...
I noticed I had to enable Tournaments to get permission to play a game.
I set all Arcade permissions to "yes" for admin - got No permission
I then saw the tournament and set all to "yes" and was allowed.

Strange I needed to enable tournaments for the aracde?I will try to recreate that one. There should be no relation between the tournament permissions and being able to play a game but there is always the chance that I was coding after midnight again. (Programmers are like mogwai; there are certain things they shouldn't do after midnight.).

Magz
11-05-2010, 11:46 PM
Hi Just wondering if its possible to run v3arcade as well as ipbproarcade ? If so what steps would be needed to ensure no conflicts etc ?

KW802
11-06-2010, 12:19 AM
Hi Just wondering if its possible to run v3arcade as well as ipbproarcade ? If so what steps would be needed to ensure no conflicts etc ?Out of the box, no, they would conflict since both platforms will end up trying to save scores being submitted. With the 2.0.0 v3A rewrite we went through and tried making sure that all of the v3A assets (templates, phrases, files, etc.) were uniquely prefixed. Some may have been missed but to date we have not gotten any feedback that are any remaining asset conflicts. So the short answer is... no known conflicts of assets but there are conflicts when trying to save scores because IPB can use IPB & v3A games and v3A can use v3A & IPB games (and Mochi games as well).

However it shouldn't be that hard to do something where both are installed and IPB is only used for one type of game (eg: IPB games) and v3A is used for other types of games (eg: v3A formatted games and Mochi games). It would be matter of renaming IPB's 'index.php' to something else, updating the IPB templates to point to the new name, turning off any IPB related plugins that are being used for v3A compatibility, use IPB for only IPB formatted games, installing v3A as normal, turn off v3A's plugins for IPB compatibility, and then use v3A only for v3A formatted games & Mochi games.

It is not something that I personally have done but I know others have. If you can reach him, "Mark.B" in the vB support forums might be able to give some pointers since he is doing this on his vB3 site. Check http://www.bowlandcentral.com/ and in the "Arcades" drop-down list the "Yellow Arcade" is v3 Arcade and the "Blue Arcade" is IPB.

K4GAP
11-06-2010, 12:27 AM
I have hundreds of games that have an ".rar" file extension. I've looked over all the posts looking for any mention of how to install these games with the .rar extension...
Any help would be greatly appreciated.

KW802
11-06-2010, 12:50 AM
I have hundreds of games that have an ".rar" file extension. I've looked over all the posts looking for any mention of how to install these games with the .rar extension...
Any help would be greatly appreciated.
A ".rar" file a compressed file, like ".zip" or ".tar" files. IPB games are typically packed as a .tar file and both v3 Arcade and IPB are able to uncompress them to extract & install the games.

My memory may be fuzzy but I don't recall IPB being able to work with a .rar file directly.

If you take a look inside of the .rar file (using something line WinRar), what is there? Just the game files (a .swf file and .gif files) or a .tar file? Are these IPB games or v3A games or something else?

cory_booth
11-06-2010, 01:42 AM
There is the "Stats (http://www.v3arcade.com/forums/showthread.php?t=3502)" module available for vBa CMPS on vB4. That is the big module (like what is shown on the front page of v3A.com) converted for vB4.

Thanks...
After some serious hacking and slashing I was able to run this as a CMS Widget.

Starting to look real good!

cory_booth
11-06-2010, 02:07 AM
One more permission error.

This time with playing a Mochi(sp) game.
Attempt to save uses the following:
http://xxx.com/arcade.php?sessdo=burn&mochigame=5173

This brings back a "you don't have access".
This is with an "Admin" account with everything on or Yes

KW802
11-06-2010, 02:19 AM
One more permission error.

This time with playing a Mochi(sp) game.
Attempt to save uses the following:
http://xxx.com/arcade.php?sessdo=burn&mochigame=5173

This brings back a "you don't have access".
This is with an "Admin" account with everything on or Yes
Is it all Mochi games or just one? If all Mochi games, then please check item #6 of the Mochi FAQ (http://www.v3arcade.com/forums/showthread.php?t=1934).

You'll also want to make you aren't using an ad blocker (http://www.v3arcade.com/forums/showthread.php?t=3325) in your browser since that'll block the communications to bounce & verify the score against the Mochi servers.

K4GAP
11-06-2010, 03:37 AM
A ".rar" file a compressed file, like ".zip" or ".tar" files. IPB games are typically packed as a .tar file and both v3 Arcade and IPB are able to uncompress them to extract & install the games.

My memory may be fuzzy but I don't recall IPB being able to work with a .rar file directly.

If you take a look inside of the .rar file (using something line WinRar), what is there? Just the game files (a .swf file and .gif files) or a .tar file? Are these IPB games or v3A games or something else?

Contents after unzipping a random .rar game folder....

basketballrally1.gif
basketballrally2.gif
basketballrally.game.php
basketballrally.swf


Any clues?

KW802
11-06-2010, 04:13 AM
Contents after unzipping a random .rar game folder....

basketballrally1.gif
basketballrally2.gif
basketballrally.game.php
basketballrally.swf


Any clues?
Mind posting the contents of the .php file (either here or v3A.com)? To give some insight, years ago games were being distributed with an installation .php script so that each game was installed manually one at a time via it's own script instead of as a batch import. The contents of the .php will tell us what we're dealing with (whether they are IPB formatted games or v3A formatted games and how they were expected to be installed).

Veer
11-06-2010, 06:12 AM
That is not the easiest answer because everybody will have a different opinion on it. My opinion will be a bit biased because v3 Arcade is my project. But, with that said, a few things to consider would be...

- v3 Arcade has been designed from scratch to work with vBulletin; the other arcade was not.

- v3 Arcade has a dedicated support site; the other arcade does not.

- v3 Arcade has support for Mochi Media games, which can help bring in some revenue to your site and provides you with access to thousands of free games; the other arcade does not.

- v3 Arcade has a dedicated lead developer; the other arcade, at least at the present time, does not appear to.

- v3 Arcade is constantly adding new features and looking for ways to make integration with vBulletin easier (and hence why there are two separate versions for vB3 & vB4); the other arcade seems to rely mostly upon hacks & fixes submitted by users.


Again, though, that is just my own personal opinion. Some people love the other arcade and find no problems with it on their site.
100% agree. And I already switched from ibProArcade to v3 Arcade and loving it.

Thank you so much, keep it up man. :)

K4GAP
11-06-2010, 06:20 AM
Mind posting the contents of the .php file (either here or v3A.com)? To give some insight, years ago games were being distributed with an installation .php script so that each game was installed manually one at a time via it's own script instead of as a batch import. The contents of the .php will tell us what we're dealing with (whether they are IPB formatted games or v3A formatted games and how they were expected to be installed).

Php content from another one of the games...

<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.0.0 Release Candidate 2 - Licence Number L1665f2b
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ?2000-2004 Jelsoft Enterprises Ltd. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile: butch_01.game.php,v $ - $Revision: 1.35 $');
define('NO_REGISTER_GLOBALS', 1);

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array();
$specialtemplates = array();

require_once('./global.php');

print_cp_header("v3 Arcade - Butch Mushroom");

// welcome step
if (!isset($_POST['do']))
{
$gameexists = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "games WHERE shortname='butch_01'");
if ($DB_site->num_rows($gameexists)==0) {
print_form_header('butch_01.game', 'stepone');
print_table_header("v3 Arcade - Butch Mushroom");
print_description_row("This script will install Butch Mushroom for your v3 Arcade.<p>
Make sure you upload the following files:<br>
butch_011.gif -> /images/arcade/butch_011.gif<br>
butch_012.gif -> /images/arcade/butch_012.gif<br>
butch_01.swf -> /games/butch_01.swf<p>
Click on \"Install Butch Mushroom\" to begin the installation.");
print_submit_row("Install Butch Mushroom", 0);
} else {
print_form_header('butch_01.game', 'stepone');
print_table_header("v3 Arcade - Butch Mushroom");
print_description_row("Butch Mushroom is already installed!");
}
}

// ################################################## ###########################
// step 1
if ($_POST['do'] == "stepone")
{
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "games (shortname, gameid, title, descr, file, width, height, miniimage, stdimage, gamesettings, highscorerid, highscore) VALUES ('butch_01', NULL, 'Butch Mushroom', 'Eat as many bugs as you can within the time limit.', 'butch_01.swf', 550, 405, 'butch_012.gif', 'butch_011.gif', 29, NULL, NULL)");
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, <b>Butch Mushroom</b>','newgame'," . TIMENOW . ")
");
print_form_header('butch_01.game', '');
print_table_header("v3 Arcade - Butch Mushroom");
print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)");
}


/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 13:43, Tue Jan 6th 2004
|| # CVS: $RCSfile: usertitle.php,v $ - $Revision: 1.35 $
|| ################################################## ##################
\*================================================ ======================*/
?>

Veer
11-06-2010, 06:21 AM
I have a suggestion, I see user can not see others scores on Tournament page, Is there any possibility to make it viewable for players and tournament creator? In ibproArcade everyone can see.

Gemma
11-06-2010, 11:41 AM
Great to see this finally released on vb.org, well done Kevin and the v3arcade team for all your hard work and efforts :)

Paul K
11-06-2010, 12:13 PM
Wow it's so awesome, 1 of the best detailed extended mods I've got on my forums!

Great job! Really!

--Edit-- does anyone know if it's possible to remove the ads out of the games from mochi media?

cory_booth
11-06-2010, 12:38 PM
Is it all Mochi games or just one? If all Mochi games, then please check item #6 of the Mochi FAQ (http://www.v3arcade.com/forums/showthread.php?t=1934).

You'll also want to make you aren't using an ad blocker (http://www.v3arcade.com/forums/showthread.php?t=3325) in your browser since that'll block the communications to bounce & verify the score against the Mochi servers.

I will test it out and let you know... BTW, might it require the upload of crossdomain.xml to the forum root? I don't recall reading about that file, but realize it might be needed.

cory_booth
11-06-2010, 12:41 PM
Yep, that was it... Needed to upload the crossdomain.xml file... Same game I had a problem with now works fine (and quickly I might add).

EXCELLENT! Nice to have such a major mod keep up with the times!

cory_booth
11-06-2010, 12:46 PM
And to contribute to everyone here with CMS.
If you would like to add a Widget to your CMS.

Download the CMPS module here:
http://www.v3arcade.com/forums/showthread.php?t=3502

Open the .xml file and manually add the templates to your skin.
Just look for the template name and copy everything between the [CDATA] tags.

Then create a new PHP widget and paste this:


global $vbulletin, $bbcode, $parser, $path, $db;
$g_limit = 5;
$g_champs_limit = 5;
$g_news_limit = 5;
$g_scores_limit = 5;

function get_games ($as_handle, $as_title, $limit) {
global $vbulletin;

switch ($as_handle) {
case 'recent':
$orderby = "dateadded DESC";
break;
case 'played':
$orderby = "sessioncount DESC";
break;
case 'popular':
$orderby = "votepoints DESC";
break;
default:
$orderby = "gameid ASC";
break;
}


$getgames = $vbulletin->db->query("
SELECT games.* FROM " . TABLE_PREFIX . "v3arcade_games AS games
ORDER BY " . $orderby . "
LIMIT $limit
");

while ($game = $vbulletin->db->fetch_array($getgames))
{
$game['gamename'] = fetch_trimmed_title(stripslashes($game['title']),$maxtitlechars);
$game['gamedate'] = vbdate($vbulletin->options['dateformat'], $game['dateadded']);
$getbgrow = exec_switch_bg();

switch ($as_handle) {
case 'recent':
$as_game_data = $game['gamedate'];
break;
case 'played':
$as_game_data = "Played " . $game['sessioncount'] . " times";
break;
case 'popular':
$as_game_data = $game['votepoints'] . " votes";
break;
default:
$as_game_data = "";
break;
}

//eval('$as_gamebits .= "' . fetch_template('adv_portal_as_gamebits') . '";');
$templater = vB_Template::create('adv_portal_as_gamebits');
$templater->register('as_game_data',$as_game_data);
$templater->register('game',$game);
$as_gamebits .= $templater->render();

}
$vbulletin->db->free_result($getgames);

// eval('$gametable = "' . fetch_template("adv_portal_as_{$as_handle}_gametable") . '";');
$templater = vB_Template::create('adv_portal_as_' . $as_handle . '_gametable');
$templater->register('as_title',$as_title);
$templater->register('as_gamebits',$as_gamebits);
$gametable = $templater->render();
return $gametable;
}

function get_champs ($limit) {
global $vbulletin;

$champs = $vbulletin->db->query_read("
SELECT COUNT(games.highscorerid) AS count, user.username, user.userid
FROM " . TABLE_PREFIX . "v3arcade_games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid
WHERE user.userid IS NOT NULL
GROUP BY user.username, user.userid
ORDER BY count DESC, user.userid ASC
LIMIT " . $limit
);

$row = '0';
$awards = '0';
$leaders = '0';
while ($champ = $vbulletin->db->fetch_array($champs)) {
$leaders++;
if ($awards != $champ['count']) {
$row = $leaders;
}
$awards = $champ['count'];
$getbgrow = exec_switch_bg();
//eval('$as_champbits .= "' . fetch_template('adv_portal_as_champbits') . '";');
$templater = vB_Template::create('adv_portal_as_champbits');
$templater->register('getbrow',$getbrow);
$templater->register('champ',$champ);
$as_champbits .= $templater->render();
}
$vbulletin->db->free_result($champs);

//eval('$champstable = "' . fetch_template("adv_portal_as_champstable") . '";');
$templater = vB_Template::create('adv_portal_as_champstable');
$templater->register('as_champbits',$as_champbits);
$champstable = $templater->render();
return $champstable;
}

function get_random_game () {
global $vbulletin;

$random_game = $vbulletin->db->query_first("
SELECT gameid,title,description,stdimage,highscore,user.u serid,user.username
FROM " . TABLE_PREFIX . "v3arcade_games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid
ORDER BY RAND()
LIMIT 1
");

$as_random_gameid = $random_game[gameid];
$as_random_gametitle = $random_game[title];
$as_random_stdimage = $random_game[stdimage];
$as_random_description = $random_game[description];
if($random_game[highscore] == 0)
{
$as_random_highscore = "No Score";
$as_random_highscorer = "";
$as_random_userid = "";
}
else
{
$as_random_highscore = intval($random_game[highscore]);
$as_random_highscorer = "(" . $random_game[username] . ")";
$as_random_userid = $random_game[userid];
}
$vbulletin->db->free_result($random_game);
//eval('$random_table = "' . fetch_template('adv_portal_as_random') . '";');
$templater = vB_Template::create('adv_portal_as_random');
$templater->register('as_random_gameid',$as_random_gameid);
$templater->register('as_random_gametitle',$as_random_gametitl e);
$templater->register('as_random_highscore',$as_random_highscor e);
$templater->register('as_random_userid',$as_random_userid);
$templater->register('as_random_highscorer',$as_random_highsco rer);
$templater->register('as_random_stdimage',$as_random_stdimage) ;
$templater->register('as_random_description',$as_random_descri ption);
$random_table = $templater->render();
return $random_table;
}

function get_latest_champs ($limit)
{
global $vbulletin, $bbcode_parser;

//var_dump($vbulletin);
//highlight_file('./modules/arcadestats.php');
//exit;
$news_items = $vbulletin->db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "v3arcade_news
WHERE newstext LIKE '%is the new%'
ORDER BY datestamp DESC
LIMIT $limit
");

while ($news_item = $vbulletin->db->fetch_array($news_items)) {
//$as_news_text = $bbcode_parser->do_parse($news_item['newstext'], 1, 1, 1, 0);
$as_news_text = $news_item['newstext'];
$as_news_text = str_replace("arcade.php", $vbulletin->options['bburl'] . "/arcade.php", $as_news_text);

$as_news_date = vbdate($vbulletin->options['dateformat'],$news_item['datestamp']);
$as_news_time = vbdate($vbulletin->options['timeformat'],$news_item['datestamp']);
$getbgrow = exec_switch_bg();
//eval('$as_newsbits .= "' . fetch_template('adv_portal_as_newsbits') . '";');
$templater = vB_Template::create('adv_portal_as_newsbits');
$templater->register('getbrow',$getbrow);
$templater->register('as_news_text',$as_news_text);
$templater->register('as_news_date',$as_news_date);
$templater->register('as_news_time',$as_news_time);
$as_newsbits .= $templater->render();

}
$vbulletin->db->free_result($news_items);

//eval('$news_table = "' . fetch_template('adv_portal_as_newstable') . '";');
$templater = vB_Template::create('adv_portal_as_newstable');
$templater->register('as_newsbits',$as_newsbits);
$news_table = $templater->render();
return $news_table;
}

function get_latest_scores ($limit)
{
global $vbulletin;

$latest_scores = $vbulletin->db->query_read("
SELECT sessions.userid, sessions.gamename, sessions.gameid, sessions.score, sessions.start, sessions.finish,
user.username,
games.title
FROM " . TABLE_PREFIX . "v3arcade_sessions as sessions
LEFT JOIN " . TABLE_PREFIX . "user AS user
ON (sessions.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "v3arcade_games as games
on (sessions.gameid = games.gameid)
WHERE sessions.finish <> 0
ORDER BY sessions.sessionid DESC
LIMIT $limit
");

while ($latest_score = $vbulletin->db->fetch_array($latest_scores)) {
$as_score_userid = $latest_score['userid'];
$as_score_gameid = $latest_score['gameid'];
$as_score_name = $latest_score['username'];
$as_score_score = intval($latest_score['score']);
$as_score_gametitle = $latest_score['title'];
$as_score_date = vbdate($vbulletin->options['dateformat'],$latest_score['finish']);
$as_score_time = vbdate($vbulletin->options['timeformat'],$latest_score['finish']);
//echo "foo: $as_score_gametitle<br>\n";
$getbgrow = exec_switch_bg();
//eval('$as_scorebits .= "' . fetch_template('adv_portal_as_scorebits') . '";');
$templater = vB_Template::create('adv_portal_as_scorebits');
$templater->register('getbrow',$getbrow);
$templater->register('as_score_userid',$as_score_userid);
$templater->register('as_score_name',$as_score_name);
$templater->register('as_score_score',$as_score_score);
$templater->register('as_score_gameid',$as_score_gameid);
$templater->register('as_score_gametitle',$as_score_gametitle) ;
$templater->register('as_score_date',$as_score_date);
$templater->register('as_score_time',$as_score_time);
$as_scorebits .= $templater->render();
}
$vbulletin->db->free_result($latest_scores);

//eval('$score_table = "' . fetch_template('adv_portal_as_scoretable') . '";');
$templater = vB_Template::create('adv_portal_as_scoretable');
$templater->register('as_scorebits',$as_scorebits);
$score_table = $templater->render();
return $score_table;
}

$as_score_table = get_latest_scores($g_scores_limit);
$as_news_table = get_latest_champs($g_news_limit);
$as_random_table = get_random_game();
$as_champs_table = get_champs($g_champs_limit);
$as_recent_table = get_games("recent","Most Recent", $g_limit);
$as_played_table = get_games("played","Most Played", $g_limit);
$as_popular_table = get_games("popular","Most Popular", $g_limit);

$collapseobj_arcadestats = $vbcollapse['collapseobj_arcadestats'];
$collapseimg_arcadestats = $vbcollapse['collapseimg_arcadestats'];

//eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_arcadestats') . '";');
$templater = vB_Template::create('adv_portal_arcadestats');
$templater->register('as_score_table',$as_score_table);
$templater->register('as_news_table',$as_news_table);
//$templater->register('as_random_table',$as_random_table);
//$templater->register('as_champs_table',$as_champs_table);
//$templater->register('as_recent_table',$as_recent_table);
$templater->register('as_played_table',$as_played_table);
$templater->register('as_popular_table',$as_popular_table);
$output = $templater->render();


Couple of notes:
1st... This isn't my code...
2nd... I commented out the BB_Code parse for the "news" since I don't know the global call for the do_parse command.
3rd... I did some edits to the templates to make mine fit nicely on the side.

stud
11-06-2010, 12:59 PM
Is there a plugin/script to replace the trophy.gif icon in the users postbit with icons for each individual game?

KW802
11-06-2010, 02:02 PM
Php content from another one of the games...
That one is going to a tougher nut to crack. Essentially that is a very old method of manually installing games one at a time (2004! :eek: ). There is no quick answer to that one. I'll try some local tests to see if we can at least get them usable for you somehow since as it is now those games won't install on any version of v3A past 2.0.0 (since the table names have changed).

I have a suggestion, I see user can not see others scores on Tournament page, Is there any possibility to make it viewable for players and tournament creator? In ibproArcade everyone can see.If you have an account over at v3Arcade.com, mind posting that in the suggestions forum over there? It's easier for me to track suggestions that way.

Great to see this finally released on vb.org, well done Kevin and the v3arcade team for all your hard work and efforts :)Actually, thank you, Gemma, for the help & feedback the past few months as we've worked on polishing the vB4 version. The feedback from yourself & others has been great.

--Edit-- does anyone know if it's possible to remove the ads out of the games from mochi media?You can't get rid of the ads because it would also means that you would be blocking the communications to the Mochi servers which verifies your scores. The ads from Mochi is the small price to pay for getting access to thousands for free games. :)

Yep, that was it... Needed to upload the crossdomain.xml file... Same game I had a problem with now works fine (and quickly I might add).

EXCELLENT! Nice to have such a major mod keep up with the times!
Glad to see you got it sorted! :cool: The next time I edit the first post I will include a pointer to the FAQ over at the v3A forums about getting Mochi integrated.

KW802
11-06-2010, 02:05 PM
Is there a plugin/script to replace the trophy.gif icon in the users postbit with icons for each individual game?
No need for a manual plugin or other manual edit. ;)

ACP => v3 Arcade => v3 Arcade Settings => v3 Arcade General Settings => Enable Arcade Awards

You'll have your choice of showing either trophies, crowns (all the same color), multi-color crowns (random colored crowns), or the game's mini-icon.

msorin
11-06-2010, 02:09 PM
I downloaded the version from v3 website. I get an error when I try to mass import games:

Fatal error: Call to a member function read() on a non-object in /admincp/v3arcade_admin.php on line 1157

KW802
11-06-2010, 02:27 PM
I downloaded the version from v3 website. I get an error when I try to mass import games:

Fatal error: Call to a member function read() on a non-object in /admincp/v3arcade_admin.php on line 1157
Are you sure you downloaded the right version for the vBulletin you're using? The download drop-down has both vB3 & vB4 listed.

msorin
11-06-2010, 02:34 PM
Yes I downloaded the one for 4.0.X

K4GAP
11-06-2010, 08:31 PM
Yep, that was it... Needed to upload the crossdomain.xml file... Same game I had a problem with now works fine (and quickly I might add).

EXCELLENT! Nice to have such a major mod keep up with the times!

Where did you upload the crossdomain too? And what does it do? Do you know?

K4GAP
11-06-2010, 08:34 PM
I need instructions for where and how to add games. What I really need is an "Install For Dummies" manual :)

Love this mod a lot better than IPB.

Gemma
11-06-2010, 08:43 PM
Where did you upload the crossdomain too? And what does it do? Do you know?

Upload crossdomain.xml to your site root

Gemma
11-06-2010, 08:53 PM
I need instructions for where and how to add games. What I really need is an "Install For Dummies" manual :)

Love this mod a lot better than IPB.

Make sure your forumroot/admincp/games, forumroot/images/arcade and forumroot/games are CHMOD 777

If you want to install v3arcade type games (zip format) or IPB type games (tar format) upload the said files to your admincp/games folder. Then in AdminCP>v3Arcade>Import Games>

Choose the Mass Import option that coincides with what game type you uploaded and click Start.

If you are installing games manually (already converted but not in zip or tar format), go to AdminCP>v3Arcade>Import Games>Manually Add Game and fill in the details

For example-

The .swf gets uploaded to your games folder and the two images (one 20*20px and one 50*50px) get uploaded to your images/arcade folder.

Game Title: simple enough ie Pacman
Description: blah blah blah
Game System: you would need to know what type on conversion they were made for
Shortname: pacman
Game SWF File: ie pacman.swf
Height: varies per game
Width: as above
Standard Thumbnail Image: ie pacman1.jpg
Miniature Mode Thumbnail Image : ie pacman2.jpg
Then fill in the last couple of details.

For Mochi Games read through this post (parts 6 & 7) - http://www.v3arcade.com/forums/showthread.php?t=1934

Once you have set up your Mochi account, you have access to thousands of games and the install process is as easy as clicking a few buttons :)

msorin
11-07-2010, 12:44 AM
Are you sure you downloaded the right version for the vBulletin you're using? The download drop-down has both vB3 & vB4 listed.

I just downloaded the one from here and same error. Any help will be greatly appreciated.

Doctor Death
11-07-2010, 01:18 PM
Great mod.

On high score, is it possible to shrink player image to fit within column space?

Some player images are larger and ruin look.

This runs very fast and smooth. Thanks again.

Gemma
11-07-2010, 01:29 PM
Great mod.

On high score, is it possible to shrink player image to fit within column space?

Some player images are larger and ruin look.

This runs very fast and smooth. Thanks again.

Open the v3arcade_scorebit template and search for
<img src="{vb:raw score.useravatar}" align="{vb:stylevar left}" class="v3_gameicon" alt="" {vb:raw score.avdimensions}/>

Replace it with
<img src="{vb:raw score.useravatar}" align="{vb:stylevar left}" class="v3_gameicon" alt="" height="50"/>

You can change the 50 to whatever you want

Doctor Death
11-07-2010, 02:24 PM
Thanks for such amazingly quick response....

One more issue on import of TAR games (from IPB).

I put all the TAR files in the right place and CHMOD'd folders to 777 as specificed.

Upon import, I get this error

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 6268724 bytes) in /home/xxxhbabh/public_html/forums/includes/v3arcade_class_tar.php on line 150


It does this regardless of how many I try to import (1, 10 or 100).

Thoughts?

Doctor Death
11-07-2010, 02:31 PM
Open the v3arcade_scorebit template and search for
<img src="{vb:raw score.useravatar}" align="{vb:stylevar left}" class="v3_gameicon" alt="" {vb:raw score.avdimensions}/>

Replace it with
<img src="{vb:raw score.useravatar}" align="{vb:stylevar left}" class="v3_gameicon" alt="" height="50"/>

You can change the 50 to whatever you want

The avatar/user image under "LOGGED IN AS" is the one that is mis-sized (too large).

Would this be the code that also fixes that? I tried it and it doesnt seem to have an impact.

Thanks!

Doc

Gemma
11-07-2010, 05:00 PM
Sorry I thought you meant on the highscores list :o

Open v3ARCADE_Main and find
<vb:if condition="$show['avatar']">
<div>
<vb:if condition="!$player['userid']">
<img class="v3_gameicon" src="{vb:raw player.avatarurl}" alt="" border="0"/>
<vb:else />
<a href="{vb:link member, {vb:raw bbuserinfo}}<vb:if condition="$vboptions['friendlyurl'] < 3">&amp;<vb:else />?</vb:if>tab=v3arcade_stats"><img class="v3_gameicon" src="{vb:raw player.avatarurl}" alt="" border="0" /></a>
</vb:if>
</div>
</vb:if>


Replace it with
<vb:if condition="$show['avatar']">
<div>
<vb:if condition="!$player['userid']">
<img class="v3_gameicon" src="{vb:raw player.avatarurl}" height="xxx" alt="" border="0"/>
<vb:else />
<a href="{vb:link member, {vb:raw bbuserinfo}}<vb:if condition="$vboptions['friendlyurl'] < 3">&amp;<vb:else />?</vb:if>tab=v3arcade_stats"><img class="v3_gameicon" src="{vb:raw player.avatarurl}" height="xxx" alt="" border="0" /></a>
</vb:if>
</div>
</vb:if>

Changing the xxx (2 instances) to whatever suits your forums

SSG.D
11-07-2010, 05:19 PM
Hi,,,, Running 4.0.8

When the game is over I get this

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

Need some advise please
thx

Gemma
11-07-2010, 05:24 PM
Hi,,,, Running 4.0.8

When the game is over I get this



Need some advise please
thx

http://www.v3arcade.com/forums/showthread.php?t=3215

SSG.D
11-07-2010, 06:03 PM
http://www.v3arcade.com/forums/showthread.php?t=3215
Thank You very Much!;)

K4GAP
11-07-2010, 06:06 PM
I dumped all the old games I had that were in .rar format and now have 300 V3 games that are in the .zip format. I put them in the FORUMROOT/admincp/games folder but when I try to import them I get message saying "There are no more games to import".

So, can anyone help?

KW802
11-07-2010, 08:49 PM
@GaryT: Two major questions.... are you putting the zip files in that folder or the unzipped files? (See Gemma's post a few post back for game installation steps). The other thing is how old those files. The .php file should be a really small file with just a few variables in it; if it looks like the .php file that was posted earlier that was an actual install script then you'll have issues just like you would have with the .rar files.

Robbed
11-07-2010, 09:44 PM
Thanks, import went well.

Doctor Death
11-07-2010, 09:57 PM
Sorry I thought you meant on the highscores list :o

Open v3ARCADE_Main and find
<vb:if condition="$show['avatar']">
<div>
<vb:if condition="!$player['userid']">
<img class="v3_gameicon" src="{vb:raw player.avatarurl}" alt="" border="0"/>
<vb:else />
<a href="{vb:link member, {vb:raw bbuserinfo}}<vb:if condition="$vboptions['friendlyurl'] < 3">&amp;<vb:else />?</vb:if>tab=v3arcade_stats"><img class="v3_gameicon" src="{vb:raw player.avatarurl}" alt="" border="0" /></a>
</vb:if>
</div>
</vb:if>


Replace it with
<vb:if condition="$show['avatar']">
<div>
<vb:if condition="!$player['userid']">
<img class="v3_gameicon" src="{vb:raw player.avatarurl}" height="xxx" alt="" border="0"/>
<vb:else />
<a href="{vb:link member, {vb:raw bbuserinfo}}<vb:if condition="$vboptions['friendlyurl'] < 3">&amp;<vb:else />?</vb:if>tab=v3arcade_stats"><img class="v3_gameicon" src="{vb:raw player.avatarurl}" height="xxx" alt="" border="0" /></a>
</vb:if>
</div>
</vb:if>

Changing the xxx (2 instances) to whatever suits your forums

that worked great. 175 was the magic number.

Recommend putting that in configuration in next version

Doctor Death
11-07-2010, 09:59 PM
Thanks for such amazingly quick response....

One more issue on import of TAR games (from IPB).

I put all the TAR files in the right place and CHMOD'd folders to 777 as specificed.

Upon import, I get this error


Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 6268724 bytes) in /home/xxxhbabh/public_html/forums/includes/v3arcade_class_tar.php on line 150

It does this regardless of how many I try to import (1, 10 or 100).

Thoughts?

Gemma
11-07-2010, 10:12 PM
Try editing your php.ini file settings to something like

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (8MB)

Or, if you don't have access to your php.ini file, temporarily up your limits by editing your includes/config.php file and add this lines right under the <?php line:

ini_set('memory_limit', 128 * 1024 * 1024);

You may need to change the 128 to 256 or 512

See if that helps

Doctor Death
11-07-2010, 10:42 PM
Try editing your php.ini file settings to something like

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (8MB)

Or, if you don't have access to your php.ini file, temporarily up your limits by editing your includes/config.php file and add this lines right under the <?php line:

ini_set('memory_limit', 128 * 1024 * 1024);

You may need to change the 128 to 256 or 512

See if that helps

That worked perfectly with the number 512.

I have to say how great it is to get advice from someone who has a clue.

Thanks, great work.

Doctor Death
11-07-2010, 11:41 PM
And to contribute to everyone here with CMS.
If you would like to add a Widget to your CMS.

Download the CMPS module here:
http://www.v3arcade.com/forums/showthread.php?t=3502

Open the .xml file and manually add the templates to your skin.
Just look for the template name and copy everything between the [CDATA] tags.

Then create a new PHP widget and paste this:


global $vbulletin, $bbcode, $parser, $path, $db;
$g_limit = 5;
$g_champs_limit = 5;
$g_news_limit = 5;
$g_scores_limit = 5;

function get_games ($as_handle, $as_title, $limit) {
global $vbulletin;

switch ($as_handle) {
case 'recent':
$orderby = "dateadded DESC";
break;
case 'played':
$orderby = "sessioncount DESC";
break;
case 'popular':
$orderby = "votepoints DESC";
break;
default:
$orderby = "gameid ASC";
break;
}


$getgames = $vbulletin->db->query("
SELECT games.* FROM " . TABLE_PREFIX . "v3arcade_games AS games
ORDER BY " . $orderby . "
LIMIT $limit
");

while ($game = $vbulletin->db->fetch_array($getgames))
{
$game['gamename'] = fetch_trimmed_title(stripslashes($game['title']),$maxtitlechars);
$game['gamedate'] = vbdate($vbulletin->options['dateformat'], $game['dateadded']);
$getbgrow = exec_switch_bg();

switch ($as_handle) {
case 'recent':
$as_game_data = $game['gamedate'];
break;
case 'played':
$as_game_data = "Played " . $game['sessioncount'] . " times";
break;
case 'popular':
$as_game_data = $game['votepoints'] . " votes";
break;
default:
$as_game_data = "";
break;
}

//eval('$as_gamebits .= "' . fetch_template('adv_portal_as_gamebits') . '";');
$templater = vB_Template::create('adv_portal_as_gamebits');
$templater->register('as_game_data',$as_game_data);
$templater->register('game',$game);
$as_gamebits .= $templater->render();

}
$vbulletin->db->free_result($getgames);

// eval('$gametable = "' . fetch_template("adv_portal_as_{$as_handle}_gametable") . '";');
$templater = vB_Template::create('adv_portal_as_' . $as_handle . '_gametable');
$templater->register('as_title',$as_title);
$templater->register('as_gamebits',$as_gamebits);
$gametable = $templater->render();
return $gametable;
}

function get_champs ($limit) {
global $vbulletin;

$champs = $vbulletin->db->query_read("
SELECT COUNT(games.highscorerid) AS count, user.username, user.userid
FROM " . TABLE_PREFIX . "v3arcade_games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid
WHERE user.userid IS NOT NULL
GROUP BY user.username, user.userid
ORDER BY count DESC, user.userid ASC
LIMIT " . $limit
);

$row = '0';
$awards = '0';
$leaders = '0';
while ($champ = $vbulletin->db->fetch_array($champs)) {
$leaders++;
if ($awards != $champ['count']) {
$row = $leaders;
}
$awards = $champ['count'];
$getbgrow = exec_switch_bg();
//eval('$as_champbits .= "' . fetch_template('adv_portal_as_champbits') . '";');
$templater = vB_Template::create('adv_portal_as_champbits');
$templater->register('getbrow',$getbrow);
$templater->register('champ',$champ);
$as_champbits .= $templater->render();
}
$vbulletin->db->free_result($champs);

//eval('$champstable = "' . fetch_template("adv_portal_as_champstable") . '";');
$templater = vB_Template::create('adv_portal_as_champstable');
$templater->register('as_champbits',$as_champbits);
$champstable = $templater->render();
return $champstable;
}

function get_random_game () {
global $vbulletin;

$random_game = $vbulletin->db->query_first("
SELECT gameid,title,description,stdimage,highscore,user.u serid,user.username
FROM " . TABLE_PREFIX . "v3arcade_games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid
ORDER BY RAND()
LIMIT 1
");

$as_random_gameid = $random_game[gameid];
$as_random_gametitle = $random_game[title];
$as_random_stdimage = $random_game[stdimage];
$as_random_description = $random_game[description];
if($random_game[highscore] == 0)
{
$as_random_highscore = "No Score";
$as_random_highscorer = "";
$as_random_userid = "";
}
else
{
$as_random_highscore = intval($random_game[highscore]);
$as_random_highscorer = "(" . $random_game[username] . ")";
$as_random_userid = $random_game[userid];
}
$vbulletin->db->free_result($random_game);
//eval('$random_table = "' . fetch_template('adv_portal_as_random') . '";');
$templater = vB_Template::create('adv_portal_as_random');
$templater->register('as_random_gameid',$as_random_gameid);
$templater->register('as_random_gametitle',$as_random_gametitl e);
$templater->register('as_random_highscore',$as_random_highscor e);
$templater->register('as_random_userid',$as_random_userid);
$templater->register('as_random_highscorer',$as_random_highsco rer);
$templater->register('as_random_stdimage',$as_random_stdimage) ;
$templater->register('as_random_description',$as_random_descri ption);
$random_table = $templater->render();
return $random_table;
}

function get_latest_champs ($limit)
{
global $vbulletin, $bbcode_parser;

//var_dump($vbulletin);
//highlight_file('./modules/arcadestats.php');
//exit;
$news_items = $vbulletin->db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "v3arcade_news
WHERE newstext LIKE '%is the new%'
ORDER BY datestamp DESC
LIMIT $limit
");

while ($news_item = $vbulletin->db->fetch_array($news_items)) {
//$as_news_text = $bbcode_parser->do_parse($news_item['newstext'], 1, 1, 1, 0);
$as_news_text = $news_item['newstext'];
$as_news_text = str_replace("arcade.php", $vbulletin->options['bburl'] . "/arcade.php", $as_news_text);

$as_news_date = vbdate($vbulletin->options['dateformat'],$news_item['datestamp']);
$as_news_time = vbdate($vbulletin->options['timeformat'],$news_item['datestamp']);
$getbgrow = exec_switch_bg();
//eval('$as_newsbits .= "' . fetch_template('adv_portal_as_newsbits') . '";');
$templater = vB_Template::create('adv_portal_as_newsbits');
$templater->register('getbrow',$getbrow);
$templater->register('as_news_text',$as_news_text);
$templater->register('as_news_date',$as_news_date);
$templater->register('as_news_time',$as_news_time);
$as_newsbits .= $templater->render();

}
$vbulletin->db->free_result($news_items);

//eval('$news_table = "' . fetch_template('adv_portal_as_newstable') . '";');
$templater = vB_Template::create('adv_portal_as_newstable');
$templater->register('as_newsbits',$as_newsbits);
$news_table = $templater->render();
return $news_table;
}

function get_latest_scores ($limit)
{
global $vbulletin;

$latest_scores = $vbulletin->db->query_read("
SELECT sessions.userid, sessions.gamename, sessions.gameid, sessions.score, sessions.start, sessions.finish,
user.username,
games.title
FROM " . TABLE_PREFIX . "v3arcade_sessions as sessions
LEFT JOIN " . TABLE_PREFIX . "user AS user
ON (sessions.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "v3arcade_games as games
on (sessions.gameid = games.gameid)
WHERE sessions.finish <> 0
ORDER BY sessions.sessionid DESC
LIMIT $limit
");

while ($latest_score = $vbulletin->db->fetch_array($latest_scores)) {
$as_score_userid = $latest_score['userid'];
$as_score_gameid = $latest_score['gameid'];
$as_score_name = $latest_score['username'];
$as_score_score = intval($latest_score['score']);
$as_score_gametitle = $latest_score['title'];
$as_score_date = vbdate($vbulletin->options['dateformat'],$latest_score['finish']);
$as_score_time = vbdate($vbulletin->options['timeformat'],$latest_score['finish']);
//echo "foo: $as_score_gametitle<br>\n";
$getbgrow = exec_switch_bg();
//eval('$as_scorebits .= "' . fetch_template('adv_portal_as_scorebits') . '";');
$templater = vB_Template::create('adv_portal_as_scorebits');
$templater->register('getbrow',$getbrow);
$templater->register('as_score_userid',$as_score_userid);
$templater->register('as_score_name',$as_score_name);
$templater->register('as_score_score',$as_score_score);
$templater->register('as_score_gameid',$as_score_gameid);
$templater->register('as_score_gametitle',$as_score_gametitle) ;
$templater->register('as_score_date',$as_score_date);
$templater->register('as_score_time',$as_score_time);
$as_scorebits .= $templater->render();
}
$vbulletin->db->free_result($latest_scores);

//eval('$score_table = "' . fetch_template('adv_portal_as_scoretable') . '";');
$templater = vB_Template::create('adv_portal_as_scoretable');
$templater->register('as_scorebits',$as_scorebits);
$score_table = $templater->render();
return $score_table;
}

$as_score_table = get_latest_scores($g_scores_limit);
$as_news_table = get_latest_champs($g_news_limit);
$as_random_table = get_random_game();
$as_champs_table = get_champs($g_champs_limit);
$as_recent_table = get_games("recent","Most Recent", $g_limit);
$as_played_table = get_games("played","Most Played", $g_limit);
$as_popular_table = get_games("popular","Most Popular", $g_limit);

$collapseobj_arcadestats = $vbcollapse['collapseobj_arcadestats'];
$collapseimg_arcadestats = $vbcollapse['collapseimg_arcadestats'];

//eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_arcadestats') . '";');
$templater = vB_Template::create('adv_portal_arcadestats');
$templater->register('as_score_table',$as_score_table);
$templater->register('as_news_table',$as_news_table);
//$templater->register('as_random_table',$as_random_table);
//$templater->register('as_champs_table',$as_champs_table);
//$templater->register('as_recent_table',$as_recent_table);
$templater->register('as_played_table',$as_played_table);
$templater->register('as_popular_table',$as_popular_table);
$output = $templater->render();


Couple of notes:
1st... This isn't my code...
2nd... I commented out the BB_Code parse for the "news" since I don't know the global call for the do_parse command.
3rd... I did some edits to the templates to make mine fit nicely on the side.

I would like to get this widget working, but the instructions arent that clear.

Can you elaborate about the XML file what to do with it?

Thanks

K4GAP
11-08-2010, 12:28 AM
@GaryT: Two major questions.... are you putting the zip files in that folder or the unzipped files? (See Gemma's post a few post back for game installation steps). The other thing is how old those files. The .php file should be a really small file with just a few variables in it; if it looks like the .php file that was posted earlier that was an actual install script then you'll have issues just like you would have with the .rar files.

Yep that's it. The ,PHP file has basically the same content as the other .PHP file I posted.

Thanks

Gemma
11-08-2010, 12:38 AM
Doctor Death you need to go through the xml file you downloaded from v3arcade and extract all the templates below

adv_portal_as_recent_gametable
adv_portal_as_played_gametable
adv_portal_as_popular_gametable
adv_portal_as_champbits
adv_portal_as_champstable
adv_portal_as_random
adv_portal_as_newsbits
adv_portal_as_newstable
adv_portal_as_scorebits
adv_portal_as_scoretable
adv_portal_arcadestats

The information you want for each template is between the [CDATA[ brackets

For example the adv_portal_arcadestats template would be extracted from the xml file by searching for the template

<adv_portal_arcadestats><![CDATA[<div>

<table align="center" width="100%">
<tr><td colspan="3">{vb:raw as_score_table}</td></tr>
<tr><td colspan="3">{vb:raw as_news_table}</td></tr>
<tr>
<td colspan="3">
<table width = "100%">
<tr>
<td valign="top" width="60%">{vb:raw as_random_table}</td>
<td>&nbsp;</td>
<td valign="top">{vb:raw as_champs_table}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3">
<table width = "100%">
<tr>
<td valign="top">{vb:raw as_recent_table}</td>
<td>&nbsp;</td>
<td valign="top">{vb:raw as_played_table}</td>
<td>&nbsp;</td>
<td valign="top">{vb:raw as_popular_table}</td>
</tr>
</table>
</td>
</tr>
</table>

</div>]]></adv_portal_arcadestats>

Taking away the <template name> and CDATA opening and closing brackets it would look like this


<div>

<table align="center" width="100%">
<tr><td colspan="3">{vb:raw as_score_table}</td></tr>
<tr><td colspan="3">{vb:raw as_news_table}</td></tr>
<tr>
<td colspan="3">
<table width = "100%">
<tr>
<td valign="top" width="60%">{vb:raw as_random_table}</td>
<td>&nbsp;</td>
<td valign="top">{vb:raw as_champs_table}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3">
<table width = "100%">
<tr>
<td valign="top">{vb:raw as_recent_table}</td>
<td>&nbsp;</td>
<td valign="top">{vb:raw as_played_table}</td>
<td>&nbsp;</td>
<td valign="top">{vb:raw as_popular_table}</td>
</tr>
</table>
</td>
</tr>
</table>

</div>

You would do that for all the templates I listed at the beginning, you would then go to you AdminCP>Style Manager and add each of the new templates, keeping the same template names as before

Then go to you AdminCP>vBulletinCMS>Widget Manager and make a new widget ie 'Arcade Stats' and copy the following code

global $vbulletin, $bbcode, $parser, $path, $db;
$g_limit = 5;
$g_champs_limit = 5;
$g_news_limit = 5;
$g_scores_limit = 5;

function get_games ($as_handle, $as_title, $limit) {
global $vbulletin;

switch ($as_handle) {
case 'recent':
$orderby = "dateadded DESC";
break;
case 'played':
$orderby = "sessioncount DESC";
break;
case 'popular':
$orderby = "votepoints DESC";
break;
default:
$orderby = "gameid ASC";
break;
}


$getgames = $vbulletin->db->query("
SELECT games.* FROM " . TABLE_PREFIX . "v3arcade_games AS games
ORDER BY " . $orderby . "
LIMIT $limit
");

while ($game = $vbulletin->db->fetch_array($getgames))
{
$game['gamename'] = fetch_trimmed_title(stripslashes($game['title']),$maxtitlechars);
$game['gamedate'] = vbdate($vbulletin->options['dateformat'], $game['dateadded']);
$getbgrow = exec_switch_bg();

switch ($as_handle) {
case 'recent':
$as_game_data = $game['gamedate'];
break;
case 'played':
$as_game_data = "Played " . $game['sessioncount'] . " times";
break;
case 'popular':
$as_game_data = $game['votepoints'] . " votes";
break;
default:
$as_game_data = "";
break;
}

//eval('$as_gamebits .= "' . fetch_template('adv_portal_as_gamebits') . '";');
$templater = vB_Template::create('adv_portal_as_gamebits');
$templater->register('as_game_data',$as_game_data);
$templater->register('game',$game);
$as_gamebits .= $templater->render();

}
$vbulletin->db->free_result($getgames);

// eval('$gametable = "' . fetch_template("adv_portal_as_{$as_handle}_gametable") . '";');
$templater = vB_Template::create('adv_portal_as_' . $as_handle . '_gametable');
$templater->register('as_title',$as_title);
$templater->register('as_gamebits',$as_gamebits);
$gametable = $templater->render();
return $gametable;
}

function get_champs ($limit) {
global $vbulletin;

$champs = $vbulletin->db->query_read("
SELECT COUNT(games.highscorerid) AS count, user.username, user.userid
FROM " . TABLE_PREFIX . "v3arcade_games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid
WHERE user.userid IS NOT NULL
GROUP BY user.username, user.userid
ORDER BY count DESC, user.userid ASC
LIMIT " . $limit
);

$row = '0';
$awards = '0';
$leaders = '0';
while ($champ = $vbulletin->db->fetch_array($champs)) {
$leaders++;
if ($awards != $champ['count']) {
$row = $leaders;
}
$awards = $champ['count'];
$getbgrow = exec_switch_bg();
//eval('$as_champbits .= "' . fetch_template('adv_portal_as_champbits') . '";');
$templater = vB_Template::create('adv_portal_as_champbits');
$templater->register('getbrow',$getbrow);
$templater->register('champ',$champ);
$as_champbits .= $templater->render();
}
$vbulletin->db->free_result($champs);

//eval('$champstable = "' . fetch_template("adv_portal_as_champstable") . '";');
$templater = vB_Template::create('adv_portal_as_champstable');
$templater->register('as_champbits',$as_champbits);
$champstable = $templater->render();
return $champstable;
}

function get_random_game () {
global $vbulletin;

$random_game = $vbulletin->db->query_first("
SELECT gameid,title,description,stdimage,highscore,user.u serid,user.username
FROM " . TABLE_PREFIX . "v3arcade_games AS games
LEFT JOIN " . TABLE_PREFIX . "user AS user ON user.userid = games.highscorerid
ORDER BY RAND()
LIMIT 1
");

$as_random_gameid = $random_game[gameid];
$as_random_gametitle = $random_game[title];
$as_random_stdimage = $random_game[stdimage];
$as_random_description = $random_game[description];
if($random_game[highscore] == 0)
{
$as_random_highscore = "No Score";
$as_random_highscorer = "";
$as_random_userid = "";
}
else
{
$as_random_highscore = intval($random_game[highscore]);
$as_random_highscorer = "(" . $random_game[username] . ")";
$as_random_userid = $random_game[userid];
}
$vbulletin->db->free_result($random_game);
//eval('$random_table = "' . fetch_template('adv_portal_as_random') . '";');
$templater = vB_Template::create('adv_portal_as_random');
$templater->register('as_random_gameid',$as_random_gameid);
$templater->register('as_random_gametitle',$as_random_gametitl e);
$templater->register('as_random_highscore',$as_random_highscor e);
$templater->register('as_random_userid',$as_random_userid);
$templater->register('as_random_highscorer',$as_random_highsco rer);
$templater->register('as_random_stdimage',$as_random_stdimage) ;
$templater->register('as_random_description',$as_random_descri ption);
$random_table = $templater->render();
return $random_table;
}

function get_latest_champs ($limit)
{
global $vbulletin, $bbcode_parser;

//var_dump($vbulletin);
//highlight_file('./modules/arcadestats.php');
//exit;
$news_items = $vbulletin->db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "v3arcade_news
WHERE newstext LIKE '%is the new%'
ORDER BY datestamp DESC
LIMIT $limit
");

while ($news_item = $vbulletin->db->fetch_array($news_items)) {
//$as_news_text = $bbcode_parser->do_parse($news_item['newstext'], 1, 1, 1, 0);
$as_news_text = $news_item['newstext'];
$as_news_text = str_replace("arcade.php", $vbulletin->options['bburl'] . "/arcade.php", $as_news_text);

$as_news_date = vbdate($vbulletin->options['dateformat'],$news_item['datestamp']);
$as_news_time = vbdate($vbulletin->options['timeformat'],$news_item['datestamp']);
$getbgrow = exec_switch_bg();
//eval('$as_newsbits .= "' . fetch_template('adv_portal_as_newsbits') . '";');
$templater = vB_Template::create('adv_portal_as_newsbits');
$templater->register('getbrow',$getbrow);
$templater->register('as_news_text',$as_news_text);
$templater->register('as_news_date',$as_news_date);
$templater->register('as_news_time',$as_news_time);
$as_newsbits .= $templater->render();

}
$vbulletin->db->free_result($news_items);

//eval('$news_table = "' . fetch_template('adv_portal_as_newstable') . '";');
$templater = vB_Template::create('adv_portal_as_newstable');
$templater->register('as_newsbits',$as_newsbits);
$news_table = $templater->render();
return $news_table;
}

function get_latest_scores ($limit)
{
global $vbulletin;

$latest_scores = $vbulletin->db->query_read("
SELECT sessions.userid, sessions.gamename, sessions.gameid, sessions.score, sessions.start, sessions.finish,
user.username,
games.title
FROM " . TABLE_PREFIX . "v3arcade_sessions as sessions
LEFT JOIN " . TABLE_PREFIX . "user AS user
ON (sessions.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "v3arcade_games as games
on (sessions.gameid = games.gameid)
WHERE sessions.finish <> 0
ORDER BY sessions.sessionid DESC
LIMIT $limit
");

while ($latest_score = $vbulletin->db->fetch_array($latest_scores)) {
$as_score_userid = $latest_score['userid'];
$as_score_gameid = $latest_score['gameid'];
$as_score_name = $latest_score['username'];
$as_score_score = intval($latest_score['score']);
$as_score_gametitle = $latest_score['title'];
$as_score_date = vbdate($vbulletin->options['dateformat'],$latest_score['finish']);
$as_score_time = vbdate($vbulletin->options['timeformat'],$latest_score['finish']);
//echo "foo: $as_score_gametitle<br>\n";
$getbgrow = exec_switch_bg();
//eval('$as_scorebits .= "' . fetch_template('adv_portal_as_scorebits') . '";');
$templater = vB_Template::create('adv_portal_as_scorebits');
$templater->register('getbrow',$getbrow);
$templater->register('as_score_userid',$as_score_userid);
$templater->register('as_score_name',$as_score_name);
$templater->register('as_score_score',$as_score_score);
$templater->register('as_score_gameid',$as_score_gameid);
$templater->register('as_score_gametitle',$as_score_gametitle) ;
$templater->register('as_score_date',$as_score_date);
$templater->register('as_score_time',$as_score_time);
$as_scorebits .= $templater->render();
}
$vbulletin->db->free_result($latest_scores);

//eval('$score_table = "' . fetch_template('adv_portal_as_scoretable') . '";');
$templater = vB_Template::create('adv_portal_as_scoretable');
$templater->register('as_scorebits',$as_scorebits);
$score_table = $templater->render();
return $score_table;
}

$as_score_table = get_latest_scores($g_scores_limit);
$as_news_table = get_latest_champs($g_news_limit);
$as_random_table = get_random_game();
$as_champs_table = get_champs($g_champs_limit);
$as_recent_table = get_games("recent","Most Recent", $g_limit);
$as_played_table = get_games("played","Most Played", $g_limit);
$as_popular_table = get_games("popular","Most Popular", $g_limit);

$collapseobj_arcadestats = $vbcollapse['collapseobj_arcadestats'];
$collapseimg_arcadestats = $vbcollapse['collapseimg_arcadestats'];

//eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_arcadestats') . '";');
$templater = vB_Template::create('adv_portal_arcadestats');
$templater->register('as_score_table',$as_score_table);
$templater->register('as_news_table',$as_news_table);
$templater->register('as_random_table',$as_random_table);
$templater->register('as_champs_table',$as_champs_table);
$templater->register('as_recent_table',$as_recent_table);
$templater->register('as_played_table',$as_played_table);
$templater->register('as_popular_table',$as_popular_table);
$output = $templater->render();

Save it, then go to AdminCP>vBulletinCMS>Layout Manager and add your new widget.

You can see the result on my site http://www.forumbanter.com

It took about 10 minutes. I still need to go back and edit the templates to make them fall in line with the changes introduced in vb4.0.8

If you have any problems let me know and I'll post up each individual template over on v3arcade.com but I'm off to bed now.

K4GAP
11-08-2010, 04:39 AM
So, anyone have a collection of games yet? I have several hundred but they are out of date. Would it be wrong for members to trade games they have with other members?

I just need games, ever how I can get them :)

Gemma
11-08-2010, 08:16 AM
So, anyone have a collection of games yet? I have several hundred but they are out of date. Would it be wrong for members to trade games they have with other members?

I just need games, ever how I can get them :)

Have you set up an account at MochiMedia (http://www.mochimedia.com/)? Once set up, there is thousands of games to install via your AdminCP at a few clicks of the mouse button.

Also all iBProArcade v32 converted games will run on the arcade - a simple google search should provide a list of sites

gator777
11-08-2010, 02:31 PM
Hey KW802, very nice mod and thanks for all your hard work. :)

I was having two issues. I lost my .tar files, so I am manuually uloading and adding them using the V3Arcade CP.

- The game posts as it should and I can play it, but the images are missing (even though they are the proper folder) .

- When I try to post a score (from the manually added games), I get a "Security token is missing" error.

Xeyn
11-08-2010, 03:31 PM
Brilliant..Thats all i can say.........How do i mass delete all agmes installed thoe?got over 400 games installed...and dnt fancy cliking delete 1 by 1......also kw....i sent you a forum pm:-)

8thos
11-08-2010, 03:50 PM
My ibproArcade stopped saving games. I tried several fixes and they did not work. It worked during vb4.07 but not after I upgraded to vb4.08.

Will v3 Arcade save games?

8thos
11-08-2010, 03:54 PM
How the hell do you earn money from this?

Gemma
11-08-2010, 03:59 PM
- When I try to post a score (from the manually added games), I get a "Security token is missing" error.

If you are using vBulletinCMS - http://www.v3arcade.com/forums/showthread.php?t=3215
If you are using vBAdvanced - http://www.v3arcade.com/forums/showthread.php?t=3407

gator777
11-08-2010, 04:17 PM
If you are using vBulletinCMS - http://www.v3arcade.com/forums/showthread.php?t=3215
If you are using vBAdvanced - http://www.v3arcade.com/forums/showthread.php?t=3407

Thanks, but I have tried that. Then then I get this...

The file(s) uploaded were too large to process.

Gemma
11-08-2010, 04:27 PM
Do you know if modsecurity is enabled on your server?

mmacrypt
11-08-2010, 04:53 PM
looks very promising, it's on the list of stuff I will look into. Sadly, that list of tagged items might be about 20 deep but it will get my look and try.

Good job.

Gemma
11-08-2010, 06:25 PM
My ibproArcade stopped saving games. I tried several fixes and they did not work. It worked during vb4.07 but not after I upgraded to vb4.08.

Will v3 Arcade save games?

Don't see any reason why v3arcade wouldn't save the games, as long as you make any edits to the index.php file if you are using vBAdvanced or vBSuite CMS

gator777
11-08-2010, 06:37 PM
Ok, I found some my missing .tar game files and sucessfully imported them, but I am haing a few issues.

- If I beat a high score using one of the imported games, it will only posts the first score. Subsequent high scores do not post.

- Also, when I manually "Add Game," the images do not appear (although I could workaround that by accessing the database), and the scores will not even attempt to post. What could I be doing wrong with the manual update?

Gemma
11-08-2010, 06:52 PM
Are those manually installed games IPB v32 games?

If so can you make sure you have a folder called 'arcade' which has a subfolder called 'gamedata', they should have been created when you installed the arcade but the correct files may not be uploaded to these folders, when installing manually.

IPB v32 games need a gamedata folder because of the way the scores are written.

gator777
11-08-2010, 07:03 PM
Thanks Gemma, I did have them in tyhe correct folder, but that wasn't the issue.

I have since dicovered that by changing the "isreverse" table in the db from "1" to "0" solved the scoring issue.

All I have left is to figure out why the manually added games will not post scores.

Gemma
11-08-2010, 07:05 PM
I'll go and manually add a game on my site and get back to you

Gemma
11-08-2010, 07:35 PM
Ok I've found a problem, hopefully it will solve your score errors for manual installs.

When installing manually there is a box above the game system drop down (iBPro, v3Arcade etc), on my system that box above is blank and doesn't have anything to tell you what should go in it.

It should contain the Gamename Shortname (gname in IPB) which is the swf minus the .swf (see attachment). The shortname will always be the flash filename minus the swf extension.

Can you try adding another game manually and see if it works?

gator777
11-08-2010, 07:44 PM
Ok I've found a problem, hopefully it will solve your score errors for manual installs.

When installing manually there is a box above the game system drop down (iBPro, v3Arcade etc), on my system that box above is blank and doesn't have anything to tell you what should go in it.

It should contain the Gamename Shortname (gname in IPB) which is the swf minus the .swf (see attachment). The shortname will always be the flash filename minus the swf extension.

Can you try adding another game manually and see if it works?

That was it ...that worked like a champ. :D

Thanks for your help...

Sarcoth
11-08-2010, 08:46 PM
Hmmm, I am very impressed with what I have read so far. I will have to give this a try this weekend or sooner if possible. One question first, does it already work with any of the currency systems? I'm specifically using [DBTech] vBCredits II Deluxe. I did not notice anything about he current systems in the list of features, but I can be blind occasionally.

Thanks.

gator777
11-09-2010, 02:03 AM
I got so caught up in trying to work my issues that I almost forgot the most important thing ...and that was to say THANK YOU! This is a very, very nice mod...

I really like the ability you created to allow the user to increase the resolution of the game ...very nice touch :D

glen290
11-09-2010, 11:10 AM
Installed and playing around with it to see if i decide to change ove or not, having a few issues with not saving high scores, and the mochi scores too, but cant get on to v3a.com in work due to filters..

Gemma
11-09-2010, 12:50 PM
Installed and playing around with it to see if i decide to change ove or not, having a few issues with not saving high scores, and the mochi scores too, but cant get on to v3a.com in work due to filters..

For mochi games, has crossdomain.xml been uploaded to your site root?

For other games, are you running either vB Suite CMS or vBadvanced CMPS?

glen290
11-09-2010, 01:09 PM
crossdomain has been uploaded, i have vbulletin cms but its disabled at the moment as its garbage :(

Veer
11-09-2010, 04:09 PM
crossdomain.xml What is it for?

Gemma
11-09-2010, 04:24 PM
It is require for the scoring of Mochi games, if you are using Mochi games (leaderboard enabled ones) and you don't have crossdomain.xml in your site root the scores want be saved to your site.

Veer
11-09-2010, 04:31 PM
It is require for the scoring of Mochi games, if you are using Mochi games (leaderboard enabled ones) and you don't have crossdomain.xml in your forumroot the scores want be saved to your site.
Thank you Gemma, but I already uploaded that file in forum root directory and Mochi games scores not going to save. just redirecting to an error page e.g. you do not have permission to access this page and also contains OR != 1 ORon on above header.

I double checked, I installed leaderboard enabled games and also added MochiMedia Publisher ID and Secret Key.

Gemma
11-09-2010, 04:42 PM
Is that with every Mochi game?

Can you try increasing your Session Timeout. AdminCP>Cookies and HTTP Header Options to see if it is cookie related.

Also Adblockers seem to be an issue - http://www.v3arcade.com/forums/showthread.php?t=3325

Veer
11-09-2010, 04:59 PM
Is that with every Mochi game?

Can you try increasing your Session Timeout. AdminCP>Cookies and HTTP Header Options to see if it is cookie related.

Also Adblockers seem to be an issue - http://www.v3arcade.com/forums/showthread.php?t=3325
Yes, same with every mochi game.

Please correct me, Mochi Game scores saves on forum arcade installation or they save on Mochi site? If I delete crossdomain.xml my scores going to save on Mochi sites without any problem but not on my arcade, is that correct?

glen290
11-09-2010, 05:44 PM
got it working fine, looks pretty good, although not too impressed with the disney adverts i get when a mochi game is loading

yahooooh
11-09-2010, 06:06 PM
the games stop submit scores i just upgrade from vbulletin 3 and v3arcade 1.0.6

is there issue on this?

GeorgeB85
11-09-2010, 10:40 PM
Where exactly do I go to download more games?

Harelin
11-09-2010, 11:15 PM
Receiving the following error when attempting to install MochiMedia.com games through the admin CP:

"An appropriate representation of the requested resource /home/admincp/v3arcade_admin.php could not be found on this server."

I've followed all of the instructions here (http://www.v3arcade.com/forums/showthread.php?t=1934) and have had no luck resolving the issue. Any suggestions?

Gemma
11-10-2010, 01:34 PM
Do you know if your host has mod_security turned on?

You can ask your host or if you have a .htaccess file add the following to it
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

See if that allows you to upload games. Someone else had this problem on v3arcade.com but they never got back to me.....:rolleyes:

KW802
11-10-2010, 09:08 PM
Wow, you have guys/gals have been busy. I had to catch up from page 3 of the thread. :p Thanks Gemma. :) Nice job with you guys/gals working on that CMS widget; just took a look over at Forum-Banter to see it in action. It's a shame CMS widgets aren't as easy to package as CMPS modules. :(

I really like the ability you created to allow the user to increase the resolution of the game ...very nice touch (P.S. I would like to request you add "125%" selection for that pull-down) :DShould be easy enough... I'll try to add that to my test site tonight when I get home before I forget.

got it working fine, looks pretty good, although not too impressed with the disney adverts i get when a mochi game is loadingSorry, but as noted in the Mochi FAQ (http://www.v3arcade.com/forums/showthread.php?t=1934), we have no control over that. It is the price to pay for getting easy access to thousands of free games.

the games stop submit scores i just upgrade from vbulletin 3 and v3arcade 1.0.6

is there issue on this?Please see Gemma's response from earlier... (requoted below)If you are using vBulletinCMS - http://www.v3arcade.com/forums/showthread.php?t=3215
If you are using vBAdvanced - http://www.v3arcade.com/forums/showthread.php?t=3407

Where exactly do I go to download more games?As Gemma noted, you can join Mochi for access to thousands of free games. Otherwise, v3 Arcade is compatible with v3 Arcade formatted games, IPB formatted games, IPB v32 formatted games, and Mochi games. A quick Google search should offer places to dowload v3A & IPB games.

KW802
11-10-2010, 09:10 PM
When installing manually there is a box above the game system drop down (iBPro, v3Arcade etc), on my system that box above is blank and doesn't have anything to tell you what should go in it.

It should contain the Gamename Shortname (gname in IPB) which is the swf minus the .swf (see attachment). The shortname will always be the flash filename minus the swf extension.Drats! Confirmed bug (phrase issue really). Will fix tonight.

KW802
11-10-2010, 09:23 PM
Hmmm, I am very impressed with what I have read so far. I will have to give this a try this weekend or sooner if possible. One question first, does it already work with any of the currency systems? I'm specifically using [DBTech] vBCredits II Deluxe. I did not notice anything about he current systems in the list of features, but I can be blind occasionally.

Thanks.
I have been trying to get their attention but no luck so far. :o I just posted again on their web site...

http://www.dragonbyte-tech.com/threads/1381-What-order-do-I-untangle-this-upgrade-to-vbcredits-pro?p=11261&viewfull=1#post11261

gator777
11-10-2010, 09:46 PM
Is there an easier way to change the category of a game without having to enter into and edit each individual game?

It would be nice if you could add a "Pull-down" menu to change the category while in the "Manage Games" section. :D

gator777
11-10-2010, 09:49 PM
Should be easy enough... I'll try to add that to my test site tonight when I get home before I forget.

You already have a setting for this in the V3Arcade Admin panel. I added 125% to the lineup. Very nice. :)

Thanks again for a great mod...

msorin
11-10-2010, 09:49 PM
I am getting the following on top of the page after submitting scores from Mochi games "OR != 1 OR " and instead of the game I am taken to arcade.php?sessdo=burn&mochigame=108 page that says I do not have permissions to post even though I am admin and I have set all permissions to Yes.

gator777
11-10-2010, 09:58 PM
I am getting the following on top of the page after submitting scores from Mochi games "OR != 1 OR " and instead of the game I am taken to arcade.php?sessdo=burn&mochigame=108 page that says I do not have permissions to post even though I am admin and I have set all permissions to Yes.
Follow these instructions to the "letter," and it should fix your issues. I was in such a rush to install it, I didn't pay attention to the instructions, but this fixed it.

http://www.v3arcade.com/forums/showthread.php?t=1934

GeorgeB85
11-11-2010, 12:49 AM
Nevermind fixed the issue.

One feature I would like, is when you download games, for there to be a way not to include the games you have already downloaded.

KW802
11-11-2010, 12:56 AM
You already have a setting for this in the V3Arcade Admin panel. I added 125% to the lineup. Very nice. :)

Thanks again for a great mod...Why, yes, yes there is :D .... there are so many options in the ACP that sometimes I forget what is ACP configurable.

For those wanting to add/change the available game zoom dimensions, you can find the option at ACP => v3 Arcade => v3 Arcade General Settings => Game Size Resolutions.

KW802
11-11-2010, 12:58 AM
Is there an easier way to change the category of a game without having to enter into and edit each individual game?

It would be nice if you could add a "Pull-down" menu to change the category while in the "Manage Games" section. :D
If you don't mind, post that in the Suggestions forum over at v3Arcade.com? :o

KW802
11-11-2010, 01:01 AM
Nevermind fixed the issue.

One feature I would like, is when you download games, for there to be a way not to include the games you have already downloaded.Do you mean in the Mochi listings? Unfortunately there isn't a quick path to doing that because the Mochi listings are really XML feeds that are read from the Mochi servers in real time. To filter them against the list of already installed would cause a bunch of queries as your go through the pages of the list of games.

gator777
11-11-2010, 04:23 AM
If you don't mind, post that in the Suggestions forum over at v3Arcade.com? :o

Will do, sir. :D

Gemma
11-11-2010, 08:43 AM
Arcade Stats Widget For vBSuite CMS is now available on v3arcade.com - http://www.v3arcade.com/forums/showthread.php?t=3574

yahooooh
11-11-2010, 11:08 AM
Please see Gemma's response from earlier... (requoted below)


i did this alrady but the issue is the page will not gotoresultpage to submit the score also when the submit manually the clicked aread not be clicked i think there are issue in js or something plz can you fix it , i use dafult style

it is like look this issue:
http://www.v3arcade.com/forums/showthread.php?t=3568

but i have already 5000 games and nothing work , they were working when vbulletin version 3.8
but after i upgrade vbulletin and v3arcade
it will not submit and it will not open any page and it will not also submit scores manually

yahooooh
11-11-2010, 01:53 PM
ok i found the error
the swf games was in subfolder:
games/swf
and i jutt move swf to be :
in same level and make it:
./swf

thank you

and i have question how to make vbseo also get the title of the games in game page
on 3.8 and v31rcade 1..0.6 there was addon to make it work to get words in the link ex:
games-play-football-33.html

but now it it will not work
and i hope you add title of the game in the arcade play page :
arcade.php?do=play&gameid=1464
to be
arcade.php?do=play&gameid=1464&title=UFO Breaker
so we can use vbseo to make it :
ufo-break-1464.html

8thos
11-15-2010, 11:57 PM
I installed v3 Arcade on my vb4.08 Publishing Suite and game scores still aren't saving. I even followed the directions in this thread: http://www.v3arcade.com/forums/showthread.php?t=3215

Gemma
11-16-2010, 07:41 AM
Which type of game - v3arcade, ibpArcade v32 or Mochi?

8thos
11-16-2010, 05:22 PM
Which type of game - v3arcade, ibpArcade v32 or Mochi?
How can you tell what type of game it is? It's called Ninja Kid. I imported all my games over from IbpArcade

Gemma
11-16-2010, 05:35 PM
Ok it will be a v32 game. What happens when you're submitting scores?

8thos
11-16-2010, 06:49 PM
Ok it will be a v32 game. What happens when you're submitting scores?While I'm playing the game, it will show my points when I kill a ninja, then it will automatically drop down to zero, rinse, wash, repeat.

yahooooh
11-17-2010, 04:12 PM
hello
i was using v3arcade v 1.0.8 as subdomain with little change that i did in the file arcade.php
and i put the arcade in subdomain and use for more than one year

but now after i upgrade vb4 and v3arcade i use the same manner and the file will be work but the links of the games still show the links ad main domain

what i did :

just open this arcade.php
and look for :
'userinfosearch' => array(
'v3arcade_miniuserinfo'
)
);then add :
require_once('./dyna_config.php');

chdir($forumpath);after that make file :
dyna_config.php
with those code:
<?php

error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);

// ============================================
// Enter the full path to your forum here
// Example: /home/yoursite/public_html/forum
// ============================================

$forumpath = '/home/user99/public_html';

?>after you write the coorect forum info it will work on the subdomain
the same way change all files that related to arcade on the level of the forum but put them on the subdomain
also you can fix the score submits with the same manner

this was work on the 1.0.8

but now it still show links of the games ,categories and others as from the main domain
for example
forum on :
http://www.site.com
the usual arcade url was :
http://www.site.com/arcade.php

after i did the changes
it will be :
http://games.site.com/arcade.php
but when i visit the links inside still show the main domain ,ex:
http://www.site.com/arcade.php?do=play&gameid=5171
and also all links for categories and others

i try to change the arcade url in style by replacement of :
<a href="arcade.php?{vb:raw session.sessionurl}
to
<a href="http://games.site.com/arcade.php?{vb:raw session.sessionurl}

but the result will be all links show :
http://www.site.com/games.site.com/arcade.php
and so on


how to fix this

ellinofatsa
11-21-2010, 01:57 PM
i have problem with the score i have vb4,08 pats 2 i have v3 Arcade
the games are not save the score and if the game its in the end and i clik for submit
i see this link
http://www.ellinofatsa.gr/forums/index.php?act=Arcade&do=newscore
and a blang page!!!
i have do that= If you are using vBAdvanced - http://www.v3arcade.com/forums/showthread.php?t=3407
bud nathing!!!
is that inposible for litle help?
thank you!!!

you can take a look in my forum you can play as gest in the new games and see the problem!
my forum http://www.ellinofatsa.gr

i hope for your help

Gemma
11-21-2010, 09:06 PM
i have problem with the score i have vb4,08 pats 2 i have v3 Arcade
the games are not save the score and if the game its in the end and i clik for submit
i see this link
http://www.ellinofatsa.gr/forums/index.php?act=Arcade&do=newscore
and a blang page!!!
i have do that= If you are using vBAdvanced - http://www.v3arcade.com/forums/showthread.php?t=3407
bud nathing!!!
is that inposible for litle help?
thank you!!!

you can take a look in my forum you can play as gest in the new games and see the problem!
my forum http://www.ellinofatsa.gr

i hope for your help

I think your problem is related to this - https://vborg.vbsupport.ru/showpost.php?p=2119613&postcount=76

Can you check the v3arcade_games table in your database and browse some of the games that aren't scoring and see if the shortname field in the database is empty?

An example from your site would be the game girl_powerJS - it should be called 'Girl Power' as the girl_powerJS is the shortname.

If you look at the image in the url I posted above it shows you where the shortname should go when installing games, unfortunately the phrase is missing from the install screen at present. Best thing to do would be try it with one of the games that isn't working and see if it records scores.

SwollenCranium
11-21-2010, 10:39 PM
BUG:

Type: Cosmetic ... low priority

The Arcade Statistic tab in the user profile does NOT follow the same customization conventions that the user has selected. In other words the Arcade Stats become invisible under certain conditions of customizations.

Other than that this Arcade mod is tits and works great!

CK
11-22-2010, 12:15 PM
Hello,

I recently switched from ibproaracde to V3. I did a fresh install of V3 and all appeared to be working well. However I have since signed up to Mochi and added several games via admincp (the browse games option). All the games installed but none of them save scores, can you tell me how to fix this please.

Forum www.the-sps.org

Gemma
11-22-2010, 12:31 PM
Hello,

I recently switched from ibproaracde to V3. I did a fresh install of V3 and all appeared to be working well. However I have since signed up to Mochi and added several games via admincp (the browse games option). All the games installed but none of them save scores, can you tell me how to fix this please.

Forum www.the-sps.org

Did you upload crossdomain.xml to your site root?

CK
11-22-2010, 02:03 PM
Cheers for that, I have now. Hopefully that'll do the trick.

210665
11-22-2010, 04:17 PM
Hello

I have installed in my forum ibProArcade v2.7.0 +, the forum runs vBulletin 4.0.8 Patch Level 2
Can I now v3 Arcade - Professional vBulletin Gaming (VB4) install and use the Games for ibProArcade v2.7.0 +
Sorry for my English Google
Thanks
----------------------------------------------------------------------------------

Hallo

Ich habe bei mir im Forum ibProArcade v2.7.0+ installiert, im Forum läuft vBulletin 4.0.8 Patch Level 2.
Kann ich jetzt v3 Arcade - Professional vBulletin Gaming (vB4) einfach installieren und die Spiele von ibProArcade v2.7.0+ nutzen
Sorry für mein Google Englisch
Danke

Gemma
11-22-2010, 04:23 PM
There is a conversion script here - http://www.v3arcade.com/forums/showthread.php?t=3001 - to transfer your current ibProArcade games, settings, scores etc to v3arcade.

All v32 ibProArcade games will work with v3arcade, if you are using vB Suite CMS or vBadvanced CMPS, however, there is a small file edit required to be made to your index.php

ellinofatsa
11-22-2010, 08:31 PM
i have vb4,8
and i have CMPS v4.0.0
my scores dont save
is that right?
MY CODE FROM MY INDEX.PHP
=

if ($forumpath)
{
if (!is_dir($forumpath))
{
echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
exit;
}

chdir($forumpath);
}

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();

require_once('./includes/vba_cmps_include_template.php');require_once('./includes/v3arcade_vbsuite_index_compatibility.php');require _once('./global.php');

print_portal_output($home);

?>
AND IF NOT CAN ANYBADY HELP MY TO POST THE RICHT??

Gemma
11-22-2010, 08:46 PM
Try changing this part
require_once('./includes/vba_cmps_include_template.php');require_once('./includes/v3arcade_vbsuite_index_compatibility.php');require _once('./global.php');

To this
require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');
require_once('./includes/v3arcade_vbsuite_index_compatibility.php');

ellinofatsa
11-23-2010, 12:45 PM
i have do that bud not save scor!!!
this is my code after change....any help please after this my portal dont work

www.ellinofatsa.gr my forum

============================================

$forumpath = 'forums';

// ============================================
// No Further Editing Necessary!
// ============================================

if ($forumpath)
{
if (!is_dir($forumpath))
{
echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
exit;
}

chdir($forumpath);
}

$phrasegroups = array();
$globaltemplates = array();
$actiontemplates = array();
$specialtemplates = array();require_once('./includes/vba_cmps_include_template.php');
require_once('./global.php');
require_once('./includes/v3arcade_vbsuite_index_compatibility.php');

ellinofatsa
11-23-2010, 12:58 PM
thank you gemma bud not working i have do that you say bad them my cmps dont work i see only white page!!!
can you take a look in my forum?anibady can help my with that?
my forum link www.ellinofatsa.gr you can see tha arcade and play the new games as gest if you can help my

ellinofatsa
11-23-2010, 01:17 PM
...

CK
11-24-2010, 11:44 AM
Okay, I uploaded the cross domain xml but none of the game stats or scores are saving. Any ideas?

Gemma
11-24-2010, 05:26 PM
Okay, I uploaded the cross domain xml but none of the game stats or scores are saving. Any ideas?

Where did you upload the crossdomain.xml file to?

Do you receive any error messages when submitting scores?

TilkiBey
11-25-2010, 07:20 PM
i ve a problem with "Post game to my site" option
Oops!
There was a problem posting Milo Physics to your site. Please double-check your site's autopost URL and try again. If you need help, feel free to write us at support@mochimedia.com.

i think, autopost url settings re ok
Costum Built script
http.....admincpdir/v3arcade_admin.php?do=mochilive

i cannot use auto post system, how can i solve this problem?

B?rger_von_Rado
11-25-2010, 08:03 PM
this is a nice mod! thx!

John Diver
11-29-2010, 08:18 AM
Im having the permission error on my site still.


It is for the mochi games, once I play the game, it is saying I dont have permission to access the page after the game has finished.

I have uploaded the crossdomain file to root and forum folder.

I have set the usergroup permissions.

Not sure what else could be wrong?

Thanks :)

Gemma
11-29-2010, 10:56 AM
Im having the permission error on my site still.


It is for the mochi games, once I play the game, it is saying I dont have permission to access the page after the game has finished.

I have uploaded the crossdomain file to root and forum folder.

I have set the usergroup permissions.

Not sure what else could be wrong?

Thanks :)

I've put together some solutions to problem on v3arcade.com - did you try those?

http://www.v3arcade.com/forums/showthread.php?t=3602

themental
11-29-2010, 09:15 PM
Hello , First of all this is amazing job im new on vb so i installed your mod and i registered as publicer on mochi and then i verified my domain and im going to install a game after browsing their db and i get this error

Not Acceptable

An appropriate representation of the requested resource /admincp/v3arcade_admin.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Gemma
11-29-2010, 09:31 PM
Hello , First of all this is amazing job im new on vb so i installed your mod and i registered as publicer on mochi and then i verified my domain and im going to install a game after browsing their db and i get this error

Not Acceptable

An appropriate representation of the requested resource /admincp/v3arcade_admin.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Does your host have mod_security running on your server?

themental
11-29-2010, 11:12 PM
Does your host have mod_security running on your server?

as i know they dont run .

Gemma
11-30-2010, 07:53 PM
as i know they dont run .

Can you check with your host? That error tells me mod_security rules are in effect.

http://www.vbulletin.com/go/modsecurity

Gemma
12-01-2010, 01:01 PM
Just before anyone asks, it is working fine on my vB4.1 test site :)

andreamarucci
12-01-2010, 07:24 PM
Hi mates, just a question. I would like to switch from ibproarcade to v3arcade but I've two questions

1 - My host has mod_security v2 installed. Is this mod working with mod_sec?
2 - Where can I find some games for v3 arcade? Are the same games that I've used for ibpro? Can I use the same tar?

Thank you very much indeed...

Gemma
12-01-2010, 07:54 PM
If you check this thread - http://www.v3arcade.com/forums/showthread.php?t=3602 - there is some code you can add to a .htaccess file to 'bypass' mod_security (mod_security only effects installing mochimedia games via autopost)

All ibPro v32 games work with v3arcade, there is also a selection of v3arcade games on v3arcade.com and you can use games from mochimedia.com

There is also a conversion script on v3arcade.com - http://www.v3arcade.com/forums/showthread.php?t=3001 which will allow you to convert all your games, scores etc from your current ibProArcade to v3arcade.

andreamarucci
12-02-2010, 05:56 AM
Thanks Gemma. I'll install is asap...

andreamarucci
12-02-2010, 06:46 AM
Last question before installing.

In the old arcade folder I've many .swf files that are the old games. I've seen that in the v3 arcade installation there's a games folder with some .swf. Can I simply copy all my old .swf files inside this folder to have all my old games back in v3 arcade or do I have to set up a new procedure to add more games?

CK
12-02-2010, 07:27 AM
Has anyone got a list of quality games for download?

Gemma
12-02-2010, 10:38 AM
Last question before installing.

In the old arcade folder I've many .swf files that are the old games. I've seen that in the v3 arcade installation there's a games folder with some .swf. Can I simply copy all my old .swf files inside this folder to have all my old games back in v3 arcade or do I have to set up a new procedure to add more games?

If you run the conversion script you won't lose any of your games, just follow the instruction in the thread and onscreen

http://www.v3arcade.com/forums/showthread.php?t=3001

andreamarucci
12-02-2010, 11:10 AM
Thanks but I don't need to convert scores, just to have the old games available. I've uninstalled yet IBPro arcade so I think I only need to copy the swf, isnt'it?

andreamarucci
12-02-2010, 11:40 AM
All done...

andreamarucci
12-02-2010, 01:56 PM
Big problem. Everything seems to work but the problem is that after I've played, when I click on the send score button, I quit to the main forum page and no score is registered...

andreamarucci
12-02-2010, 02:00 PM
Just to be more precise. When I play at one of the games included in the release the score registering works. Does not works if I play at one of the games that I've imported form IBPro using the included functions in the admin...

fluidswork
12-02-2010, 02:50 PM
Great addon .........

andreamarucci
12-02-2010, 03:51 PM
Wow, I've to admit thet this mod is light years ahead of IBPro Arcade. Everything works fine.

Just a question. I've modified the Score Date Format in the admin panel; i've inserted d-m-Y G:i that I think is correct to display the italian date. Problem is that in the board instead of the date appear "d-m-Y G:i".

I've missed something?

thanks

Gemma
12-02-2010, 03:54 PM
Just to be more precise. When I play at one of the games included in the release the score registering works. Does not works if I play at one of the games that I've imported form IBPro using the included functions in the admin...

Do you receive any error message?

You say 'using the included functions in admin' are you trying to import the games manually or as .tar files?

Using the importer would have moved all your game data from ibproarcade database format to v3arcade compatible format - things like file name, images, gname etc - not just scores.

Gemma
12-02-2010, 04:17 PM
I've got my Score Date Format set as

\A\t\ G:i:s \o\n\ M j Y.

It only appears in that format on the game highscore page - not on tournaments, leaderboards etc. Not sure if that is a bug or not.

numberguy
12-02-2010, 08:58 PM
I am using v3 Arcade. The games that came with it are saving scores just fine. However, when I try to save a score from a Mochi game, I get the following error:


Numberguy, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Please Help. Thanks.

EDIT--Fixed:

I needed to upload crossdomain.xml to my site root

Good work! Awesome arcade!

maz72
12-05-2010, 09:01 AM
i have v3 arcade on my forum downloaded from here i planned to add more games direct from v3 arcade i have sorted a licence out made a account with mochimedia i am able to get as for as downloading the game but it just takes me to my main forum page also i need to get a MochiMedia Publisher ID and a secret code this is all new to me any advice i would be so greatfull

thanks maz

Gemma
12-05-2010, 09:10 AM
Here is some information about Mochi Integration - http://www.v3arcade.com/forums/showthread.php?t=1934

Steps 6 and 7 are what you're looking for :)

maz72
12-05-2010, 09:22 AM
thank you just reading through it now your a star

TheInsaneManiac
12-06-2010, 04:35 AM
After playing a Mochi game I get OR != 3 OR at the top of the page and a permissions error.

Macbookpro
12-07-2010, 11:54 AM
First of all, very nice plugin. Still working on the german language configuration but that should not be a big deal.
But one question. I need pacman (its on the v3arcade page), where can I find the install file??

Cheers and again thank you.

Macbookpro
12-07-2010, 12:04 PM
Ok, not as easy as thought. How is the language file named? Would like to change the language into German. Dont mind translating it and sharing it.

Gemma
12-07-2010, 12:16 PM
Does that help?

http://www.v3arcade.com/forums/showthread.php?t=3414

If I remember correctly Pacman was removed fro the arcade distribution due to legal issues with Namco but I'm sure if you search some arcade games sites , or Mochi Games, you'll find an alternative

Hippy
12-08-2010, 12:32 AM
php was upgraded from 5.2.14 to 5.3.2-1 and now the arcade is throwing errors at the top of the arcade and will not display at all

Deprecated: Assigning the return value of new by reference is deprecated in /public_html/testvb/arcade.php on line 1786

Deprecated: Assigning the return value of new by reference is deprecated in /public_html/testvb/arcade.php on line 2580

and this error in the middle of the page

Unable to add cookies, header already sent.
File: /public_html/testvb/arcade.php
Line: 1786

how can this be fixed to work with the latest php..
thanks

K!nG
12-08-2010, 04:47 AM
I don't have currently any arcade on my forum since i just got the new one and when i tried to upload XML file via admincp this is the error that i get... don't know what m doing wrong please help if you can and thanks in advance.


Warning: require_once([path]/includes/v3arcade_class_db_analyse.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/adminfunctions_plugin.php(920) : eval()'d code on line 878

Fatal error: require_once() [function.require]: Failed opening required '/home/HOSTNAME/public_html/SITENAME.com/includes/v3arcade_class_db_analyse.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/HOSTNAME/public_html/SITENAME.com/includes/adminfunctions_plugin.php(920) : eval()'d code on line 878

:confused::o

Macbookpro
12-08-2010, 06:42 AM
HI Gemma,

Thanks for the quick answer. Will check where I can find it.

If someone has an idea, where to get the packman game, open for suggestions.

Take care

Gemma
12-08-2010, 10:45 AM
HI Gemma,

Thanks for the quick answer. Will check where I can find it.

If someone has an idea, where to get the packman game, open for suggestions.

Take care

Sent you a PM for Pacman

Gemma
12-08-2010, 11:27 AM
php was upgraded from 5.2.14 to 5.3.2-1 and now the arcade is throwing errors at the top of the arcade and will not display at all

Deprecated: Assigning the return value of new by reference is deprecated in /public_html/testvb/arcade.php on line 1786

Deprecated: Assigning the return value of new by reference is deprecated in /public_html/testvb/arcade.php on line 2580


and this error in the middle of the page

Unable to add cookies, header already sent.
File: /public_html/testvb/arcade.php
Line: 1786

how can this be fixed to work with the latest php..
thanks

What is the code on lines 1786 and 2580?

Hippy
12-08-2010, 08:06 PM
I don't have access to the files from work
but if I remember correctly this is what's on both lines √

$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

Gemma
12-08-2010, 08:26 PM
I'm not running PHP 5.3.x but try removing the ampersand

$parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());

Hippy
12-08-2010, 11:35 PM
yes thats what I did to get it working but I wasn't sure that was correct.

thanks

ForenOpfer
12-11-2010, 08:56 PM
Hey there,

finally, everything works fine. I tried your Import-XML to switch from IBPro to v3arcade and its just great. Very very nice mod, I would like to nominate it as MOTM, but i can't find the Nominate-Button O.o

Best Regards from Germany
ForenOpfer

rob01
12-16-2010, 03:13 AM
the v3arcade_postbit_userid_trophy_wrapper template seems to be uncatched

Gemma
12-16-2010, 11:44 AM
Open the plugin Arcade Template Caching and find

$cache[] = 'v3arcade_award_bit';
$cache[] = 'v3arcade_postbit_userid_trophy';
}

Replace it with

$cache[] = 'v3arcade_award_bit';
$cache[] = 'v3arcade_postbit_userid_trophy';
$cache[] = 'v3arcade_postbit_userid_trophy_wrapper';
}

Gemma
12-16-2010, 08:14 PM
Hey there,

finally, everything works fine. I tried your Import-XML to switch from IBPro to v3arcade and its just great. Very very nice mod, I would like to nominate it as MOTM, but i can't find the Nominate-Button O.o

Best Regards from Germany
ForenOpfer

You can vote for v3arcade in the December MotM poll here - https://vborg.vbsupport.ru/showthread.php?t=254496

KW802
12-16-2010, 09:39 PM
I'm not running PHP 5.3.x but try removing the ampersand

$parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());

Open the plugin Arcade Template Caching and find
...
Both will be included in the next refresh, thanks. :cool:

OldSchoolDSL
12-17-2010, 06:28 PM
I've given up on trying to import any game using this.

All I get is

"There are no more games to import."

But nothing ever gets imported. I'm not going to manually import XXX amount of games and if it can not do it on its own, then its worthless.

The only games I seem to be able to install are from v3Arcade website and using the MochiMedia.com importer, but its not search-able.

GeorgeB85
12-17-2010, 06:31 PM
The only games I seem to be able to install are from v3Arcade website and using the MochiMedia.com importer, but its not search-able.

This is what the mod is for.

OldSchoolDSL
12-17-2010, 06:37 PM
This is what the mod is for.

Mod also says they can import games which have been uploaded manually (such as iB "Pro" Arcade games or other v3Arcade games). Nothing I upload to the server manually ever gets imported.

Only thing that gets imported is if I use v3Arcade's website or use the Browse MochiMedia.com Games (which isn't search-able)

Gemma
12-17-2010, 06:45 PM
In what way is MochiGames not searchable?

I've made a thread on v3arcade.com which might address some of your problems with ibPro games - http://www.v3arcade.com/forums/showthread.php?t=3602

KW802
12-17-2010, 06:49 PM
Mod also says they can import games which have been uploaded manually (such as iB "Pro" Arcade games or other v3Arcade games). Nothing I upload to the server manually ever gets imported.

Only thing that gets imported is if I use v3Arcade's website or use the Browse MochiMedia.com Games (which isn't search-able)
What steps exactly are you taking with installing your IPB games? Should be as simple as uploading the .tar files to your server (default folder is /admincp/games), making sure that the folders specified in the ACP 'Import IPB Games' are chmod to 777 during installation, and then hitting the install button.

KW802
12-17-2010, 06:51 PM
... or use the Browse MochiMedia.com Games (which isn't search-able)

In what way is MochiGames not searchable?I suspect he means from the ACP. Since the ACP is driven from pre-defined feeds off of the Mochi server, it'd be a huge mess to even try a search feature directly from within the ACP using the feeds.

OldSchoolDSL
12-17-2010, 06:53 PM
In what way is MochiGames not searchable?

I've made a thread on v3arcade.com which might address some of your problems with ibPro games - http://www.v3arcade.com/forums/showthread.php?t=3602

If I upload a .tar file or .zip file... And tell it to mass import, all I have ever gotten is

Importing Games
There are no more games to import.

And then the .tar or .zip file is gone (off the server).

AdminCP > v3 Arcade > Import Games > Browse MochiMedia.com Games

Brings up a nice list, but you can not search by title ... ie... type in a name and get the exact game you want.

OldSchoolDSL
12-17-2010, 06:55 PM
What steps exactly are you taking with installing your IPB games? Should be as simple as uploading the .tar files to your server (default folder is /admincp/games), making sure that the folders specified in the ACP 'Import IPB Games' are chmod to 777 during installation, and then hitting the install button.

I do this. I get the following;

Importing Games
There are no more games to import.


.tar or .zip is removed, but no game imported

KW802
12-17-2010, 06:57 PM
If I upload a .tar file or .zip file... And tell it to mass import, all I have ever gotten is

Importing Games
There are no more games to import.You'll want to upload the IPB .tar files. If you check the link Gemma gave, there are pointers in there to help resolve any issues you may be having.
... Brings up a nice list, but you can not search by title ... ie... type in a name and get the exact game you want.Check my response above. If you need to do a search for a specific Mochi games, your best best is to search MochiMedia.com directly and then install from there. If you have your Mochi account configured correctly (see item #6 of the v3A Mochi FAQ (http://www.v3arcade.com/forums/showthread.php?t=1934)) then all you would need to do to install games from the Mochi site is listed in item #7 of the FAQ.

OldSchoolDSL
12-17-2010, 07:02 PM
You'll want to upload the IPB .tar files. If you check the link Gemma gave, there are pointers in there to help resolve any issues you may be having.
Check my response above. If you need to do a search for a specific Mochi games, your best best is to search MochiMedia.com directly and then install from there. If you have your Mochi account configured correctly (see item #6 of the v3A Mochi FAQ (http://www.v3arcade.com/forums/showthread.php?t=1934)) then all you would need to do to install games from the Mochi site is listed in item #7 of the FAQ.

Click the link, nothing in there seems to apply to me. I do not get any error messages. Only that the system tells me there is nothing to import.

Gemma
12-17-2010, 07:06 PM
Click the link, nothing in there seems to apply to me. I do not get any error messages. Only that the system tells me there is nothing to import.

Make sure the transfer type is set to auto or binary when uploading, if it is set at ASCII the files won't be found

OldSchoolDSL
12-17-2010, 07:11 PM
Make sure the transfer type is set to auto or binary when uploading, if it is set at ASCII the files won't be found

Was originally setup for Auto. Changed to Binary, just to be sure. Same results.

Attached is a simple v3Arcade games I've tried to import. No luck.

(Would upload the IB game also for an example, but can not upload tar files here)

KW802
12-17-2010, 07:37 PM
Was originally setup for Auto. Changed to Binary, just to be sure. Same results.

Attached is a simple v3Arcade games I've tried to import. No luck.

(Would upload the IB game also for an example, but can not upload tar files here)
{After looking at the zip file}.... the problem you're running into there is that it is a rather old file and the database names & installation methods have changed the last few years for v3A formatted games.

For that particular games, unzip the file to a folder, then modify the PHP file to replace the entire contents of the file to be this instead:<?php

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile: airfox.game.php,v $ - $Revision: 1.35 $');
define('NO_REGISTER_GLOBALS', 1);

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array();
$specialtemplates = array();

require_once('./global.php');

print_cp_header("v3 Arcade - AirFox");

// welcome step
if (!isset($_POST['do']))
{
$gameexists = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "v3arcade_games WHERE shortname='airfox'");
if ($DB_site->num_rows($gameexists)==0) {
print_form_header('airfox.game', 'stepone');
print_table_header("v3 Arcade - AirFox");
print_description_row("This script will install AirFox for your v3 Arcade.<p>
Make sure you upload the following files:<br>
airfox1.gif -> /images/arcade/airfox1.gif<br>
airfox2.gif -> /images/arcade/airfox2.gif<br>
airfox.swf -> /games/airfox.swf<p>
Click on \"Install AirFox\" to begin the installation.");
print_submit_row("Install AirFox", 0);
} else {
print_form_header('airfox.game', 'stepone');
print_table_header("v3 Arcade - AirFox");
print_description_row("AirFox is already installed!");
}
}

// ################################################## ###########################
// step 1
if ($_POST['do'] == "stepone")
{
$DB_site->query("INSERT INTO " . TABLE_PREFIX . "v3arcade_games (shortname, gameid, title, descr, file, width, height, miniimage, stdimage, gamesettings, highscorerid, highscore) VALUES ('airfox', NULL, 'AirFox', 'Blast your way thru enemy ships in this space shooter.', 'airfox.swf', 300, 320, 'airfox2.gif', 'airfox1.gif', 29, NULL, NULL)");
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "gamenews (newstext,newstype,datestamp) VALUES ('New game installed, <b>AirFox</b>','newgame'," . TIMENOW . ")
");
print_form_header('airfox.game', '');
print_table_header("v3 Arcade - AirFox");
print_description_row("Installation Complete! (PLEASE DELETE THIS FILE.)");
}

?>
The only change being that the table name is now "v3arcade_games" instead of just "games" (the table name changes were done as of v3A 2.0.0).

After that, upload the two .gif files to your /images/arcade folder and the .swf file to your /games folder. Upload the .php file to your /admincp folder and run the PHP file (eg:http://www.mysite.com/forums/admincp/airfox.game.php) and that will install the games settings for you into the tables. After that delete the airfox.game.php file from your server (but leave the rest).

OldSchoolDSL
12-17-2010, 07:47 PM
Wow. To much work for all the games I have.

Wonders if my IB games are out dated as well.

Attached one for review (please).

It's a zip, then inside that is the original .tar

KW802
12-17-2010, 07:54 PM
Wow. To much work for all the games I have.Depends on how old they really are. The v3A formatted games should've switched over to a PHP format some time ago where instead of having a stand-alone installer the PHP is instead just the variables need to be picked up by the installer in the ACP. Those games should install fine. It is just the really old files, like the first one you posted, where they still have their own stand-alone installer script.


Wonders if my IB games are out dated as well.

Attached one for review (please).

It's a zip, then inside that is the original .tarFor that one, it looks like it should work fine if you upload just the .tar file to your server and then go by the normal IPB install directions. I'll try to take a look tonight at my test server with installing that one.

OldSchoolDSL
12-17-2010, 08:01 PM
Someone just sent me a link to a place to get IB games and they imported (Thank you).

Only issue now is when the game ended... Rather then submit the score... I got this...

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

KW802
12-17-2010, 08:06 PM
Someone just sent me a link to a place to get IB games and they imported (Thank you).

Only issue now is when the game ended... Rather then submit the score... I got this...

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
Try this for IPB games & the vB4 Suite.... ;)

http://www.v3arcade.com/forums/showthread.php?t=3215


And before Gemma says it, that is covered in her problem solving thread also. :D

RichieBoy67
12-17-2010, 08:06 PM
Could you please either post the link or send it to me for the games?

In regards to the security token, I have not encountered that issue before. Are those games protected maybe??

Thanks,
Rich

RichieBoy67
12-17-2010, 08:07 PM
Someone just sent me a link to a place to get IB games and they imported (Thank you).

Only issue now is when the game ended... Rather then submit the score... I got this...

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.


Could you please either post the link or send it to me for the games?

In regards to the security token, I have not encountered that issue before. Are those games protected maybe??

Thanks,
Rich

sorry for the double post..

OldSchoolDSL
12-17-2010, 08:12 PM
This indeed was a useful link:
http://www.v3arcade.com/forums/showthread.php?t=3602

The fix there worked.

The site someone just passed to me was http://www.feckie.eu

Found a lot of games there.

teamshultz
12-17-2010, 08:48 PM
Is it possible to still access the files for the previous versions? My forums are almost entirely custom so I'd like to wait to upgrade to 4.0.8 until I have the time to make all the template updates. That being said, I'm using 4.0.7 but I'd love to have the arcade back up.

Are there archived files anywhere for 4.0.7?

teamshultz
12-17-2010, 08:52 PM
Ok, I'm looking in the download section of your website and I see a list of version options. Which one is for 4.0.7?

KW802
12-17-2010, 09:09 PM
Ok, I'm looking in the download section of your website and I see a list of version options. Which one is for 4.0.7?
You'll want the "2.0.1 (vB4)" version from the drop-down list when downloading at v3A. :)

teamshultz
12-17-2010, 09:46 PM
You'll want the "2.0.1 (vB4)" version from the drop-down list when downloading at v3A. :)

Thanks a lot! Got it all set up now. This is so much better than the leading competitor. I had to make absolutely zero template edits.

*Only suggestion: Place the sample games in their respective categories automatically.

Is it possible to add a game to multiple categories?

OldSchoolDSL
12-18-2010, 03:24 PM
I've run into only 1 bug that is not listed anywhere (that I could find) and its an odd one.

When looking at the games score, the system is ranking them backwards.... ie.... The lower score is ranked #1 and the highest score is in last place.

Anyone know what's up or how to fix this?

Gemma
12-18-2010, 04:41 PM
I've run into only 1 bug that is not listed anywhere (that I could find) and its an odd one.

When looking at the games score, the system is ranking them backwards.... ie.... The lower score is ranked #1 and the highest score is in last place.

Anyone know what's up or how to fix this?

Is that happening with every game? (IPB, v3 and Mochi ones?)

Go to your phpmyadmin and run the query..

UPDATE `v3arcade_games` SET isreverse = 0

It will set High scoring for all the games, however if there are some scores which require low scoring you will need to edit them manually.

There is also an option when managing games AdminCP > v3 Arcade > Manage Games to set the scoring to either high or low for each game.

I know some IPB games I've installed automatically set the score type to low when it shouldn't be - this is usually due to a poorly written php file by the game encoder (not setting the highscore_type correctly)

OldSchoolDSL
12-18-2010, 04:50 PM
Is that happening with every game? (IPB, v3 and Mochi ones?)

Go to your phpmyadmin and run the query..

UPDATE `v3arcade_games` SET isreverse = 0

It will set High scoring for all the games, however if there are some scores which require low scoring you will need to edit them manually.

There is also an option when managing games AdminCP > v3 Arcade > Manage Games to set the scoring to either high or low for each game.

I know some IPB games I've installed automatically set the score type to low when it shouldn't be - this is usually due to a poorly written php file by the game encoder (not setting the highscore_type correctly)

No it's not happening to every game. Only some games & thankfully only the IPB games.

So will I need to manually edit ever game this affects? I think I'd sooner remove the game, then going around and playing with phpmyadmin

EDIT: This seems to work..

There is also an option when managing games AdminCP > v3 Arcade > Manage Games to set the scoring to either high or low for each game.

Thank you :)

mattcaswell
12-18-2010, 08:48 PM
Won't import in products for VB4.1... just get ":" and it sits there. Was wanting to replace IBPRO with this, but at least IBPRO works.

KW802
12-18-2010, 11:37 PM
Won't import in products for VB4.1... just get ":" and it sits there. Was wanting to replace IBPRO with this, but at least IBPRO works.v3A works fine with vB4 quite well. ;) You're the first person to report an issue with importing the product XML into vB 4.1; I'll try a clean install tonight to make sure I didn't miss anything.

Hippy
12-18-2010, 11:45 PM
When installing fresh games to v3a from a tar game archive they don't scores..
these tar files where the same files used to add games to the ibpro..

common?

KW802
12-19-2010, 12:46 AM
When installing fresh games to v3a from a tar game archive they don't scores..
these tar files where the same files used to add games to the ibpro..

common?
Common? Nope, first report of that I'm hearing. Are you getting a blank page, a no permission error page, some other error?

mattcaswell
12-19-2010, 01:41 AM
v3A works fine with vB4 quite well. ;) You're the first person to report an issue with importing the product XML into vB 4.1; I'll try a clean install tonight to make sure I didn't miss anything.

I've downloaded and unpacked it 3 times.. when I select it with add product, you know you get the little [:] on the screen and there's nothing below it . I let it sit for over 10 minutes and nothing happens. I've installed other products before and after with no issues. Do I need to UNINSTALL my IBPRO arcade first.. can that be the issue?




Thanks for your time and effort!
matt

New Joe
12-19-2010, 02:54 AM
I installed this and it all works,
I went over to your site, registered as a user, registered my URL and tried to import/install some of your free games, but it just always takes me to a broken link page when I get to the stage to install.

I sent in a ticket around 4 days ago, but still don't have a reply.
Any ideas?

KW802
12-19-2010, 03:05 AM
Any ideas?
For download the sample games from v3A, have you tried the steps here:

http://www.v3arcade.com/forums/showthread.php?t=3490

Please let me know if that helps.

New Joe
12-19-2010, 03:29 AM
For download the sample games from v3A, have you tried the steps here:

http://www.v3arcade.com/forums/showthread.php?t=3490

Please let me know if that helps.

Thank you that worked.
I wish someone would have replied to my ticket with the above.

KW802
12-19-2010, 03:38 AM
Thank you that worked.No problem, glad to see you got it working.
I wish someone would have replied to my ticket with the above.For common questions like that it would be quite a task to keep up with the volume of support tickets for them. It is why, as part of creating a new ticket, there is bolded text asking that the forums are used first. :o

Hippy
12-19-2010, 01:01 PM
Common? Nope, first report of that I'm hearing. Are you getting a blank page, a no permission error page, some other error?

blank page with installed from mochimedia. they play but when submitting score it's a white page..

when installing games I have from ibpro I am getting security token error page..

KW802
12-19-2010, 02:51 PM
blank page with installed from mochimedia. they play but when submitting score it's a white page..

when installing games I have from ibpro I am getting security token error page..
Have you checked Gemma's problem solving tips?

http://www.v3arcade.com/forums/showthread.php?t=3602

Hippy
12-19-2010, 08:43 PM
thanks KW802 will read up

glen290
12-23-2010, 06:45 AM
Finally converted from IBP to this last night on my main board, no issues whatsoever...
Was having style issues with IBP so took the plunge after using it on my test board.
Great mod...

andrewpl
12-26-2010, 09:47 PM
Hello,
when i click to "Browse MochiMedia.com Games" than i become this:

XML-Fehler: Empty document in Zeile 0

My Version:4.0.8 Patch Level 2

andrewpl
12-28-2010, 07:23 PM
Can nothing Help me.

KW802
12-28-2010, 08:25 PM
Can nothing Help me.
Please check Gemma's problem solving thread...

http://www.v3arcade.com/forums/showthread.php?t=3602

andrewpl
12-28-2010, 09:58 PM
I have checked the 3 Steps not bugs found.

SBKTR
01-06-2011, 01:41 PM
I have this error.. can anyone help? (this is after I download games into folder, then click import) it says the game is there, but there is just a white screen, no click to play.

Warning: fopen([path]/admincp/games/../..//public_html/games/slingogolfibpg.swf) [function.fopen]: failed to open stream: No such file or directory in [path]/admincp/v3arcade_admin.php on line 1354

SBKTR
01-06-2011, 01:46 PM
Thank you that worked.
I wish someone would have replied to my ticket with the above.

Yeah they don't answer over there, I can't even register, nothing works and no one will answer email or anything!

SBKTR
01-09-2011, 05:48 PM
Ok, I guess they have stopped helping with this mod, I can't get answers anywhere.

First, I have read thru every page here at least 5 times. I have tried everything here at least 5 times. I have reloaded the entire thing, I have checked all the templates. I have checked Gemma's thread/posts/help posts more than a dozen times and gone thru it.

Here is my problem.

I have VB 4.1.0

The games that came with the installation work fine, save fine and save the high score... no problems.

I had a time trying to download games and went thru the white pages, games not downloading and all that.. got that fixed.

Now I can download games (I do not use Mochi and don't plan on using Mochi, so please no tips for that) from http://www.ibpdownloads.com they now install fine and they play fine, they just do not show a score. When the games I downloaded are over, some says submit score and others do doing and sit there. The ones that have submit score, when you click it.. it takes a moment then as well just sits and does nothing, does not save score.

I do use cmps but the arcade is installed on my main site www.mysite.net//public_html/arcade My main site is set to go to www.mysite.net when you click the link.

So I don't understand why the original 5 games store high scores and the downloaded games do not.

HELP is appreciated and I do appreciate all the help so far, but it's FRUSTRATING when you can't get these mods to work right.

Thanks

KW802
01-09-2011, 07:41 PM
Yeah they don't answer over there, I can't even register, nothing works and no one will answer email or anything!
Are you getting an error trying to register or some other problem? We are using vB Stop Forum Spam for registrations but there are no other limitations that would block a new registration.

KW802
01-09-2011, 07:43 PM
I have this error.. can anyone help? (this is after I download games into folder, then click import) it says the game is there, but there is just a white screen, no click to play.

Warning: fopen([path]/admincp/games/../..//public_html/games/slingogolfibpg.swf) [function.fopen]: failed to open stream: No such file or directory in [path]/admincp/v3arcade_admin.php on line 1354
What type of game (IPB, v3A, Mochi)? Any errors during the install screens?

KW802
01-09-2011, 07:45 PM
... I do use cmps but the arcade is installed on my main site ... So I don't understand why the original 5 games store high scores and the downloaded games do not.Did you check the steps here (mentioned in Gemma's thread)?

http://www.v3arcade.com/forums/showthread.php?t=3407

SBKTR
01-09-2011, 10:22 PM
I'm sorry KW not to be ugly.. did you not read my thread?

In the thread above I said the following:

Ok, I guess they have stopped helping with this mod, I can't get answers anywhere.

First, I have read thru every page here at least 5 times. I have tried everything here at least 5 times. I have reloaded the entire thing, I have checked all the templates. I have checked Gemma's thread/posts/help posts more than a dozen times and gone thru it.

Here is my problem.

I have VB 4.1.0

The games that came with the installation work fine, save fine and save the high score... no problems.

I had a time trying to download games and went thru the white pages, games not downloading and all that.. got that fixed.

Now I can download games (I do not use Mochi and don't plan on using Mochi, so please no tips for that) from http://www.ibpdownloads.com they now install fine and they play fine, they just do not show a score. When the games I downloaded are over, some says submit score and others do doing and sit there. The ones that have submit score, when you click it.. it takes a moment then as well just sits and does nothing, does not save score.

I do use cmps but the arcade is installed on my main site www.mysite.net//public_html/arcade My main site is set to go to www.mysite.net when you click the link.

So I don't understand why the original 5 games store high scores and the downloaded games do not.

HELP is appreciated and I do appreciate all the help so far, but it's FRUSTRATING when you can't get these mods to work right.

Thanks

As far as the other.. I have addressed that as well. I've sent emails, done everything. My emails go unanswered.

SBKTR
01-09-2011, 10:30 PM
From V3arcade, I signed up, same name as here, I got the activation email it didn't work, I tried all three things.. the two clickable links, and the activation code.

I had it resent 2 or 3 more times and tried again.. same thing.

I sent at least 2 or 3 emails to the email at "contact us" saying the problem I was having and the error I was getting.

NOTHING.

I just did it again.. had my pass sent to my email.

Nothing comes.. and I wait again.

KW802
01-10-2011, 12:53 AM
SBKTR, yes, I did read your entire post and directed you to the likely answer already. If you are using vB4 Suite and you are using vBa CMPS in the same folder as vB (eg: in your root /public_html folder) then your IPB game scores will not be saved unless you do the edit I linked to.

For the email, I am not seeing any "SBKTR" accounts over at v3Arcade.com and there is nothing recent in my inbox for the Contact Us form (double checked my spam folder in case). I am finding a "SKTR" account (no "B" in the name) though. If that is your account, make sure you check your Yahoo spam folder to make sure the email is not ending up there. Alternatively, if that is your account, send me a PM here with the email address you used for that account and I'll manually verify the account over there.

posh007
01-10-2011, 09:47 AM
what is this?

Plugin & Products System
Importing Product, Please Wait...

[:]

Warning: require_once([path]/includes/v3arcade_class_db_analyse.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/adminfunctions_plugin.php(931) : eval()'d code on line 878

Fatal error: require_once() [function.require]: Failed opening required '/home/content/43/6719543/html/yellowribbonsisters/includes/v3arcade_class_db_analyse.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/43/6719543/html/yellowribbonsisters/includes/adminfunctions_plugin.php(931) : eval()'d code on line 878

SBKTR
01-10-2011, 11:29 AM
SBKTR, yes, I did read your entire post and directed you to the likely answer already. If you are using vB4 Suite and you are using vBa CMPS in the same folder as vB (eg: in your root /public_html folder) then your IPB game scores will not be saved unless you do the edit I linked to.

For the email, I am not seeing any "SBKTR" accounts over at v3Arcade.com and there is nothing recent in my inbox for the Contact Us form (double checked my spam folder in case). I am finding a "SKTR" account (no "B" in the name) though. If that is your account, make sure you check your Yahoo spam folder to make sure the email is not ending up there. Alternatively, if that is your account, send me a PM here with the email address you used for that account and I'll manually verify the account over there.


Those edits don't worked as I have said. I have tried them and retried them. When I checked that folder for the edit it was already there ABOVE where you said to put it.. not below. So I added it below and tried.. no saved scores. I went back in and took it off the top and only left it on the bottom.. no saved scores. So I went back in again and left it the way it originally was.

The only scores that save are with the 5 games that came WITH the installation.

In Gemma's thread the only thing I couldn't find, was the short name thing she was referring to... but I also didn't manually add the games, I uploaded them. I couldn't find any ini.php file to check for her solution, I don't know what file folder that is in. It would be really helpful if when someone says check your so and so file.. that you tell us what folder/s that file is in? Otherwise I have no clue where to look.

Digital Jedi
01-12-2011, 05:52 AM
Those edits don't worked as I have said. I have tried them and retried them. When I checked that folder for the edit it was already there ABOVE where you said to put it.. not below. So I added it below and tried.. no saved scores. I went back in and took it off the top and only left it on the bottom.. no saved scores. So I went back in again and left it the way it originally was.

The only scores that save are with the 5 games that came WITH the installation.

In Gemma's thread the only thing I couldn't find, was the short name thing she was referring to... but I also didn't manually add the games, I uploaded them. I couldn't find any ini.php file to check for her solution, I don't know what file folder that is in. It would be really helpful if when someone says check your so and so file.. that you tell us what folder/s that file is in? Otherwise I have no clue where to look.
php.ini is a configuration file on your server. Usually in the uppermost directory. However, I don't actually see her mentioning php.ini anywhere in that thread.

SBKTR
01-12-2011, 01:55 PM
She mentions it in one of her help files.. trust me, I went thru these posts with a fine tooth comb.... still not saving score on loaded games

Digital Jedi
01-12-2011, 06:27 PM
She mentions it in one of her help files.. trust me, I went thru these posts with a fine tooth comb.... still not saving score on loaded games
Which help file, exactly? Maybe I can see what you missed.

Datenpapst
01-13-2011, 07:20 AM
hmm somehow my categories are listed underneath each other instead of next to each other... any idea why?

http://www.c-arena.com/arcade.php

Gemma
01-13-2011, 10:14 AM
hmm somehow my categories are listed underneath each other instead of next to each other... any idea why?

http://www.c-arena.com/arcade.php

You've lost me. I've checked your arcade using Firefox, IE8 and 9, Opera and Google Chrome and cannot see any problem with your categories :confused:

Gemma
01-13-2011, 10:20 AM
php.ini is a configuration file on your server. Usually in the uppermost directory. However, I don't actually see her mentioning php.ini anywhere in that thread.

She mentions it in one of her help files.. trust me, I went thru these posts with a fine tooth comb.... still not saving score on loaded games

Which help file, exactly? Maybe I can see what you missed.

I think I've only ever mentioned php.ini here - https://vborg.vbsupport.ru/showpost.php?p=2119247&postcount=56

SBKTR for the shortname problem you need to access your database and check the v3arcade_games table. If the shortname field for any installed IPB games is blank the score won't save.

Datenpapst
01-13-2011, 10:28 AM
You've lost me. I've checked your arcade using Firefox, IE8 and 9, Opera and Google Chrome and cannot see any problem with your categories :confused:

found the problem - fixed but thx :)

SBKTR
01-15-2011, 11:17 AM
I think I've only ever mentioned php.ini here - https://vborg.vbsupport.ru/showpost.php?p=2119247&postcount=56

SBKTR for the shortname problem you need to access your database and check the v3arcade_games table. If the shortname field for any installed IPB games is blank the score won't save.

Gemma, I guess I am not understanding this part at all.

Are you talking check my files in my cpanel?
I don't know where to locate the shortname field.. where is THAT at? Is it called that or something else?

SBKTR
01-15-2011, 03:06 PM
Thanks to everyone, I finally got this working. It took FOREVER too..

What I had to do.

Fix the index.php file AND set my forum path correctly.

My scores are now saving, least the test one I did, saved.

Thanks again.

Digital Jedi
01-15-2011, 03:07 PM
what is this?

Plugin & Products System
Importing Product, Please Wait...

[:]


Warning: require_once([path]/includes/v3arcade_class_db_analyse.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/adminfunctions_plugin.php(931) : eval()'d code on line 878

Fatal error: require_once() [function.require]: Failed opening required '/home/content/43/6719543/html/yellowribbonsisters/includes/v3arcade_class_db_analyse.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/43/6719543/html/yellowribbonsisters/includes/adminfunctions_plugin.php(931) : eval()'d code on line 878
You appear to have not uploaded all your files.


Gemma, I guess I am not understanding this part at all.

Are you talking check my files in my cpanel?
I don't know where to locate the shortname field.. where is THAT at? Is it called that or something else?
It's explained in the first line of Gemma's paragraph. You check the v3arcade_games table in your database for that fieldname. I take it you didn't do your own vB installation? The database is what you had to create in MySQL before you could install vBulletin. If you have cPanel, then you probably have phpMyAdmin, too, which will let you view the tables.

8thos
01-16-2011, 09:49 PM
Thanks to everyone, I finally got this working. It took FOREVER too..

What I had to do.

Fix the index.php file AND set my forum path correctly.

My scores are now saving, least the test one I did, saved.

Thanks again.
Can you tell me the steps you took please? I've asked for help before and my scores still don't save.

KW802
01-17-2011, 12:05 AM
Can you tell me the steps you took please? I've asked for help before and my scores still don't save.It's possible I missed your open issue. :o

Please either post a link to your site or a link back to the post with the details on your problem (eg: what version of vB are you running [vB4 Suite or vB4 Forum], are you using vBa CMPS, any other 3rd party software, what types of games aren't saving, etc.).

Thanks

8thos
01-17-2011, 09:17 PM
It's possible I missed your open issue. :o

Please either post a link to your site or a link back to the post with the details on your problem (eg: what version of vB are you running [vB4 Suite or vB4 Forum], are you using vBa CMPS, any other 3rd party software, what types of games aren't saving, etc.).

ThanksI am using VB4 4.1 PL2

Using CMS. http://the8thlegion.com

Some games do not save. This happened before when I had ibproarcade. I tried several different fixes before and they didn't work which is why I switched over to v3arcade and I still get the same issue.

KW802
01-17-2011, 09:25 PM
I am using VB4 4.1 PL2

Using CMS. http://the8thlegion.com

Some games do not save. This happened before when I had ibproarcade. I tried several different fixes before and they didn't work which is why I switched over to v3arcade and I still get the same issue.
Have you done these changes yet to your /index.php file?

http://www.v3arcade.com/forums/showthread.php?t=3215

Gemma
01-17-2011, 11:10 PM
You say it is only happening with some games and happened with ibProArcade too before you switched?

If you've done the relevent file edits and scores still aren't saving I'd check your server files to make sure you still have a gamedata folder for any game that isn't saving scores.

I won't go into the whole game converting/score saving process but if any IPB v32 game doesn't have a gamedata folder with the required files it won't be able to save the score and write it to your database.

Alex@Mk3OC
01-18-2011, 01:37 AM
I asked this on v3arcade a few days ago and got no response. I have imported my ibproarcade into v3, but when using the conversion script on the v3arcade website it errored when trying to copy the games, now in my arcade i see the games list, scores, tournaments, but when I try and play a game there is no game to play it's just a blank box, this is for all the games installed

Jeremy8
01-18-2011, 09:06 PM
Hi, does anyone know if this mod works wit 4.1.1?

Gemma
01-19-2011, 03:18 PM
Hi, does anyone know if this mod works wit 4.1.1?

I'm now runing 4.1.1 and haven't noticed any issues with the arcade :)

stwan
01-19-2011, 04:18 PM
Error in arcade.php?do=leaderboard after updating v3Arcade 2.0 (vb3) to v3Arcade 2.0.2 (vb4)

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203


Ver. vBulletin: 4.0.8 - 4.1.1.
Ver. PHP: 5.2.14

SBKTR
01-19-2011, 08:51 PM
What setting where must I be missing if.. all mods/admin can play the games AND it saves score..

But all the rest that have access to the arcade can play the games, but it does NOT save scores. I've checked everything I know to check.

zelnik
01-19-2011, 09:02 PM
Error in arcade.php?do=leaderboard after updating v3Arcade 2.0 (vb3) to v3Arcade 2.0.2 (vb4)

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203

Warning: Invalid argument supplied for foreach() in [path]/includes/v3arcade_functions.php on line 203


Ver. vBulletin: 4.0.8 - 4.1.1.
Ver. PHP: 5.2.14

I get this too!

DJDynasty239
01-19-2011, 09:56 PM
I am running this on 4.1.1 with no issues either, and I'm a noob and installed it myself lol

Gemma
01-19-2011, 10:07 PM
@zelnik and stwan

Any chance you can disable all plugins except the arcade and see if the error still persists?