Version: 1.02, by AnhTuanCool
Developer Last Online: Sep 2006
Version: 3.0.5
Rating:
Released: 01-18-2005
Last Update: 01-27-2005
Installs: 108
DB Changes
No support by the author.
Banners & Ads System
---------------------------------
by AnhTuanCool
Fully Tested on vb 3.0.5
Description:
Banners & Ads System allows you to have a slot on every pages in your forum for showing banners and ads. Banners and ads in database will randomly pickout to show everytime new page is loaded. Admin options in admincp allow you to fully administrate your banners and ads.
Feautures:
- Show Random Banner or Ad on everypage
- Clickable Link (of course )
Admin Feautures:
- Master Switch on/off
- Fully Add/Edit/Delete Banners, Ads Factors (such as title, dimension, links, etc...)
- Enable/Disable Banners To Be Shown (if you set Disable to a banner, it will not show)
- Banner Template Layout Alterable
- Show Banner Anywhere on your global templates
Updates:
Jan 28th - Add update to display banner anywhere rather than the nav
Install Instruction and Screenshots:
See attachments.
If you find this hack useful, also get informed by any new release & update, please click INSTALL. Thanks,
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I did, made that change and it centered it. I don't want it centered on the page, I want it to the right of my logo but centered horizontally with it like the example in my previous post.
@Rastus - Did you ADD the phrase as Control Panel Stop Message phrase type? If you ain't sure then re-add it and remember to choose Control Panel Stop Message as phrase type.
@PAWS - 1. Install the Update which I attached as txt file at this thread
2. Do this:
In your forumroot/global.php
Look for the whole code you've put in your global.php and REPLACE it with
PHP Code:
// 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");
// 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");
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");
// 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");
Place $banner where you want your banners to be displayed. Make sure you remove $banner in your navbar template if you don't want it to show one banner twice at a time.
I placed the $banner in the header AND footer.
Also installed the update tutorial how to do it.
The AdminCP runs fne, but the banners won't show on the bbs.
Any ideas are appreciate. I'm still running 3.0.1.
I have put the $banner in the header, but it does not align to the most right side of my screen.
Between the banner and the right side of my screen are some cm blank space.
Does anyone knows how I can align de banner so it fits on the most right side of my screen?
I have put the $banner in the header, but it does not align to the most right side of my screen.
Between the banner and the right side of my screen are some cm blank space.
Does anyone knows how I can align de banner so it fits on the most right side of my screen?
I tried it in the header and footer with the update and it won't show at all.