php Arcade Script
May 21, 2013, 04:02:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: To upgrade your forum account and access the phpAS Owners Only Section, you need to Log in to the members area and fill out the box at the top of the page. Doing this will get you verified as an official script owner and you will then be able to access the phpAS owner forums.

WARNING: At no time can a phpArcadeScript Owner offer a copy of phpArcadeScript to another person, whether it be someone who is looking for the script or even a current phpArcadeScript owner. Please refer all questions for sales or support at http://www.phparcadescript.com/support    Click Here To Check If Licence Is Valid.

Important notice regarding Php Arcade Script: http://www.phparcadescript.com/forums/index.php/topic,8316.0.html
Important notice regarding forum support: http://www.phparcadescript.com/forums/index.php/topic,8317.0.html

Is your email updated? http://www.phparcadescript.com/forums/index.php/topic,8321.0.html
 
   Home   Help Arcade Login Register  

IMPORTANT:

We have started a new forum that will replace this one in full shortly. You can still reply to existing topics on this forum, but new topics cannot be started here. Please start your new topics on the new forum: here.
Read more about this change here.
Pages: [1]
  Print  
Author Topic: What criterie uses the mochi grabgames file when bulk downloading games?  (Read 1952 times)
Fking
Newbie
*
Posts: 17


« on: April 16, 2010, 05:07:46 AM »

the mochi/grabgames.php file
basicly you can set just the number of games it downloads per run, but based on what criteria it pulls them? Date? Does it get the latest games every time or?
Logged
trst664
Newbie
*
Posts: 9


« Reply #1 on: April 16, 2010, 07:59:04 AM »

 Smiley
Logged
Fking
Newbie
*
Posts: 17


« Reply #2 on: April 16, 2010, 08:35:06 AM »

what's that supposed to mean? :>
Logged
PlayGamesArcade
phpAS Script Owners
Full Member
*
Posts: 205


WWW
« Reply #3 on: April 16, 2010, 12:40:08 PM »

Search under your /includes/config.php for the line:

$mochifeedurl = "http://www.mochiads.com/feeds/games/$mochi_id/...

After that bit you can modify the end to bring in only what you want rather than the whole lot, for example all premium games would be:

$mochifeedurl = "http://www.mochiads.com/feeds/games/$mochi_id/premium_games/all?limit=$mochinumbergames";

Check on mochimedia for the url structure and all the options available.
Save and upload that file then run the grabber after setting the number of games to grab in the admin control panel.
« Last Edit: April 16, 2010, 12:41:58 PM by PlayGamesArcade » Logged

Fking
Newbie
*
Posts: 17


« Reply #4 on: April 16, 2010, 02:09:13 PM »

that's nice trick, thank you Smiley

but the category aside, in what order it pulls them, from the newest to the oldest?
if it adds the newest first then the older ones, if i add few thousand games at once i'll have the oldest added last on my side
and since i order them by date DESC ill have thousands of old games in the first pages :>


is there a way to tell it to grab from the very oldest game to the newest ones?
Logged
PlayGamesArcade
phpAS Script Owners
Full Member
*
Posts: 205


WWW
« Reply #5 on: April 16, 2010, 03:12:54 PM »

Not sure, how to change the order, pretty sure it would be newest to oldest though...

You can set all games or limit the amount on the grabber.
You can limit to a single category of games or the games content rating (general, teen, adult, etc).
You can also hand pick the games, rather than using the grabber.

http://www.mochimedia.com/support/pub_docs#feed_2
Logged

mdsbezerra
phpAS Script Owners
Newbie
*
Posts: 3


WWW
« Reply #6 on: July 29, 2012, 01:54:29 PM »

Hello,

Mochi Media changed it's feed structure and I am trying to grab premium games without success.

I tried this kind of feed url and it did not work:

Quote
$mochifeedurl = "http://www.mochimedia.com/feeds/games/?q=%28coins_enabled%20and%20recommendation%3A%3E%3D4%29&/$mochi_id/?limit=".$mochinumbergames."&offset=".$mochioffset."";

What am I missing?
Logged

See you,

MDSB.

'Ah, all things come to those who wait,'
(I say these words to make me glad),
But something answers soft and sad,
'They come, but often come too late.'

Tout vient ß qui sait attendre, by Violet Fane (1843-1905)
Pages: [1]
  Print  

IMPORTANT:

We have started a new forum that will replace this one in full shortly. You can still reply to existing topics on this forum, but new topics cannot be started here. Please start your new topics on the new forum: here.
Read more about this change here.
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!