Hi, folks! Here is a brand new update for MyArcadeBlog WordPress Plugin. What happened since last update?
MyArcadeBlog has been downloaded over 750 times and got only three votes. Come on people, vote vote vote!
Special thanks this time goes to Dr. Tux for donating and bug reporting
If you don’t know what MyArcadeBlog is, see this post.
Because the Mochiads has changed the page structure and now all invalid links will be resisted so that we don’t get an error message if the download fail. For that reason, I have implemented new detection to check if a download was successful or not.
Now, at MyArcadeBlog settings you will find a new option “Max. Width”. There you can define the maximum allowed width for the games. Games will be resized to the maximal width if they are wider. With this option, your theme will not be “damaged” by to wide games. This is an optional setting. Set it only if you want to resize games.
If a game has been resized, you can detect this very easy with a new function: “myarcade_check_width”. If a game has been resized this function will return TRUE, otherwise FALSE. This nice feature can be used to create gadgets like this:
For this example, I used Thickbox.
The function “get_game” has a new parameter: get_game($postid, $fullsize).
$fullsize is FALSE on default. That meens, if you have set a max. width all games will be resized. If you set $fullsite to TRUE a game will be shown in a full size mode.
- Full size example: get_game($postid, TRUE);
- Resized example: get_game($postid);
Here is a litle example with Thickbox:
This is a excerpt of single.php
ID); ?>ID)) : ?>
What’s coming next?
- Bug fixing, if there are some bugs 😉
- Game import function for:
- AV Arcade
- Arcadem Pro
- And other
If you have any legal game packs, please send me that I can test import functions.