Mercurial > defr > drupal > ad
comparison documentation/README.txt @ 3:416ea999ed76 ad
maj ad version rc1
| author | sly |
|---|---|
| date | Mon, 20 Apr 2009 09:49:37 +0000 |
| parents | 948362c2a207 |
| children | 6aeff3329e01 |
comparison
equal
deleted
inserted
replaced
| 2:e5584a19768b | 3:416ea999ed76 |
|---|---|
| 189 specify multiple groups separated by commas. For example, to display 3 | 189 specify multiple groups separated by commas. For example, to display 3 |
| 190 ads from groups 24, 56 and 98 you would pass in the following parameters: | 190 ads from groups 24, 56 and 98 you would pass in the following parameters: |
| 191 <?php print ad('24,56,98', 2); ?> | 191 <?php print ad('24,56,98', 2); ?> |
| 192 | 192 |
| 193 You can also specify how to display a given ad. Current display methods are | 193 You can also specify how to display a given ad. Current display methods are |
| 194 'javascript' and 'raw'. When using the 'javascript' method, ads will | 194 'javascript', 'jquery', 'iframe', and 'raw'. When using the 'javascript', |
| 195 randomly change even when the Drupal pagecache is enabled. When using the | 195 'jquery', and 'iframe' methods, ads will randomly change even when the Drupal |
| 196 'raw' method, ads will only change when the Drupal pagecache is flushed. | 196 pagecache is enabled. When using the 'raw' method, ads will only change when |
| 197 the Drupal pagecache is flushed. | |
| 198 | |
| 197 To force one ad with a tid of 76 to display using JavaScript you would pass | 199 To force one ad with a tid of 76 to display using JavaScript you would pass |
| 198 in the following parameters: | 200 in the following parameters: |
| 199 <?php print ad(76, 1, array('method' => 'javascript')); | 201 <?php print ad(76, 1, array('method' => 'javascript')); |
| 200 | 202 |
| 201 To force two ads with a tid of 101 or 102 to display using the Raw method | 203 To force two ads with a tid of 101 or 102 to display using the Raw method |
| 313 | 315 |
| 314 When an advertisement is first enabled, the statistics for 'This hour', 'Today', | 316 When an advertisement is first enabled, the statistics for 'This hour', 'Today', |
| 315 'Last seven days', 'This month', 'This year' and 'All time' will all be the | 317 'Last seven days', 'This month', 'This year' and 'All time' will all be the |
| 316 same. When available, statistics will also include 'Last hour', 'Yesterday', | 318 same. When available, statistics will also include 'Last hour', 'Yesterday', |
| 317 'Last month', and 'Last year'. | 319 'Last month', and 'Last year'. |
| 320 | |
| 321 When displaying advertisements using the JavaScript, jQuery, and IFrame methods | |
| 322 impressions are tracked each time the script is loaded. When displaying | |
| 323 advertisements using the Raw method, impressions are tracked through the use | |
| 324 of a hidden 1x1 pixel image that is displayed along with each advertisement. | |
| 325 | |
| 326 The click_filter module can be enabled to filter out the following invalid | |
| 327 clicks: | |
| 328 * Duplicate clicks from the same IP address | |
| 329 * Clicks from the owner of the advertisement | |
| 330 * Clicks from any user with 'filter clicks' permissions. | |
| 331 * Clicks from any users in which the word "bot" is contained in their | |
| 332 HTTP_USER_AGENT | |
| 333 | |
| 334 This means that when the click_filter module is enabled, all clicks by UID 1 | |
| 335 will be filtered because Drupal will automatically assign all permissions to | |
| 336 this user, including the 'filter clicks' permisison. The click_filter module | |
| 337 currently has no configuration options beyond the 'filter clicks' permission. |
