y2ksw |
08-07-2009 06:45 AM |
Quote:
Originally Posted by eric8476
(Post 1862698)
what does the placeholder look like
edit: I found it.
|
Quote:
Originally Posted by eric8476
(Post 1862745)
ads are not running
|
There are many reasons why an ad could not run. But the most frequent reason is, you have not inserted the placeholder in any of the templates.
Also, it may happen you have restricted your banner set too much. Please try the inbuilt banners first, and if they fail, ask here. Also make sure to read the help, included in the package.
As for your PM (please don't post PM's if you can ask here), if you need to show one banner more often than others, just insert duplicate that one for as many times you need. A weight of 1:5 of 2 banners require to insert the second 5 times. You may use this script to duplicate banners 10 times (insert your values first):
PHP Code:
<?php // No support provided!
define('MULTIPLIER', 9); define('USER', 'youruser'); define('PASS', 'yourpass'); define('HOST', 'localhost'); define('DBNAME', 'yourdb'); define('TABLE_PREFIX', ''); $banner_id = intval($_GET['id']); mysql_connect(HOST, USER, PASS); mysql_select_db(DBNAME); $SQL = "SELECT * FROM " . TABLE_PREFIX . "rbs_banners WHERE id=$banner_id"; $rss = mysql_query($SQL); $rs = mysql_fetch_assoc($rss); mysql_free_result($rss); if(!$rs) { echo "<br />Banner $banner_id not found"; die; } $k = array(); $v = array(); foreach($rs AS $key => $value) { if($key == 'id') { continue; } $k[] = "`$key`"; $v[] = "'" . addslashes($value) . "'"; } $SQL = "INSERT INTO " . TABLE_PREFIX . "rbs_banners (" . implode(',', $k) . ") VALUES (" . implode(',', $v) . ")"; for($i = 0; $i < MULTIPLIER; $i++) { mysql_query($SQL); } echo "<br />Banner $banner_id duplicated"; die; ?>
|