ForumsgeneralDigital Download Store question

This topic has 2 voices, contains 3 replies, and was last updated by  Brad 1792 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
March 14, 2007 at 6:46 pm #3764

launchpad67a

Hi Brad,
First, thanks for developing this application. It’s looks very cool and seems to work really well.
My question is this: What is the purpose of the Amazon account? Can’t I just host everything on my server?
If I don’t want to use Amazon, which files do I need to change to use my own server?

Thanks,
Mike

March 14, 2007 at 8:22 pm #3765

Brad

Hey Mike,

You could make those changes in the getS3Redirect() function in includes/functions.php.

S3 has its own link expiration system that I’m using, so if you want your links to expire you’d need to have your own system for that.

Personally I think S3′s worth it just for the bandwidth guarantee. I have a dedicated terabyte-bandwidth server here but I can’t provide the uptime that Amazon can.

March 14, 2007 at 10:00 pm #3766

launchpad67a

Thanks Brad,
Yeah, I figured out which files and lines to change.
So I changed line 74 in ‘functions.php’ to point to a folder on my server. Is this where I should place the files for download?

I have it all installed but have not tested it fully yet. I am going to try and buy a song right now.

I did notice that in your store you have a Buy It button, and your file types are in a drop down menu. Any chance of getting the right files to make mine look the same? Currently my store has no Buy It button and the file types are just links in a list.

I do understand your position about Amazon and uptime, but my dedicated server is up 99.9% of the time and I don’t expect the store to get pounded with business. I host 30+ web clients on my server and they never have any troubles.

Thanks again man,
Mike

March 14, 2007 at 10:41 pm #3767

Brad

Just editing line 74 won’t do it exactly. What might work (without testing it I’m not sure) is replacing getS3Redirect() with:

function getS3Redirect($objectName, $time)
{
return “http://www.yourdomain.com/path/$objectName”;
}

So replace http://www.yourdomain.com/path/ with wherever you’re going to put the files. $objectName should be the filename. Let me know if that works.

As for the dropdowns: I’m actually not using the package that I gave out to everyone else, still using my hacked together one. The dropdowns are cool but they’re not dynamic so you have to hack together the form code by hand. You can steal the HTML from my page though if you’re willing to put up with that annoyance.

Viewing 4 posts - 1 through 4 (of 4 total)

ForumsgeneralDigital Download Store question

You must be logged in to reply to this topic.