A few minutes ago a new MyArcadePlugin version has been released. In this release we removed Playtomic support because Playtomic closed down their game distribution API. We are sad about this step because Playtomic provided us with great games for a long time!
Here is the complete Changelog for the current MyArcadePlugin version:
- New: Filter to change game author (myarcade_filter_post_author)
- New: Filter to change swf embed parameters (myarcade_embed_parameters)
- Fix: Microsoft Translator error handling
- Fix: “No Game ID” error on some special servers
- Playtomic support removed because they closed their distribution API
How to use new filters?
The filter ‘myarcade_filter_post_author’ allows you to manipulate the user while game publishing process. This example function will publish all games as user with the id 3:
[code]<?php
function my_game_author_filter($user_id, $game = false) {
return 3;
}
add_filter( ‘myarcade_filter_post_author’, ‘my_game_author_filter’, 10, 2 );
?>[/code]
The filter ‘myarcade_embed_parameters’ allows you to manipulate SWF embed code parameters such wmode, quality or you can add your own parameters with ease. Here is an example function which will block all external links in a flash game:
[code]
<?php
function my_embed_parameters( $parameters, $post_id = false ) {
return ‘wmode=”direct” menu=”false” allowNetworking=”internal”‘;
}
add_filter( ‘myarcade_embed_parameters’ , ‘my_embed_parameters’, 10, 2);[/code]
How to update MyArcadePlugin?
MyArcadePlugin has built in automated updater. On your WordPress dashboard you should see an update notification within the next 12 hours. If you don’t want to want to wait for the update notification you can download MyArcadePlugin from “My Account” and update it manually.
Great! But I don’t know in what files we should place the filter codes. Functions.php on theme?
Hi,
the easiest way is to create a simple plugin and to place the code there. Just create a php file in your wp-content/plugins folder and add the plugin header:
Then the filter will work independently from any theme.
Awesome! Thank you!
after the update I got this message
MyArcadePlugin was just updated / installed – Please visit the Plugin Options Page and setup the plugin!
and how do you mean this with the php file. So i should insert php code and how is it are called
is this ok?
< ?php
/*
Plugin Name: Name Of The Plugin
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: A brief description of the Plugin.
Version: The Plugin's Version Number, e.g.: 1.0
Author: Name Of The Plugin Author
Author URI: http://URI_Of_The_Plugin_Author
*/ - See more at: http://myarcadeplugin.com/myarcadeplugin-v5-9-4-released/#sthash.UD15fyUz.OoptfoHD.dpuf
Hi,
You should navigate to MyArcade -> Settings and save settings.
I’ve posted an example plugin on the support forum.
Awesome!
Hi guys, I don’t think is the best place to tell my problem, but hope here someone will answer me very fast. My hosting provider is telling me that the plugin (myarcade) + the fungames theme is eating all my server resources, and I get a 500 server eror. What do you think about this?
try not to host all games in your server.
Let the embed code do the job.