Triqui MochiAds Arcade plugin for WordPress official page

Welcome to Triqui MochiAds Arcade plugin for WordPress official page

This is the one and only official page for this plugin, so check it frequently!

It works with Triqui MochiAds Arcade theme for WordPress and allows you to create an arcade site based on MochiAds games.

CURRENT VERSION IS 1.11 RELEASED ON AUGUST 27, 2009

I suppose you know how to install and configure a WP plugin. So I will only focus on this plugins features.

MOTIVATION

This plugin is intended to turn your WP blog into a MochiAds arcade site that will allow you to earn money both with Adsense (or other kinds of web advertising) and MochiAds publisher program.

Unfortunately, there are a lot of portals and a lot of crappy games (among them, some of mine!!) so you won’t have a chance to attract a decent number of visitors if you just publish games.

That’s why in this plugin you will have to add games manually. You have to create your niche arcade site if you want some chanches. No matter if you create a racing games portal or a portal with all game names starting with “T”… you must create your niche.

Read Case history: creating a successful niche Flash arcade site for some hints.

PAGES

The plugin has four pages, but once installed and configured it, you will need only two of them.

I designed the plugin to make game management as quick and simple as I can.

MochiAds page

This is just a welcome screen, quite useless but it contains a “Donate” button, so check it frequently :)

Setup page

If you are installing the plugin for the first time, you just updated the plugin, you don’t remember if the plugin is up to date or simply you don’t know what to do and it’s raining, click on “Setup”. This page will create all necessary tables, directories and categories in order to make the plugin work.

If your configuration is up to date, this page simply does nothing.

1.1 upgrade: this page also checks for duplicate games, and purges the mochi table to keep it as light as possibile. Why should you have duplicate games? Because the unique game id code changed from uuid to game_tag during MochiAds’s feed development.

Feed Games page

MochiAds updates the list of games in its distribution feed once a day. So you should call it once a day.

Games you already have in your database are marked in gray, while new games are marked in green.

In the upper form you can see “Looking for the first 100 games from offset 0

100 represents the number of games you are retrieving from the feed. The feed at the time of writing contains more than 8,000 games, but with numbers higher than 1000 you can stress your server. Moreover, if you run this page daily, you should never enter a number higher than 200

0 represents the offset, and can be used to retrieve old games from the feed without stressing the server.

Example: you want to retrieve the last 1,000 games… it’s preferred to run the page twice with 500-0 and 500-500 rather than asking for 1000-0.

Playing with these two numbers will allow you to grab the entire feed in a matter of minutes, step by step, offset by offset, with no stress for the server

1.1 upgrade: the plugin now supports the new feed options to enable new micro-transactions revenue share for Mochi publishers

Manage Games page

This is the page that will manage your blog

** IMPORTANT ** Never add or delete a post from the “Posts” section in your WP Dashboard or you won’t be able to manage the game linked to that post from the Manage Games page.

Each game has three status (statuses?), and all games can be previewed directly from this page clicking on “Play”.

new: the game is (guess what?) new, this means you haven’t decided yet whether to publish it or not. With this status, the game does not appear in the blog. New games are listed in gray.

You have two buttons: Publish and Don’t publish. Clicking on the first one will turn the game to published status while clicking on the second one will turn the game to unpublished status.

published: when a game is published, it means you published it on the blog. By default, when you publish a game, you leech the swf from Mochi servers so you won’t earn money as a publisher (publisher status OFF), but you can turn on this feature, and the swf game file will be copied in your directory (publisher status ON) allowing you to earn money with “MochiAds publisher program.

Then, if you turn off the feature, you will start again leeching the game from Mochi servers and the swf game file will be deleted from your game directory

With the “Delete” button you will turn the game to unpublished status and eventually delete the swf game file from your directory, if you had publisher status ON

Notice: always check the game size before turning ON the publisher status: some hosting services have limited space and limited bandwidth, and if you copy a lot of games you may run out of space and/or bandwidth. Check your hosting company for more information.

Also notice: If you are using Triqui MochiAds Arcade theme you will need to edit one line to make it work with publisher option, or you’ll continue leeching games even if their publish status are ON.

