|
|
|
|
|
|
|
Custom content logos
Step 1: Add standard include
Be sure that you've add the 'standard include' of Ringtonio to your source code: this is the topmost of the 2 Javascript codes which you get when you walked through the 'Build GSM site' wizard. If you haven't add the 'include' yet: determine here what include script you should use. (This link will open in a new window).
Further, you have to add the code as a standard include, you are going to use this function for sending the ringtones.(also add between and):
Step 2: Links to the order form
After this you can add your own content on the following way:
Please note: Give your 'id' an own reference number, this will be shown at your orderdetails.
- Operator/grouplogos: sendlogo(1,id,filename);
Example
Source
<a href="#" onClick="sendlogo(1,12345,'http://www.ringtonio.nl/logo/nieuw/97125.gif'); return false;">
<img src="http://www.ringtonio.nl/logo/nieuw/97125.gif" border=0 alt="Polo">
</a>
File
The files must satisfy the following demands:
- .gif filetype
- 1 bit colordepth (black/white or black/transparent)
- 72 x 14 pixels large
- Picture messages: sendlogo(2,id,filename);
Example
Source
<a href="#" onClick="sendlogo(2,12345,'http://www.ringtonio.nl/picture/liefde/13210.gif'); return false;">
<img src="http://www.ringtonio.nl/picture/liefde/13210.gif" border=0 alt="Love">
</a>
Fileformat
The files must satisfy the following demands:
- .gif filetype
- 1 bit colordepth (black/white or black/transparent)
- 72 x 28 pixels large
- Animations/screensavers: sendlogo(3,id,filename);
Example
Source
<a href="#" onClick="sendlogo(3,12345,'http://www.bamikanarie.nl/animation/dieren/759.gif'); return false;">
<img src="http://www.bamikanarie.nl/animation/dieren/759.gif" border=0 alt="Dog">
</a>
Fileformat
The files must satisfy the following demands:
- .gif filetype
- 1 bit colordepth (black/white or black/transparent)
- 72 x 28 pixels large
- maximum of 13 frames !
Tips & pitfalls:
- Check files
Make sure, your content is in the right fileformat. There's no check on it by sending, this will slow down the procedure to much !
- Browser-problems
Don't forget to give return false; behind OnClick, some of the browsers will not open the order pop-up. The same problem appears when you use behind href="javascript:sendlogo(xxxx);" instead of the above way.
- How to read a directory in PHP?
For the fanatics, a small piece of PHP with which you can read-in all logos from the current directory and put it into a table. Ofcourse it’s linked to the Ringtonio order popup. Don’t forget to report the right includes on the top of the page!:
<?
$base_url = "http://www.mijnsite.nl/logo/";
$logotype = 1; // 1=logo 2=picture 3=animation
$columns = 4; // number of colums
$rows = 5; // number of rows
$logodir = dir("."); // Read present directory
$col = 0;
$row = 1;
echo "<table cellspacing=5>\n";
echo "<tr>\n";
while ($entry=$logodir->read()) {
if (strpos ($entry, ".gif")) {
$col++;
if ($col>$columns) {
$col=1;
$row++;
if ($row<$rows) {
echo "</tr>\n<tr>\n";
}
}
if ($row<$rows) {
printf ("<td><a href=\"#\" onClick=\"sendlogo(%s,12345,'%s');".
"return false;\">\n".
"<img src=\"%s\" border=0></a></td>\n",
$logotype, $base_url.$entry, $entry);
}
}
}
echo "</tr>\n</table>\n";
$logodir->close();
?>
  |
|
|
|