Here is an in-depth explanation of patch files:
http://wurfl.sourceforge.net/patchfile.phpThe first thing you need to do is figure out if your device is already in the WURFL. To do this, go to
http://www.tera-wurfl.com/explore/browse/ and search for "Samsung S8300". It will lead you to this page:
http://www.tera-wurfl.com/explore/?acti ... s8300_ver1 . The problem is that your device exists but is not being detected properly. To remedy this, you just need to add your user agent and point it to the existing Samsung S8300. You can see from the previous link that the WURFL ID for the S8300 is samsung_s8300_ver1 - we'll use this to point your user agent to the correct device. Here's how to do that with a patch file:
- Code: Select all
<wurfl_patch>
<devices>
<device user_agent="SAMSUNG-S8300-Bouygues/S8300AGIC1 SHP/VPP/R5 NetFront/3.5 NexPlayer/2.9.1 SMM-MMS/1.2.0 profile/MIDP-2.1 configuration/CLDC-1.1" fall_back="samsung_s8300_ver1" id="custom_samsung_s8300"/>
</devices>
</wurfl_patch>
In the patch file, the fall back tells Tera-WURFL to take all the capabilities from samsung_s8300_ver1 and the id is a unique name that you refer to this device as - I recommend starting it with "custom" so it doesn't conflict with anything else in the WURFL. Now you just need to put this in a file and call it something like "custom_patch.xml" (put this in your data/ directory) and add that filename to your TeraWurflConfig.php file under the PATCH_FILE directive. Now reload the WURFL from your Tera-WURFL admin page and your device will be detected properly.