I am preparing a new version of the theme with some interesting improvements including this one, meanwhile open index.php page into your Triqui theme folder and change line 17 (the line starting with <embed src = "... just in case you edited the theme) with

<embed src="<?php if(file_exists(WP_PLUGIN_DIR."/mochi/mochigames/".$post->ID.".swf")){echo WP_PLUGIN_URL."/mochi/mochigames/".$post->ID.".swf";}else{echo get_post_meta($post->ID, "swf_url", true);} ?>" menu="false" quality="high" width="<?php echo get_post_meta($post->ID, "width", true); ?>" height="<?php echo get_post_meta($post->ID, "height", true); ?>" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

Notice too (last one): The “Delete” button only works on games published with the “Publish” button. You can’t delete games inserted with the old (and discontinued) version of this plugin – the one that published games automatically – If you want to delete one of such games, you must delete it from the “Post” section in the WP Dashboard.

unpublished: a game gets the unpublished status when you decide you won’t publish a new game, or when you delete a published game. An unpublished games does not appear in the blog and is listed in red. You can publish an unpublished game clicking on the “Publish” button.

In the upper form you can choose how many games you want to manage in the page, the offset (works in a similar way as the feed offset), what kind of games (new, published or unpublished ones) and a string they have to contain in their name.

1.1 upgrade: games with Mochi Coins enabled are marked with a $$ before their name (check Planet Basher 2 to have an example).
In the upper form now you can extend the search to game tags

I will add more options soon, I am open to any suggestion.

DOWNLOAD

Here we are… time to download the plugin. It’s free to use, modify, hack and so on. However, if you are making money out of it, my PayPal address is triqui@libero.it, just in case…

Also remember I won’t give support to any request if you change some code in the plugin

Download the plugin and enjoy.

I would like to hear your opinions.

111 Responses to “Triqui MochiAds Arcade plugin for WordPress official page”

  1. leandropug on June 19th, 2009 3:02 pm

    The most usefull and well mande code plugin ever seen! Love the way u comment! LoL

    As soon i put my new arcade wordpress i will sende a coment.

    Tks

  2. Andrew on June 19th, 2009 6:21 pm

    What should we put for the autopost URL on mochi? for example http://www.mysite.com/blog/wp-content/plugins/mochi or what! PLEASE HELP!!!

  3. Jay on June 19th, 2009 6:51 pm

    How do I add specific games to my arcade site? I’m interested in adding the best games from yesterday through to years ago.

  4. Tam Bir Blog on June 19th, 2009 10:42 pm

    when i clicked go i cant see any feed post/ game list…. :(((

  5. Vadersapien on June 20th, 2009 4:45 am

    not working for me :(. i get the same ‘No new games at the moment…’ error as in the previous versions…even on a fresh blog. is this something to do with my provider?

  6. Bob on June 20th, 2009 5:39 pm

    The plugin works great, thanks, but it desperately needs the ability to do mass actions. Having to add games one by one makes me consider reverting back to the old version. I would love it if you added that in next update.

  7. Rob on June 21st, 2009 7:06 pm

    Great plugin. I hoped it would be just what I was looking for but sadly not. I would need something with a lot more features really. I like to have a lot more control over what I’m publishing rather than just the games such as what category to put it into, descriptions, tags etc.
    I’m sure many people will find it very useful though so nice work. I guess I’ll have to find a simple way to add games myself.

  8. Tam Bir Blog on June 21st, 2009 9:26 pm

    plugin wants php 5.2

  9. Wayne on June 22nd, 2009 12:34 pm

    Hey.

    I got the plugin and it seems to be working fine. However the publish does not appear to be working it is not downloading the files on to my server.

    Any ideas?

  10. George on June 22nd, 2009 6:28 pm

    Very nice plugin. Maybe for the next update there can be an option to schedule game posting.

  11. Alex on June 22nd, 2009 9:23 pm

    I went successfully 3 steps of installation:
    1)Welcome screen,
    2)Setup page (Mochi Directory, Categories, Mysql table are successfully created)
    3) Feed games – I got list of 100 games

    But nothing happens on last page – Manage Games page.
    Nothing :(
    Blank page with message “No games with these search options”

    Please, help me

  12. Justin on June 23rd, 2009 6:23 am

    Please help! When I say feed games it says No new games at the moment…

  13. Vadersapien on June 23rd, 2009 9:04 am

    @Tam Bir Blog – I hav php 5.2.9 and its not working

  14. Wayne Shears on June 23rd, 2009 9:29 pm

    Cheers man. This is awsome. I have managed to get this to work now. I just deleted my previous sql table and done a fresh install of the tables.

    Now it works a treat. Any plans on adding to the plugin to add leaderboards using the bridge?

  15. Justin on June 23rd, 2009 9:58 pm

    ….please post instructions! or email me them :)

  16. Ivan on June 28th, 2009 3:37 pm

    Hi,

    when I turn on the publisher feature, i am getting an error:
    Warning: copy() [function.copy]: Unable to access http://games.mochiads.com/c/g/marble-roller/roller4.swf in /mnt/data/accounts/v/van0/data/www/hrejonlinehry/wp-content/plugins/mochi/mochi.php on line 189

    What should I do to make it work? Thanks in advance.

  17. Dr T on July 4th, 2009 10:12 pm

    Hmmm… this is SURPRISINGLY similar to MyArcadeBlog plugin…bit too much similarities in fact… I cannot help wondering why?
    Dr T

  18. ket on July 7th, 2009 1:46 pm

    where do u put the publisher key??

  19. Emanuele Feronato on July 7th, 2009 2:56 pm

    @ket: I don’t – I am getting the feed anyway

    @Dr T: never heard about it – but if you retrieve feeds, copy files and publish games, of course they are similar – Maybe you got inspired by tutorials I published last year :)

  20. alex on July 7th, 2009 10:14 pm

    Hi, i also get the ‘No new games at the moment…”
    can anyone help me? pls

  21. SantaCruze on July 8th, 2009 8:41 pm

    Dear Emanuele Feronato,

    Thnx for the Plugin. I just got everything working …BUT…MochiAds isnt showing anything of Impressions or that the Ads r getting counted. I made sure that the Flash Games r on my Website and also setup em for Publisher Stuff etc. but in the Dashboard of MochiAds arent displayed Page Impressions for em. Any ideas ?

  22. serhan on July 9th, 2009 1:11 am

    Emanuele thanks for publishing the plug-in, recently i’m trying to built new portal your files
    i add my publisher id on line 559 (in mochi.php), it works great
    but i couldn’t understand why custom fields still shows “swf_url” section from mochi’s swf files(i turn swicth on)??

  23. serhan on July 9th, 2009 12:36 pm

    I checked gamepage source, they are shown from my own hosting and mochi counts impressions..
    @SantaCruze
    Open your mochi.php find 559th line and change codes from
    http://www.mochiads.com/feeds/games?format=json&limit=$_POSTlimit&offset=$_POSToffset
    to
    http://www.mochiads.com/feeds/games/PUBLISHERID/all/all?format=json&limit=$_POSTlimit&offset=$_POSToffset

  24. SantaCruze on July 9th, 2009 4:01 pm

    Okay i changed it. How long does it take till i can see the Page Impressions in MochiAds ?

  25. zarxan on July 9th, 2009 8:16 pm

    how i earn money Mochiads publisher program.

  26. SantaCruze on July 10th, 2009 10:50 am

    Heya again,

    Thnx for the Help Serhan, it worked. But now ive a new Prob, i tried to insert AdSense into the Template but some of the Code like the pub-id and the channel is getting greyed out once i insert it into the template. Any1 got some suggestions how to fix that ?

  27. SJG on July 10th, 2009 4:51 pm

    Emanuele,

    Integration with the mochi bridge and the leaderboard seems like it would be something that is defiantly needed or desired.

    From a design standpoint I have no idea how to integrate it onto the game page. Unless the template was widened. None the less I would be more than happy to pay for this to be included. Feel free to reach me at my email address.

  28. Art on July 10th, 2009 10:18 pm

    Nice plugin, for the next update could you add a category filter? So its a bit easier picking out the shooters or adventure games. But great plug-in can’t wait to set up my site.

  29. Emanuele Feronato on July 11th, 2009 12:48 am

    @SJG: thanks for the donation and the ideas: I am going to add them to the plugin/theme

  30. SJG on July 11th, 2009 7:53 pm

    @Emanuele,

    Bug Report: The RSS Feeds seem to take a date of 1999 for some reason when using the standard publishing method inside the Mochi Control Panel.

    I am not sure what it uses to trap that but it is possibly something to do with the way that it is posting the article.

    I did find that while the twitter plug ins would not work without modification to the hook that calls the post that a good way around it was to use the ping.FM plug in for automatic updates when games are posted!!!!! WOOT!

    Another suggestion, search by tags as well as category or names. What would be awesome is if we could search featured and limit to a category.. even the mochi site cant do that, but the JSON should let it :)

  31. SJG on July 11th, 2009 8:08 pm

    Hmmm another date issue, the date that gets used for “Latest Posts Widget” pulls the date that seems to be the date the game was approved on mochi.

  32. SJG on July 11th, 2009 8:35 pm

    Ahhh Rss goes off of Post Date GMT
    Ok here is the fix for the post features to post with the correct date and the gmt offset.

    function mochi_add_games($id){
    global $wpdb;
    $id = intval($id);
    $inserted = false;
    $row = $wpdb->get_row(”select * from “.$wpdb->prefix.”mochi where status != ‘published’ and id = $id”);
    if($row){
    $inserted = true;
    $cat_id = array();
    foreach($row as $varname => $varvalue) {
    $$varname = $varvalue;
    }
    $categs = explode(”,”,$categories);
    for($x=0;$xprefix.”mochi set status = ‘published’, blog_id=’$post_id’ where id = $id”;
    $wpdb->query($query);
    }
    }

  33. SJG on July 11th, 2009 8:36 pm

    [code]
    function mochi_add_games($id){
    global $wpdb;
    $id = intval($id);
    $inserted = false;
    $row = $wpdb->get_row("select * from ".$wpdb->prefix."mochi where status != 'published' and id = $id");
    if($row){
    $inserted = true;
    $cat_id = array();
    foreach($row as $varname => $varvalue) {
    $$varname = $varvalue;
    }
    $categs = explode(",",$categories);
    for($x=0;$xprefix."mochi set status = 'published', blog_id='$post_id' where id = $id";
    $wpdb->query($query);
    }
    }
    [/code]

  34. SJG on July 11th, 2009 8:37 pm

    Grrrr… wont post it correctly.

    In the add game section add and change the following lines

    $post['post_date'] = current_time(’mysql’, 0);
    $post['post_date_gmt']= current_time(’mysql’, 1);

  35. mel on July 13th, 2009 4:43 pm

    SJG, can you post the new mochi_add_games() function please?

    I don’t get what’s supposed to be changed or replaced in the code you posted.

    and thanks for your help :)

  36. SJG on July 14th, 2009 5:51 pm

    @Mel

    I cant post long code on the comment box. It screws up the formatting.

    But what you do is where it builds the Querry Array to enter it into mySQL you change the post_date value to current_time(’mysql’,0); which means the current time and the GMT time is with the GMT offset. Search for $post['post_date'] and you should see what I am talking about. Prior to this change it ads the date the game was approved on mochi…

  37. SJG on July 14th, 2009 6:13 pm

    To randomize the front page…

    in home.php before “The Loop”
    Add

    ABOVE

  38. SJG on July 14th, 2009 6:14 pm

    haha ok now I cant post php tags…

    this link says what to do…
    http://codex.wordpress.org/Template_Tags/query_posts

  39. Ricardo on July 14th, 2009 7:52 pm

    Keep getting:
    “Fatal error: Out of memory (allocated 25952256) (tried to allocate 26285537 bytes) in /home/public_html/domain.com/games/wp-content/plugins/mochi/mochi.php on line 283″

    This happens whenever I try to “feed games” I fed the first 100 and it worked.. now it no longer works.

    Also does anyone know how to add games manually?

  40. Ricardo on July 15th, 2009 1:22 am

    In a reply to my own thread above. It seemed as if I had to delete the plugin and all of it’s files then re-install the plugin and it is now working!

    Does anyone know hot to add games manually so you get credit/money from the publisher standpoint? (Download the zip from mochi ads, then upload, then what?)
    Thanks,
    Ricardo

  41. cotralis on July 15th, 2009 4:06 pm

    I still have an message
    No new games at the moment

    I have an userid on mochiads
    and i am using version 1

    when i use the feed link manual in internet explorer i can download the file perfectly

    Do you have an solution

  42. cotralis on July 15th, 2009 6:11 pm

    i keep getting this message

    No new games at the moment…

    when i manually put the url in internet explorer i can download the json file

    what can i do to resolve this problem?

  43. hhan on July 19th, 2009 4:30 am

    hello… im using your theme and will using your plugin…
    but where the mochi game will downloaded?in what folder?do we need to reate the folder manualy or not?thanks

  44. dean on July 28th, 2009 7:27 pm

    Hi, thanks for the plugin, I’ve set it up ok but when I search for games that I know mochi adds have they don’t show up. Any ideas why or how I can add them?

  45. hhan on July 30th, 2009 6:54 am

    hey guys… how i can limited the game list in the footer.i just want to show 50 games list on footer.how i can do that??please

  46. Josh on July 31st, 2009 6:55 am

    hhan, you’d find better help at the theme topic. This is the plug-in topic. In any case, look at the theme and edit it as needed. :P

  47. firman on August 1st, 2009 3:06 pm

    great,.. I have plan to create game site,… it might good choice… thank you for sharing

  48. Trina on August 13th, 2009 7:15 am

    Hi! I would like to add a page that runs Mochi Games on it and add it to our overall site. I don’t want a full games portal, just a page that features mochi games. I’ve read the article and the comments but I’m unsure if this is what I’m looking for.

    Thank you for the help!
    Trina

  49. SJG on August 19th, 2009 2:00 am

    Emanuel,

    Mochi has broken the feed.
    Here is what happened, they have added a new field to the feed called
    coins_revshare_enabled

    Since this is not in the database currently, the feed will error out, although it will not show you this unless you trace the SQL back.

    The fix is rather simple I think and that is to add the coins_revshare_enabled field right after the recomendation field. I will try to post the new sql insert that is generated but your comment system hates when I post code…

    insert into fgt_mochi (rating,author,key_mappings,height,recommendation, coins_revshare_enabled, uuid,width,thumbnail_large_url,tags,controls,swf_url,recommended,game_tag, zip_url,updated,description,author_link,swf_file_size, game_url,slug,categories,instructions, name,created,control_scheme,popularity, feed_approval_created,coins_enabled,thumbnail_url, leaderboard_enabled,resolution,status)values(’Everyone’,'funkypear’,”,’500′,’4′,”,’317d1d39-9b73-3a72-80a0-0c20a5d1aa07′,’700′,’http://thumbs.mochiads.com/c/g/gravitee-2_v2/_thumb_200×200.jpg’,'Gravitee,Golf,Space,Planets,Worm Holes,Ball,Mouse Only,Stars’,'fire=left_mouse;jump=na;movement=arrow’,'http://games.mochiads.com/c/g/gravitee-2_v2/gravitee210.swf?affiliate_id=01f130501bb58ab5′,’1′,’2221db602d0eec6b’,'http://cdn.mochiads.com/c/g/gravitee-2_v2.zip’,'2009-08-13T21:05:29-08:00′,’Gravitee is back! Play through 40 levels of Interstellar Golf. Gravitee 2 features 4 different game play types and 90 awards to win.’,'https://www.mochimedia.com/community/profile/funkypear’,'2578951′,’http://www.mochimedia.com/games/gravitee-2_v2′,’gravitee-2_v2′,’Sports’,”,’Gravitee 2′,’2009-08-05T13:14:43-08:00′,’{”fire”: “left_mouse”, “jump”: “na”, “movement”: “arrow”}’,”,’2009-08-13T21:05:29-08:00′,”,’http://thumbs.mochiads.com/c/g/gravitee-2_v2/_thumb_100×100.jpg’,”,’700×500′,’new’)

  50. SJG on August 19th, 2009 2:08 am

    coins_enabled

    needs to be added as well.

  51. Emanuele Feronato on August 19th, 2009 11:55 am

    Thanks for reporting it.

    Fixed and upgraded :)

  52. dean on August 19th, 2009 1:16 pm

    thanks for the new version, I have a couple of sites, early days but I reckon they’ll do ok – I’ll make a donation as soon as they’re making dollars rather then cents!

  53. SJG on August 19th, 2009 6:13 pm

    emanuele,

    I found there are about 10 fields that need to be updated. Thumbs/UrL 1-5, Alternative URL, Coins, And Video Url….

    Yikes… So I have mine updated now… Did you include my date fix in your 1.1?

  54. Emanuele Feronato on August 19th, 2009 6:36 pm

    At the moment I found and fixed the plugin for these ones:

    coins_enabled
    coins_revshare_enabled
    screen1_thumb
    screen1_url
    screen2_thumb
    screen2_url
    screen3_thumb
    screen3_url
    screen4_url
    thumbnail_large_url
    video_url
    alternate_url

  55. Albert on August 27th, 2009 9:06 am

    Not working again :(

  56. more game on August 27th, 2009 11:01 am

    sorry, how i upgrade from previous version?? sould i uninstall it first?or just replace the existing file?

  57. Emanuele Feronato on August 27th, 2009 11:13 am

    @ALBERT: Updated to 1.11, made it compatible with the new feed

    @MORE GAME: Just replace the files

  58. Albert on August 27th, 2009 11:28 am

    That was fast. You are the best. Gracie.

  59. Al on August 29th, 2009 7:30 am

    Where do I put in my publisher id?

  60. Ivan on August 31st, 2009 2:17 am

    umm,im a noob at this but i get the details of the game and everything but i dont get pictures there is no game….

    again ima noob so help me out alright.

    Thanks

  61. Fahad Khan on September 1st, 2009 2:06 pm

    I get the game feeds but when i manage the games it is empty no games. Also the SQL wp_mochi is empty no game is injected through the feeds to the sql it was working before i dont what is wrong plz help.

  62. Yanni on September 2nd, 2009 9:30 pm

    I get the same as Fahad {#61} above.
    feeding the games shows the new ones, but when I go to manage, the new games haven’t appeared.
    Haven’t installed the new upgrade yet.
    Would this be the reason?

    TIA

  63. MyBreakArcade on September 3rd, 2009 4:10 am

    waiting for your new theme. :)

  64. Brady on September 7th, 2009 12:22 am

    Hey I LOVE your flash game set up! Thank you so much for putting the time into to help others! I have used your site as a reference many many times!

    Here is the site I am using ur template on and will continue to improve it:
    http://gamegab.com/MoreGames

    Also, how much is a good amount to donate to you as I think it is only fair!

  65. antonio3407 on September 7th, 2009 11:49 am

    Emanuele Feronato, the plug that remains is to download the version 1.1 you can hang the version 1.11 thanks …

  66. Emanuele Feronato on September 7th, 2009 12:34 pm

    @antonio: the link points to 1.11, where are you downloading it from?

  67. antonio3407 on September 8th, 2009 6:35 pm

    The discharge of the above link but when I looked inside at the head of mochi.php plugin puts it:
    Plugin Name: MochiAds Arcade Plugin
    Plugin URI: http://www.emanueleferonato.com/triqui-mochiads-arcade-plugin-for-wordpress-official-page/
    Description: Turns your blog into a MochiAds Arcade portal.
    Author: Emanuele Feronato
    Version: 1.1
    Author URI: http://www.emanueleferonato.com/

  68. NetPotion on September 13th, 2009 5:35 am

    It would be cool if there were a way to supply embed codes below each game for people, so that they could put the games I host on their websites & I could get credit from Mochiads for it.

  69. felix on September 22nd, 2009 8:02 pm

    Emanuele,congratulations to thema and plugins, I installed to http://www.wordpressgames.net best games portal

  70. Viza on September 29th, 2009 11:24 am

    I installed the plugin last night, but it says “No new games at the moment…” both at the Feed games, and the Manage games page. I tried everything mentioned in the comments (deleted the wp_mochi table from the database, deactivated and activated the plugin, deleted, and reinstalled the plugin, edited the mochi.php to include my publisher id), but it is still not working.
    Is there anything else I should try to make it work?

  71. AJ on September 30th, 2009 7:40 am

    All I get when I try to install is:

    Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature

  72. LordMaX on October 4th, 2009 11:55 am

    Hello Emanuele! This plugin es incredible!!!

    I try to use another theme to use de the plugin and this is the result!!!!!

    http://gamesonline.wallpworld.com

    thanks!!!

  73. HybridMind on October 6th, 2009 4:04 pm

    Any word on when the next update of the plugin/theme might be out? I notice that the triqui site is supporting some form of mochi highscore integration and I would love to see a tutorial on that. Thanks again for your work on these two excellent products!

  74. LingoLux.com on October 25th, 2009 7:12 pm

    Emanuele
    I added
    add_post_meta($post_id, ’slug’, $slug);
    to the plugin so that it also stores the slug information so i can display the leaderboard bellow the games

    http://www.lingolux.com/2009/06/19/mazeroll/ as an example

  75. valcs on October 28th, 2009 8:36 pm

    I found your plugin and template after i have installed arcadem on my slovak site http://www.videohry.com . i post the new games on facebook and i have some english friends so i felt like doing an english version. so i have used your script and template and installed it on http://www.gamebot.org . now some slovaks are upset that their site is not so cool as the english one ;). thanx again for the great plug-in and template. i m not a coder and had to play with it a bit, but it rocks. I fish i could implement latest scores on my site, but maybe one day. i am not making any money from my sites yet, but i will donate.

  76. Harry on October 29th, 2009 12:53 am

    how do I add game to the sidebar as displayed in the screenshot.png?

    Also, DO I still need to amend as described above?

    ———
    <embed src="ID.”.swf”)){echo WP_PLUGIN_URL.”/mochi/mochigames/”.$post->ID.”.swf”;}else{echo get_post_meta($post->ID, “swf_url”, true);} ?>” menu=”false” quality=”high” width=”ID, “width”, true); ?>” height=”ID, “height”, true); ?>” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” />
    ——————
    As per the style.css,it has “Version: 1.0″.

  77. Harry on October 30th, 2009 6:02 pm

    does anybody know how to add a game or Featured Game in the sidebar?

  78. Worlds Best Ever on November 1st, 2009 11:45 am

    Well I’m curious by nature so I had to try this. I must say everything worked perfectly. Excellent work Emanuele.

    http://www.worldsbestever.com

    By reading these comments I say 70% of these problems are because of your host. If you plan on using this, then first of all get a good hosting account. Pay those 7$/month, you’ll get them back eventualy.

  79. Hello on November 3rd, 2009 4:58 pm

    How do i add thumbnail to the games? Please

  80. Harry on November 3rd, 2009 11:18 pm

    @LingoLux.com,
    How did you add High Scores on your website?
    Can you share this please?
    THanks

  81. Harry on November 3rd, 2009 11:26 pm

    @LingoLux.com,
    Did you add these custom fields individually?

    add_post_meta -> $post_id,
    add_post_meta -> ’slug’
    add_post_meta -> $slug

    Or In One line ?
    add_post_meta -> ($post_id, ’slug’, $slug);

    I tried putting them in one line but couldn’t see any output on the website?
    Can you help on this please?
    Thanks,

  82. lluent on November 12th, 2009 9:08 am

    Hi, if you get “No new games at the moment” you need to edit your php5.ini in your server and turns on “allow_url_fopen = on”

  83. Fatih Çamc? on November 13th, 2009 9:37 pm

    please help me! not working.

    http://www.fatihcamci.com/category/games

  84. furious on November 18th, 2009 5:57 pm

    is it possible to bulk enabled and bulk publish games? or do i have to do it 1 by 1?

    is it possible to have a desired amount of games automaticly published and show on page each day?

    is it possible to have some games show randomly on your frontpage?

    for example i want one table of game to be random games and 2nd table to be new games..

    thank you, great project!

  85. LingoLux.com on November 19th, 2009 6:42 am

    i added the code

    add_post_meta($post_id, ’slug’, $slug); to the plugin mochi.php

    then

    var options = {partnerID: “xxxxxxxxxxxx”, id: “leaderboard_bridge”,globalScores:”true”,gateway : “http://www.lingolux.com/wp-content/themes/triqui/postscores.php”,callback : function (params) {document.getElementById(’latest’).innerHTML=”Your latest score: “+params.score;}}; Mochi.addLeaderboardIntegration(options);

    in my theme…

    i also followed the instructions on creating a plug-in and added the high scores

    p.s. just finished my first game http://www.lingolux.com/2009/11/18/mr-crabbys-beach-ball-adventure/

  86. Quick on November 28th, 2009 2:58 am

    I think I liked your older plugin better as the new one doesn’t have any mass features, I’m talking about publishing all games at the very least an “all checkboxes”, and “publish all” per page. Then a same feature to “Turn On” publisher revenue same as above.

    I saw you wrote about niche game sites, but for the people who would like all the games clicking and waiting for the processes to update for 24,000 clicks is just silly.

    I was just gonna go into my db and set everything from unpublished as published until i noticed there was game id and the other with empty information.

    I do like the newer panel, but think about including the mass update features, I for one don’t have time to sit there and keep clicking away for weeks at a time, but yet I want all the games available.

    Thanks, keeps up the good work your doing and is appreciated by many.

  87. Jamie on December 3rd, 2009 11:28 pm

    I currently have a problem with publishing games. They all display but when i hit the publish button nothing happens. Any ideas?

  88. Videobukket on December 6th, 2009 6:28 pm

    I m getting this error – Invalid argument supplied for foreach() in /home/xxxxxx/public_html/wp-content/plugins/mochi/mochi.php on line 63

    Please help me solve this issue

  89. Albert on December 8th, 2009 4:38 pm

    I’m getting this warning when request feed: Warning: file_get_contents(http://www.mochiads.com/feeds/games?format=json&limit=10&offset=0) [function.file-get-contents]: failed to open stream: HTTP request failed! in …

  90. Conno on December 11th, 2009 12:55 am

    The theme and plugin works great, thanks!

    One thing though… in order to get your theme compatible with the “WP-PostRatings” plugin there is a small change that is necessary:

    Add “” before the tag in the footer.php file and add “” before the tag in the header.php file.

    Before I did the above the rating stars were there but they were unclickable :)

    Check out my site if you’d like: roflninja.com. The font I used in the logo can be found here: http://www.urbanfonts.com/fonts/Sketch_Rockwell.htm I also made a few small changes…

    Thanks Emanuele!

  91. Connor on December 11th, 2009 12:57 am

    oops the above comment removed the PHP.. I should’ve known :P I also spelled my name wrong -.- Well if you go here http://forums.lesterchan.net/index.php?topic=1778.0 and look at the third post by “GaMerZ” he basically says the same thing I did :)

  92. NetPotion on December 11th, 2009 5:25 am

    Is anyone else experiencing problems getting games from the feed again?

    I haven’t been able to get anything for several days now. It times out and throws an error.

  93. NetPotion on December 13th, 2009 9:57 am

    Nevermind. It appears to be a problem with my host – not a problem with the script.

  94. Albert on December 14th, 2009 1:26 pm

    I can get new games (last 100) now). But if I want games from the problematic datum (last 500 game) then I get the same error.

  95. Cristi on January 15th, 2010 4:17 pm

    Hi Emanuele,
    First of all,i would like to say that you made a good job and thanks for this wonderful plugin.
    Is there any modified plugin to add games manually like in a arcade script? You will make one?

    Thank you,
    Cristian

  96. gustavo herrera on January 20th, 2010 5:36 pm

    In setting up te theme an the plugin. In the mochi option, when I try to feeds games the dashboard display me this error:

    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /homepages/7/d265535014/htdocs/juegosClaro/wp-content/plugins/mochi/mochi.php on line 286

    Warning: file_get_contents(http://www.mochiads.com/feeds/games?format=json&limit=100&offset=0) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /homepages/7/d265535014/htdocs/juegosClaro/wp-content/plugins/mochi/mochi.php on line 286

    No new games at the moment…

    Someone have any idea to solve this problem? thanks a lot!

  97. torsak on January 22nd, 2010 7:43 am

    thanks for theme and plugin visit my game site http://game.freex2.com/ make with this theme and this plugin

  98. af3 on January 28th, 2010 5:29 pm

    Hi, would this plugin work on WPMU 2.9.1? Thanks

  99. Darf on February 3rd, 2010 7:46 pm

    af3 this is working fine for me in wordpress 2.9. http://www.headpaingames.info/

    Thanks for this theme and plugin

  100. bfg on February 7th, 2010 6:52 pm

    Hi Emanuele,

    its me again, reporting the bug in the plugin I found earlier today.

    In line 331 of the mochi.php your escape the values of the mochi feed manually like this:
    $values.= “‘”.str_replace(”‘”,”\\’”,$$varname).”‘,”;
    This line of code does not escapes apostrophes correctly, which resulted in a mysql error when this character is included in the feed.

    I changed this line to:
    $values.= “‘”.mysql_real_escape_string($$varname).”‘,”;
    to fix this problem.
    Maybe you’re escaping this way in some other place too, which is potentially harmful, but I did not check for that.

    I hope this helps, and thanks again for your great work!

Leave a Reply




Trackbacks

  1. MochiAds Arcade Plugin Teaser : Emanuele Feronato on June 15th, 2009 4:10 pm

    [...] you know next monday I will release the final version of the plugin to turn your WordPress blog into a MochiAds [...]

  2. Triqui MochiAds Arcade plugin for WordPress Released!! : Emanuele Feronato on June 19th, 2009 1:10 pm

    [...] Due for June 22, I decided to release today the Triqui MochiAds Arcade plugin for WordPress!! [...]

  3. Theme y Plugin para el Sitio de Arcades con WordPress | Summarg on June 20th, 2009 7:50 pm

    [...] Descarga e info del Plugin [...]

  4. MochiLand » Blog Archive » Triqui’s Wordpress Plugin for MochiAds Released! on June 29th, 2009 8:11 pm

    [...] the Triqui MochiAds Arcade plugin for WordPress official page for more details. Note that this plugin was independently developed (kudos to Emanuele!) so please [...]

  5. links for 2009-07-21 « Free Open Source Directory on July 22nd, 2009 3:08 am

    [...] Triqui MochiAds Arcade plugin for WordPress official page : Emanuele Feronato This plugin is intended to turn your WP blog into a MochiAds arcade site that will allow you to earn money both with Adsense (or other kinds of web advertising) and MochiAds publisher program. (tags: Triqui Mochiads arcade Plugin For WordPress Official Page : Emanuele Feronato) [...]

  6. Triqui’s Wordpress Plugin for MochiAds Released! « Blam Yo! on August 4th, 2009 11:23 pm

    [...] the Triqui MochiAds Arcade plugin for WordPress official page for more details. Note that this plugin was independently developed (kudos to Emanuele!) so please [...]

  7. The 5 Must Have Wordpress Plugins! | Webmaster Blog! on August 11th, 2009 7:49 pm

    [...] Wordpress Mochiad Plugin – make a arcade site using wordpress. The best thing is it auto updates! Check out [...]

  8. Triqui MochiAds Arcade plugin for WordPress upgraded to 1.1 : Emanuele Feronato on August 19th, 2009 11:54 am

    [...] order to do this, MochiMedia changed the feed used for parsing games, so I upgraded the Triqui MochiAds Arcade plugin for WordPress to version 1.1 in order to make it compatible with the new [...]

  9. Triqui modifications « Dobos Bence on August 24th, 2009 12:01 pm

    [...] by dobosbence in Games, Projects. Tagged: Mochi, RoleManager, Triqui. Leave a Comment To use Triqui wordpress plugin with more than one user i made this in my homepage [...]

  10. Triqui MochiAds Arcade plugin 1.11 released : Emanuele Feronato on August 27th, 2009 11:17 pm

    [...] MochiMedia’s feed added a new field, making the MochiAds Arcade plugin not longer compatible with the new [...]

  11. Wordpress Arcade Theme released | Wordpress tutorials, Wordpress themes, PHP Tips on December 10th, 2009 1:23 am

    [...] Also, this arcade theme is compatible with Emanuele Feronato’s Mochiads plugin. [...]

flash games company