In-line Tables
The in-line tables content unit allow you to include a list of the offers for a particular handset. This is suited to affiliates that wish to create separate promotional pages for each handset. An example of a table showing the current top 10 deals for the Nokia N96 can be seen
here∞.
Basic Format
To include a table of deals there are two lines of html you need to add to your page. Firstly, between the <head> </head> tags on your page you need to add: -
<link href="http://www.urmob.co.uk/content/default.css" rel="stylesheet" type="text/css">
This sets the default styles to be used for the table.
Then, where you want a table of deals to appear on your page, you just need to add: -
<script src="http://www.urmob.co.uk/content/table.php?id=username"></script>
You should replace username with your partner scheme username.
Display Options
By default the code above would just add a table showing the 10 cheapest deals found in the whole database, which isn't much use, so there are the following options you can add after {username} to modify the display: -
- To limit the table to one handset add &model= followed by the model code number to the end of the url, straight after {username}. For information on finding the model code numbers please see PhoneCodes.
- To limit the display to one make add &make= followed by the make name. e.g. to only show Nokia phones add &make=Nokia. If you are already setting the model you don't need to also set this.
- To limit the display to one network add &network= followed by the network name. e.g. to only show deals on Orange add &network=Orange
- To show more or less than 10 results than add &max= followed by the maximum number of results to show. i.e. to show up to 15 results add &max=15 or to show all the results add &max=999
- To show merchant's logos add &showlogo=1
- To show the Total Cost column add &showcost=1
- To hide the links to UrMob add &nolinks=1. Please note your network ID's are still used 85% of the time if a user goes via UrMob and will be for a year after their visit.
- To hide the phone column add &nophone=1
- To display a message when there are no deals available add &nodeals=Sorry+there+are+no+deals+available - you can change the message to whatever you wish but it should be urlencoded (which is mainly spaces replaced with + signs). By default, if there are no deals available, nothing is displayed.
- To only show deals with a particular free gift add &freebie= followed by the freebie name. List of Freebies∞
- To only show deals for a set contract length add &contract= followed by the contract length. e.g. to only show deals on a 18 month contract add &contract=18
- By default the tables are sorted with the cheapest deals at the top. If you would rather have the table display the most popular deals first add &sortpop=1. Popularity is based on the number of clicks an offer gets.
- If you would rather have the table ordered by the total cost rather than monthly equivalent cost then add &sorttotal=1.
- To never include estimated bills in the table (see InlineUsage) add &nousage=1
For example, if your username was qwerty and you wanted to show the top 5 results for the Nokia N70 with merchants logos and the total cost column shown, the code to add would be: -
<script src="http://www.urmob.co.uk/content/table.php?id=qwerty&max=5&model=29&showlogo=1&showcost=1"></script>
In-line Usage
An optional add on to In-Line Tables is
InlineUsage.