Hello All,

First of all, if you haven’t heard of the MochiAds Autopost Feature, i suggest you check it out over at Mochi’s Website.
In order to use this Script, you need to have AV Arcade: PRO or FREE

Anyways For this Addon you must download it HERE!

***CHMOD THE SCRIPT AND SAVE FOLDERS “SWF/IMG” TO 777 FOR PROPER USE***

So, You have downloaded the file, Before it gets uploaded to the root folder of the server that holds your AV Arcade Portal (FREE and PRO ONLY) so lets set up the config shall we??
ALSO, PHP5 Is Required to use this Script!

(NOTE: ALL CODE CHANGES IN THIS GUIDE ARE EXAMPLES)

Step 1: Database Configuration

First of all, you need to replace the variables within the script so it can communicate with your Database

$server = ‘localhost’; // What is the Server address?
$username = ‘test_user’; // What is the Databases Username?
$password = ‘test_pw’ ; // What is the Databases Password?
$database = ‘test_db’ ; // What is the Name of the Database?

–> TO <–

$server = ‘localhost’; // What is the Server address?
$username = ‘MyArcade’; // What is the Databases Username?
$password = ‘oMgITSCOOL’ ; // What is the Databases Password?
$database = ‘MycoolARCADE’ ; // What is the Name of the Database?

once you have switched the database variables, it will be able to add Info to the Database!

Step 2: FEED/URL/ADDER Configuration

We have 4 Variables to Swtich here:

LINE 27: $urlrequest = “http://www.mochiads.com/feeds/games/{PUB ID}/”.$_REQUEST['game_tag'].”/?format=json”;
LINE 44: $swfaddr = “{SWF FOLDER}/”.$slug.”.swf”;
LINE 47: $thumbaddr = “{ICON FOLDER}/”.$slug.”.gif”;
LINE 50: $game_url = “{URL}/”.$swfaddr;
LINE 51: $thumb_url = “{URL}/”.$thumbaddr;

what do we have to switch??

This:

LINE 27: $urlrequest = “http://www.mochiads.com/feeds/games/1juisd98ad9/”.$_REQUEST['game_tag'].”/?format=json”;
LINE 44: $swfaddr = “swf/”.$slug.”.swf”;
LINE 47: $thumbaddr = “icon/”.$slug.”.gif”;
LINE 50: $game_url = “http://mycoolarcade.com/”.$swfaddr;
LINE 51: $thumb_url = “http://mycoolarcade.com/”.$thumbaddr;

Now Save the File, And upload it to the ROOT folder!

Step 3: MochiAds Pub Account Configuration

Is an example, What we need to do is tell the MochiServers where the Script is and where to PING! it, therefore it will add the game!

Step 4: Add a Game!

Go to the Publisher Games Section
Find a Game
Click AutoPostWait till the In-Page box Says “SUCCESS!”
Go to your arcade’s Admin Section

Click Media
The Newly added game should be the First listing.
Click Edit
Select the Catagory
Click Save
And Success, the game has been added!

There you go, Hope this Helps!
2Dum2Kno!