PDA


View Full Version : How Do You Make a WAP Ringtone Site?


xDennis
06-10-2006, 03:29 PM
I have beent rying to figure out how to upload m4a ringtones to my webspace so i can dl from the phone, but i can't find the WAP code that will allow you to do that, anyone?

Thanks :)

laursifer
06-10-2006, 11:10 PM
You need to define the correct MIME types on the server, so you need access to do that kind of thing. The code has to be written in WML, not HTML. You need to add the following MIME type, if you're able:


GCD (text/x-pcs-gcd .gcd)
If all you're doing is ringtones and/or wallpapers, that's the only thing you'd need to add, really. You shouldn't need to add the M4A MIME type but if you do, it's audio/mp4.


Once the MIME type is added, then first you want to write your GCD file. That would look something like this:

Content-Type: audio/mp4
Content-Name: NIN | Burn
Content-Version: 1.0
Content-Vendor: laursifer.com
Content-URL: http://www.laursifer.com/ringtones/NIN_Burn.m4a
Content-Size: 9999

The most important thing here is the 'Content-Size' line, because if it doesn't match the exact size of the file it won't download. To get the correct size, right-click on the file, go to Properties and snag the 'Size' in bytes (NOT 'Size on Disk'). Once you've got all of this (you can just write this in Notepad, by the way) save it with a GCD file extension. For this file, I'd probably name it 'NIN_Burn.gcd.'

Then you write your WML code for the actual page you're going to download from. I save my WAP pages as PHP, so let's say my ringtone download WAP site is http://www.laursifer.com/wap/ringtones.php. This is an example of what that ringtones.php code would look like:

<?xml version='1.0'?>
<wml>
<card id="HOME" title="Ringtones">
<p>
</p>
<p>
<b>Ringtones</b>
<br/>
<br/>
<a href="http://laursifer.com/wap/ringtones/NIN_Burn.gcd">NIN | Burn</a>
<br/>
<br/>
</p>
</card>
</wml>



I've made that page valid on my site so you can see what it would look like, but the download doesn't actually exist so that won't work. Visit http://www.laursifer.com/wap/ringtones.php from your phone.



......

So basically what I've done here is created a GCD file, which is a descriptor file--it tells Sprint what it's downloading and where to get it from. Instead of linking to the actual file, I have to link to the GCD. The GCD redirects me to the actual file to download. Most importantly, you have to define the GCD MIME type or none of this will work and there isn't a way around it... You CAN use funformobile, though, as they give you your own WAP "locker."



And that's the basics of WAP, I suppose...

phatalboom
06-11-2006, 10:18 AM
Nice post. Thanks tons, laursifer.

garion
06-13-2006, 01:23 AM
The combination that I'm using right now is Wapbuddy, a super easy way to have a ringtone website up and functioning quickly without having to do much messing around w/ mimes and such. I also found a script to batch create gcd's, since using gcd is the only way I've been able to force the created m4a's to download to the phone.

Download Wapbuddy (http://www.r-lau.com/files/wapbuddy.zip)

Download ringerconvert.php (http://www.r-lau.com/files/ringerconvert.php) (Right-click and Save Target As || customizable script, one I've set to batch create gcd's for m4a's)

 
SprintUsers.com was created in January 2002 as a resource for users of Sprint PCS products and services to learn about and share information. We have cll phone reviews, Cellular Accessories, Downloads, PDA reviews, Ringtones, all of the latest Sprint PCS news and information, an area where you can find help in creating a ring tone or custom image for you phone, and so much more. The most popular section is the message board where visitors can read and write messages, ask questions, and get advice about their cellular phone from other users.