Turbo-Charging Robosoft with DynamicPAD (Part 4)

4

Posted by Cynic | Posted in DynamicPAD, PAD, Robosoft, Software, Super Simple, Web Sites | Posted on 07-04-2011

Tags: ,

Well, this is the final part in how you can turn Robosoft from an 800 lb gorilla, to an 8,000 tonne fire-breathing, city-eating, raging godzilla razor-beast from hell!

Last time I exported the PhotoResizer.dat file from Robosoft, then added in the output from DynamicPAD Helper here:

Photo Resizer DynamicPAD DAT

I then saved the file, and imported it back into Robosoft.

At that point Robosoft is ready to go. However, there are 2 things left to do:

  1. Install and configure the DynamicPAD PHP script on your server.
  2. Upload the DynamicPAD DAT for your product into your new DynamicPAD server.

Step 1 is pretty simple if you are on a LAMP server. If you are on Windows though, you’ll pull out a fair amount of hair before you get it working. But more on that later (I’ve solved those problems and have a download for you so that you don’t go bald).

To install DynamicPAD, go to the DynamicPAD site here. Download the script, upload it to your server, and follow the direction to configure it properly.

It’s pretty straight forward.

If you have problems, double-check that you have your 404’s working properly. DynamicPAD relies on the fact that none of the requested files actually exist, and all 404’s are redirected to the dp.php script, which processes the URL and returns the correct information, be that a PAD file or your program’s installer file.

If you are on a Windows server in a WIMP configuration (Windows, IIS, MySQL, PHP), then the DynamicPAD file from the DynamicPAD.org site won’t work. Instead, use my fix. It removes information from the DynamicPAD file that isn’t really needed, and fixes some issues where PHP is a bit finicky under Windows.

Download DynamicPAD for Windows Servers

There is a web.config file in there, and you should probably setup the folder as an application in IIS. Make sure to edit that for the proper path.

I’ve made some modifications in DynamicPAD for myself (and to get it working properly), so you should check them. Open the dp.php file and search for “cynic.me”.

Where to edit in dp.php

Notably, I’ve deleted the “Delphi” and “OnlineShops” nodes. You can delete more if you like, or add those back in.

Do not add back in the “Robosoft” or “DynamicPAD” nodes. You can try and find out, but that’s up to you.

You may wish to change the way things are done there if you can manage to get PHP working with some of the other regular expression methods. I wouldn’t bother though as it works the way it is right now.

For both the LAMP and Windows versions, you need to configure the script in the “dp_conf.php.inc” file. It’s straight forward. (Remember to set proper 404 redirection in your web server.)

Once you’re finished there, run the install.php file to install the DynamicPAD server, then delete the install file. I’d recommend backing it up somewhere though or moving it to a secure location that isn’t public.

When you’ve got the server installed, you must then update the site list. In the DynamicPAD for Windows Servers download above, there is a “dp_conf.dat” file that contains mappings for the various download sites and their unique values. (I’ve not customized any of that, by if you are adventurous, then it’s a pretty cool way to further get DynamicPAD looking even sexier~!) In the DynamicPAD web interface, click the update link. That will update your list of sites that you need. The link reads:

Download an updated download sites list from DynamicPAD.org

FINALLY… Back in Robosoft…

On the Products tab, double-click your product to open it up for editing. Expand Product > DynamicPAD > DynamicPAD Settings and double-click on it to open it up.

Final DynamicPAD DAT Export

#1 We need to do a little cleanup, and Robosoft will automatically do that for us. So click the “Edit dynamic data” button, then click “Save”. You might want to make a minor edit of a space somewhere then save. This will fix up any extra or empty entries and prepare the lean-mean DynamicPAD info for export.

#2 Next, click the “Export” button and save your app-##########.dat file. This is the file that you will upload to your DynamicPAD’s “data” directory.

Once you have that uploaded, your DynamicPAD server is ready to go!

In your Internet browser address bar, type in “http://www.yourdomain.com/path/to/dynamicpad/pad/app-############/product-name.xml” to test it. Here’s a live example for Photo Resizer:

http://www.supersimple.me/PAD/app-00b31342c6/Photo-Resizer.xml

And an example for a specific web site:

http://www.supersimple.me/pad/app-00b31342c6/site-007310de455/photo-resizer.xml

And one with the language specified (which we didn’t bother with in any previous work, but you’ll see this anyways):

http://www.supersimple.me/pad/app-00b31342c6/site-007310de455/lng-eng/photo-resizer.xml

If those 3 styles of URLs are working for you, then everything is ready to go.

The other style is for the distributable download, and looks like “http://…snip…pad/distr/app…snip…/your-installer.exe”. That’s a tracking link for your installer, and will help you know where your downloads are coming from.

At this point, you can go back into Robosoft and begin your submissions. Everything is already configured, and you can now serve up specific information as you specified in the Excel file, and random content that was generated inside of the DynamicPAD Helper application from all the different content that you had specified in the Excel file.

So, that ends the series on how to setup DynamicPAD. It’s fairly complicated, and certainly not very straight forward, but if you follow the steps that I’ve outlined, it’s actually much easier and quicker than trying to specify specific content inside of the DynamicPAD UI in Robosoft.

I hope that helps out.

Cheers,

Ryan