
02-18-2005, 01:26 AM
|
 |
|
|
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by AnhTuanCool
In the code that you inserted in global.php or simple open up global.php and look for THIS:
PHP Code:
}
// End banner
Add ABOVE
PHP Code:
$footer .= $banner2;
Save
You can use your $banner2 as a second banner in your footer now. 
|
I'd tried that, but the banner showed up at the bottom of my page and I could move it
this is the code I added
Quote:
// Start banner rotating by Anhtuancool
if ($vboptions['enbanners'])
{
// select random banner and display it
$getbanner = $DB_site->query_first("SELECT title, html, url, type, status, width, height FROM " . TABLE_PREFIX . "banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
eval('$banner = "' . fetch_template('banner') . '";');
$avoidid = $getbanner['adid'];
unset($getbanner);
// select random banner and display it secplace
$getbanner = $DB_site->query_first("SELECT title, html, url, type, status, width, height FROM " . TABLE_PREFIX . "banners WHERE status = '1' AND adid != $avoidid ORDER BY RAND() LIMIT 1");
eval('$banner2 = "' . fetch_template('banner') . '";');
unset($getbanner);
}
// End banner
|
|