*

Recent

Author Topic: [Add On] Mochi Game Feed  (Read 8769 times)

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
[Add On] Mochi Game Feed
« on: January 04, 2015, 06:18:54 PM »
Mochi Game Feed is now available for Free Arcade Script
This Mod will allow you to install games with one click, just find the game you want and click install.

Mochi Media shut down in March of 2014, Mochi Game Feed created a game feed to save the mochi game catalog, so all of the games are still available. This feed is the current updated games only, but can be easily changed to grab more games.

*Note* You must have AGF Mod installed before you install Mochi Game Feed
http://freearcadescript.net/forums/index.php?topic=824.0





phpmyadmin run query:
Code: [Select]
CREATE TABLE IF NOT EXISTS `fas_mgffeed` (
  `id` int(5) unsigned NOT NULL AUTO_INCREMENT,
  `mgf_id` int(11) NOT NULL,
  `name` varchar(60) NOT NULL,
  `description` text NOT NULL,
  `thumb_url` varchar(200) NOT NULL,
  `file_url` varchar(200) NOT NULL,
  `width` int(4) NOT NULL,
  `height` int(4) NOT NULL,
  `category` varchar(40) NOT NULL,
  `installed` int(1) NOT NULL DEFAULT '0',
  `instructions` text NOT NULL,
  `tags` varchar(200) NOT NULL,
  `highscores` varchar(60) NOT NULL,
  `ads` varchar(60) NOT NULL,
  PRIMARY KEY (`id`),
  KEY `gametag` (`mgf_id`,`name`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;


Edit pages/admin/index.php
Find:
Code: [Select]
case 'manageagf':
include ('manageagf.php');
break;

Add After:
Code: [Select]
case 'managemgf':
include ('managemgf.php');
break;

Edit pages/admin/managegamefeeds.php
Find:
Code: [Select]
        <div class="boximage">
        <img src=\''.$domain.'/images/agf.png\' alt=\'Arcade Game Feed\' width=\'55\' height=\'55\' border=\'0\'><br /><a href=\''.$domain.'/index.php?action=admin&case=manageagf\'>Arcade Game Feed</a><br />
        </div>

Add After:
Code: [Select]
        <div class="boximage">
        <img src=\''.$domain.'/images/mgf.png\' alt=\'Mochi Game Feed\' width=\'55\' height=\'55\' border=\'0\'><br /><a href=\''.$domain.'/index.php?action=admin&case=managemgf\'>Mochi Game Feed</a><br />
        </div>


Upload 1 file to pages/admin
managemgf.php

Now login to your admincp
select => games => manage game feeds => Mochi Game Feed and hit the update feed button.

Now your ready to install games.


This work is licensed under the Creative Commons Attribution-NoDerivatives 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nd/4.0/.


kizinew

  • Newbie
  • *
  • Posts: 10
  • Force: +0/-0
Re: [Add On] Mochi Game Feed
« Reply #1 on: June 21, 2016, 06:27:00 PM »
thank you for this work but have this erro "Warning: Invalid argument supplied for foreach() in /home/host/public_html/domain.com/pages/admin/managemgf.php on line 326"
can fix it
« Last Edit: June 22, 2016, 08:08:36 PM by kizinew »


am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: [Add On] Mochi Game Feed
« Reply #2 on: June 25, 2016, 09:06:28 PM »
thank you for this work but have this erro "Warning: Invalid argument supplied for foreach() in /home/host/public_html/domain.com/pages/admin/managemgf.php on line 326"
can fix it

pm me your domain, so i can take a look