PDA

View Full Version : Banners & Ads System


AnhTuanCool
01-18-2005, 10:00 PM
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 :D)

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,

Amavisca
01-19-2005, 02:19 AM
Sound interesting tuan. Thnx man. I will give it a try

Itworx4me
01-19-2005, 02:44 AM
Looks interesting.

Any way for you to add banner clicks and have them counted ?
Also would be nice to have a user interface to show the stats of the banner to the purchaser.

Thanks,
Itworx4me

yoyoyoyo
01-19-2005, 04:28 AM
Interesting idea. It would be nice to have an option with each image to allow the admin to select which usergroups will be shown which banners. For instance I may want all non-registered userd to see banners for my site, and then reigstered users would see a different set of banners, and then moderators would see none, or only a few, etc. based on the prefs set up by the admin.

reteep
01-19-2005, 07:19 AM
Hi,

cool hack. However, a option to choose in which Forum or Category the Banner shows up would be very nice!

BarHopper
01-19-2005, 05:46 PM
It would be better if the banner was central. Other than that, excellant hack.

snyx
01-19-2005, 05:49 PM
Looks interesting.

Any way for you to add banner clicks and have them counted ?
Also would be nice to have a user interface to show the stats of the banner to the purchaser.

Thanks,
Itworx4me
This is one step back from the exact script I have been waiting for. Great additon to see FLASH incorperated. Awesome. However, missing click tracking. Keep up the good work.

Does this hack allow me to only rotate one slot? What if I wish to show two banners or more at once?

AnhTuanCool
01-19-2005, 07:55 PM
@yoyoyoyo, stormblast - those need some or more lines of code and would be easy to made, if you really want a custom work, you can contact me individually :)

@snyx, Itworx4me - I will consider making that Add-Ons soon, thanks for suggest!
@snyx - if you want to have two or more slots running simultaneously, contact me individually ;)

The eyes lover
01-20-2005, 02:46 AM
great hack,but in this picture the banner not come in middle of the page,i don't way !

https://vborg.vbsupport.ru/attachment.php?attachmentid=23154&stc=1&thumb=1

thank you

nguyenvuan
01-20-2005, 02:50 AM
Can I use show random banner? If yes, how can I do?

And can I add multiplace banner? Ex: I have 2 banners, I wanna show 1 at top and 1 at bottom, coudn't I?

nguyenvuan
01-20-2005, 03:05 AM
great hack,but in this picture the banner not come in middle of the page,i don't way !

https://vborg.vbsupport.ru/attachment.php?attachmentid=23154&stc=1&thumb=1

thank you

Here the way :D

Replace banner templates with
<!-- Banner Rotation by AnhTuanCool -->
<table align="center" border="0">
<div class="smallfont" style="float:left">
<if condition="$getbanner[type] == 1">
<a href="$getbanner[url]" target="_blank"><img src="$getbanner[html]" width="$getbanner[width]" height="$getbanner[height]" alt="$getbanner[title]" border="0" align="center"/></a>
<else />
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="$getbanner[width]" HEIGHT="$getbanner[height]" CODEBASE="http://active.macromedia.com/flash6/cabs/">
<PARAM NAME="MOVIE" VALUE="$getbanner[html]">
<PARAM NAME="PLAY" VALUE="true">
<PARAM NAME="LOOP" VALUE="true">
<PARAM NAME="QUALITY" VALUE="high">
<embed src="$getbanner[html]" width="$getbanner[width]" height="60" play="true" loop="true" quality="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</OBJECT>
</if>
</div>
</table>
<!-- Banner Rotation by AnhTuanCool -->

lanc3lot
01-20-2005, 06:58 PM
Can we have a demo site plz?

There is a "similar" hack like this available, but that one, doesnt work for Netscape or Firefox users..and want to test if yours hack is working ok:)

Excellent hack, hope u add to it some features soon(like stats mostly).

Ps

Its "appear" in all pages or just forum home?
:)

AnhTuanCool
01-20-2005, 08:46 PM
It's appeared in all pages because the extra banner template that I added is on the nav bar, and you see your nav everypage ;)

lanc3lot
01-20-2005, 11:48 PM
lol:) clever i have to admit:)

Hope someone can show us a demo link, so i can test it with firefox/netscape use:)

AnhTuanCool
01-21-2005, 12:11 AM
I guarantee you this hack works on both IE and FireFox, but still unsure about Netscape because I don't have this kind of browser. But technically I can say that it will also work, because I combine both EMBED and OBJECT tag for flash type banner - standard way to make the flash show up in most of the browsers.

If you prefer a demo, check out my site http://yeuamnhac.com/music/ , login is not required.

lanc3lot
01-21-2005, 01:09 AM
Damn just tryed to test it with Netscape and i see the following message:

There seems to have been a slight problem with the database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience

I also see that, with my IE:(

Anyway i will give it a try tommorow, its 5 in the morning here, better to sleep little:D


Its a great hack mate, u should feel proud :)

Ps

Any possible stats to be added(i only ask as i am ready to install after i test:D)

AnhTuanCool
01-21-2005, 03:22 AM
The server had been overloaded lately, but it's up right now.

Thank you for your appreciation, I will work on the stats as soon as I can. Thanks, :)

lanc3lot
01-21-2005, 08:47 AM
Yep just checked, it works fine with Netscape, Firefox and of course IE.

Waiting for the stats addon, to install it:)(u may i think also add in the main page of the hack, the directions to center the "banner" in the pages(i think its in the previous page :P) )


Well done mate, i am curious that this hack didnt got yet at least 4 pages of replies yet...there are not any "adv" hacks available(any good at least :) )

Ps

Can u please release also an uninstall script for this hack? No need really yet, as i havent installed it, but i ask from now on, every hack designer i am intrested, to have it just in case:)

nguyenvuan
01-21-2005, 10:42 AM
But it didn't works if you had install Welcome panel :(

@AnhTuanCool: answer my question, please! Thanks

Itworx4me
01-26-2005, 04:36 PM
I installed this hack. And it won't display the banner in the Header template. I put the code in the navbar template and it works great. But I don't want to display it there. Any Ideas how to get this to work in the Header template???

Thanks,
Itworx4me

xtreme2
01-27-2005, 08:05 PM
hey, I installed the script, but I don't want it to show up in the navbar (have other stuff there). I am wanting it to be above the Advertising Section of my site (http://forums.probe-enthusiast.com/) When I have it in the navbar, it works fine, but anywhere else, it doesn't want to show up at all... any help?

Itworx4me
01-27-2005, 09:10 PM
I found that this works in the phpinclude_start template. Make sure you delete this file from the gobal.php file or it won't work.
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') . '";');
unset($getbanner);
}

One thing I have found with this script is that it doesn't rotate. Does anyone else have this problem??

Thanks,
Itworx4me

AnhTuanCool
01-28-2005, 01:07 AM
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.

@Itworx4me - what do you mean by the script doesn't rotate?

Itworx4me
01-28-2005, 03:11 AM
For some reason the banner doesn't rotate. Just stays on the first banner all the time. Not sure what can be done to fix this.

Thanks,
Itworx4me

xtreme2
01-28-2005, 03:36 AM
alright, cool, works for me now... rotates and everything... thanks!

AnhTuanCool
01-28-2005, 04:01 AM
@xtreme2 - thanks ;)

@Itworx4me - to make a banner to display, you have to set its status to ON. Otherwise I cannot find any problem along with my forum and other customer ones.

LauraFL
01-28-2005, 04:36 PM
I have it all installed but my banner is not showing up where I placed the $banner. I made sure that it is turned on and it show the banner correctly in the acp.

Any ideas?

detalhe
01-28-2005, 06:40 PM
Same here, it works only inside the main page, not above the navbar for example

AnhTuanCool
01-28-2005, 08:09 PM
I've added the update allow you to display your banner anywhere else you want depend on where you place your $banner variable. Have fun ;)

shadiguy1
01-29-2005, 07:21 PM
i installed this in 3.0.3 works great Question i have is there anyway to have this display a few banners at the same time i have it displaying currently under my header what i ean is like 3 diffrent banners same time.

shadiguy1
01-29-2005, 07:21 PM
i installed this in 3.0.3 and it wont dosplay the banner but it is inside of my admincp will thius work with this version of Vb.

MentaL
01-29-2005, 11:43 PM
anyone care to explain why it appears in navbar for me and not in the footer or any other place i insert the tag too?

www.ragezone.com

Rastus
01-30-2005, 02:25 PM
I'm lost. Into what table or page does this go?

2. Master switch
==================================
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_title', 'Enable Banners & Ads System', 5000);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_desc', 'If this option set to Yes, overal show banners and ads on navbar function will be turned on.', 5000);

INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('enbanners', 'general', '1', '1', 'yesno', '1000', '0', '0');
==================================

AnhTuanCool
01-30-2005, 04:20 PM
@Rastus - just run them as you run other queries.
@mentalrz - Did you INSTALL the Update?
@shadyguy1 - I'll try to install this hack on vb 3.0.3 later, see if it needs something else ;)

Rastus
01-30-2005, 08:00 PM
Ok, so I can make the banners now, see them in the CP, but when I choose save I get this error : "Could not find phrase 'save_banners_x_successfully'."

PAWS
01-30-2005, 10:01 PM
Great hack!

One question, I have 2 ad spots (top & bottom) and I was wondering if there was a way that they could show different banners instead of rotating in the same ones at the same time?

LauraFL
01-30-2005, 10:07 PM
Ok. I still cannot get this to show up. The banner shows up in my ACP. But there is nothing on the forum.

Can someone please help me?

AnhTuanCool
01-31-2005, 01:17 AM
@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

// 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


Save, and place $banner2 in the footer or wherever you want your second banner slot to show up. :)

@LauraFL - try to install the Update txt which I attached in this thread.

Rastus
01-31-2005, 01:23 AM
No, I did not. somehow I missed those

the "phrase" is another SQL Query ?

AnhTuanCool
01-31-2005, 01:37 AM
Take a look at the attachment see what I was talking about ;)

Rastus
01-31-2005, 01:52 AM
Ok... thanks I have it working now. I just switched from phpBB to Vbulletin and there are couple of minor differences in the control panel. :smoke:

thanks for your help :D

LauraFL
01-31-2005, 01:59 AM
I have done the update. It is still not working for me.

PAWS
01-31-2005, 02:32 AM
Thanks for the reply but I get this error now:

Invalid SQL: SELECT title, html, url, type, status, width, height FROM banners WHERE status = '1' AND adid != ORDER BY RAND() LIMIT 1
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY RAND() LIMIT 1' at line 1

mysql error number: 1064

AnhTuanCool
01-31-2005, 03:33 AM
Ok, sorry for the inconvenience, please do this,
Select the whole thing you've added, REPLACE by this

// Start banner rotating by Anhtuancool
if ($vboptions['enbanners'])
{
// select random banner and display it
$getbanner = $DB_site->query_first("SELECT adid, 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


Thanks,

PAWS
01-31-2005, 02:49 PM
Awesome work, thank you very much! :)

Rastus
01-31-2005, 06:11 PM
the banners look fine in IE, but not in Firefox. here's a link http://www.texas4x4.org/index.php

zurih
01-31-2005, 06:44 PM
just a quicktip: to save 1 query on every page

Open global.php
FIND 'phpinclude_end',

Below ADD
'banner',

:)

AnhTuanCool
01-31-2005, 08:20 PM
@PAWS - you're welcome ;)

@Rastus - I looked your forum source code and I figured out that you want the banners to be centered. So you changed the default banner template a bit but you somehow missed and it just 'goes out of bound' :) If you want the banner to be center aligned, do this,
REPLACE your banner template with this

<!-- Banner Rotation by AnhTuanCool -->
<div class="smallfont" align="center">
<if condition="$getbanner[type] == 1">
<a href="$getbanner[url]" target="_blank"><img src="$getbanner[html]" width="$getbanner[width]" height="$getbanner[height]" alt="$getbanner[title]" border="0" align="center" /></a>
<else />
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="$getbanner[width]" HEIGHT="$getbanner[height]" CODEBASE="http://active.macromedia.com/flash6/cabs/">
<PARAM NAME="MOVIE" VALUE="$getbanner[html]">
<PARAM NAME="PLAY" VALUE="true">
<PARAM NAME="LOOP" VALUE="true">
<PARAM NAME="QUALITY" VALUE="high">
<embed src="$getbanner[html]" width="$getbanner[width]" height="60" play="true" loop="true" quality="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</OBJECT>
</if>
</div>
<!-- Banner Rotation by AnhTuanCool -->

Save ;)

@zurih - thanks much for the tip, I'll consider adding it for the next version. Thanks, :)

Beaux
02-01-2005, 05:07 PM
Hey AnhTuanCool,
I'm a real rookie to PHP but I'm really excited about this mod. I'm was clipping along fine until i ran into step 5. I'm confused as to what to do. Do I make a new file with nothing else? If so, does it matter what I name it? Does this go into a specific file ( I don't see any file name).

Thanks for the hack and for your help.

Here is the instruction I'm confused with:


5. Add New Template

Title: banner

Template:

==================================

<!-- Banner Rotation by AnhTuanCool -->

<div class="smallfont" style="float:left">

<if condition="$getbanner[type] == 1">

<a href="$getbanner[url]" target="_blank"><img src="$getbanner[html]" width="$getbanner[width]" height="$getbanner[height]" alt="$getbanner[title]" border="0"/></a>

<else />

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="$getbanner[width]" HEIGHT="$getbanner[height]" CODEBASE="http://active.macromedia.com/flash6/cabs/">

<PARAM NAME="MOVIE" VALUE="$getbanner[html]">

<PARAM NAME="PLAY" VALUE="true">

<PARAM NAME="LOOP" VALUE="true">

<PARAM NAME="QUALITY" VALUE="high">

<embed src="$getbanner[html]" width="$getbanner[width]" height="60" play="true" loop="true" quality="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>

</OBJECT>

</if>

</div>

<!-- Banner Rotation by AnhTuanCool -->

==================================

AnhTuanCool
02-01-2005, 08:05 PM
I get what you say, here is how you Add New Template

Get in your AdminCP > Style Manager > Click on the drop-down menu next to the style title and cho Add New Template (see attachment for detail) and do as I described in the instruction. :)

LauraFL
02-03-2005, 12:25 PM
Still not showing up at my site

Beaux
02-03-2005, 01:18 PM
worked great! thanks!

zurih
02-03-2005, 06:20 PM
I found a bug.
when there is no ads added in admincp, pages keep loading like they didnt loading completly... Can anyone check if they get the same bug?

interfx
02-11-2005, 06:31 PM
How hard would it be add a stats module as part of this?

b00k
02-12-2005, 03:37 AM
regarding this step:

6. Open your navbar template:
Find:
==================================
<!-- / nav buttons bar -->
==================================
Add After:
==================================
$banner
==================================
OR you could place $banner anywhere else you want your banners to be shown in your template.

Save


ive gone to my navbar template, and this is what i have...

<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

so i search.. to add, search function fails because line looking for doesnt exist.
So, question is, how do i get this modification to work?
Where can this go ($banner) ? Ideally i want it to be in the header. Ive tried pasting it in with no success. Where should it go?

The banners i have added are showing up in the admin cP

AnhTuanCool
02-12-2005, 03:48 AM
Your navbar template might be varied from mine so try to just put the $banner at the end of your navbar template see what happen and you'll figure out.

b00k
02-12-2005, 03:57 AM
Your navbar template might be varied from mine so try to just put the $banner at the end of your navbar template see what happen and you'll figure out.


ya..seems to be resolved.. i messed around with it and almost have it perfect.. works great, and in all honesty the instructions are very well done ..

thank you!!!

Stangsta
02-15-2005, 05:52 AM
Your navbar template might be varied from mine so try to just put the $banner at the end of your navbar template see what happen and you'll figure out.

My site looks like this:
http://www.sevencityracing.com/forum/index.php?

How do I center it with my logo like this site?
http://www.probe-enthusiast.com/forums/

oldfan
02-15-2005, 05:19 PM
I'm also having problems centering the banner, see attached below
Could you help me out also please and thank you :)

oldfan
02-15-2005, 05:39 PM
I'm also having problems centering the banner, see attached below
Could you help me out also please and thank you :)

n/m I got it working :)
Is what http://www.probe-enthusiast.com/forums/ did a addon also?

AnhTuanCool
02-15-2005, 08:06 PM
@Stangsta - Read The Post #48 (https://vborg.vbsupport.ru/showpost.php?p=605648&postcount=48)

@oldfan - Nop, I've never written an add-on for this mod though if you're talking about the submit form.

Stangsta
02-15-2005, 11:34 PM
@Stangsta - Read The Post #48 (https://vborg.vbsupport.ru/showpost.php?p=605648&postcount=48)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.

oldfan
02-16-2005, 04:22 AM
@Stangsta - Read The Post #48 (https://vborg.vbsupport.ru/showpost.php?p=605648&postcount=48)

@oldfan - Nop, I've never written an add-on for this mod though if you're talking about the submit form.

thanks, I just forwarded a link to my sendmessage.php for the time being :)
All I need now a some stats :)
* oldfan clicks install

oldfan
02-16-2005, 05:28 AM
@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

// 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


Save, and place $banner2 in the footer or wherever you want your second banner slot to show up. :)

@LauraFL - try to install the Update txt which I attached in this thread.


I tried this and the second banner in the footer, didn't show up

oldfan
02-17-2005, 12:04 AM
anyone?

AnhTuanCool
02-17-2005, 08:25 PM
In the code that you inserted in global.php or simple open up global.php and look for THIS:

}
// End banner


Add ABOVE
$footer .= $banner2;
Save

You can use your $banner2 as a second banner in your footer now. :)

oldfan
02-18-2005, 01:26 AM
In the code that you inserted in global.php or simple open up global.php and look for THIS:

}
// End banner


Add ABOVE
$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

// 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

ajk
02-18-2005, 03:26 AM
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.

Thanks

Freakpyromaniac
02-18-2005, 10:52 PM
The system works here fine but....

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?

ajk
02-18-2005, 11:24 PM
The system works here fine but....

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.

I have my pop up and ad blocker off too!

quachvu
02-19-2005, 11:49 AM
hi ,
i am using now VBB3.0.6 and VBadvanced CMPS 1.0.1 .. how can i put this Ads on my main page portal too? under Navbar or maybe as a module ( if can be, its great) thanks!
by the way, how can i put 3 or 4 ads im the same line ? not only one. thx :)

how to fix the banner in center and midle , instead of it near the navbar like this ? http://www.vietphim.com/forum/index.php?

swantonio
02-20-2005, 08:24 AM
installed optimal

http://www.clan-losmuertos.org/forum

:nervous:

ajk
02-20-2005, 09:59 AM
Anybody else having problems with 3.0.1 or is it just me?

hyproVision
02-20-2005, 01:10 PM
I'm confused,
where it says

2. Master switch
==================================
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_title', 'Enable Banners & Ads System', 5000);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_desc', 'If this option set to Yes, overal show banners and ads on navbar function will be turned on.', 5000);

INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('enbanners', 'general', '1', '1', 'yesno', '1000', '0', '0');
==================================

I tried running that query but i dont work, it gives me this error...

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ';
INSERT INTO phrase (languageid, varname, text, phrasetypeid)

ajk
02-20-2005, 01:42 PM
I'm confused,
where it says

2. Master switch
==================================
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_title', 'Enable Banners & Ads System', 5000);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_desc', 'If this option set to Yes, overal show banners and ads on navbar function will be turned on.', 5000);

INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('enbanners', 'general', '1', '1', 'yesno', '1000', '0', '0');
==================================

I tried running that query but i dont work, it gives me this error...

An error occurred while attempting to execute your query. The following information was returned.
error number: 1064
error desc: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ';
INSERT INTO phrase (languageid, varname, text, phrasetypeid)


Did you insert it into the sub category and run the query on each line seperately?

hyproVision
02-20-2005, 04:20 PM
errr, nope :S
i just ran the querys from the admincp on my board

ajk
02-20-2005, 05:46 PM
errr, nope :S
i just ran the querys from the admincp on my board

I guess that is the same thing. I do mine in phpMyAdmin.

BTW, I think mine may be a problem because I only have 3.0.1 installed.
I wish they would confirm it before I upgrade and loose my mods.

Freakpyromaniac
02-20-2005, 08:40 PM
The system works here fine but....

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?

Problem is fixed :D

ajk
02-20-2005, 09:10 PM
Problem is fixed :D

What did you do?

I just upgraded to 3.0.7, so I hope it works NOW!

ajk
02-20-2005, 11:26 PM
Hi Everyone,

Before installing this mod, I'd highly suggest backing up your board.
Install vB 3.0.7 and then happy hacking.

It does not seem to work on 3.0.1.

THANKS for a GREAT hack!
I clicked install!!!! :D

DrkFusion
02-21-2005, 01:32 AM
I think I mentioned this before - people would like this hack with favourable weightings.

I added this to a modification I made - which breaks up the posts per Xposts - and not with banners, but text links. Users do not mind.

Lee Wilde
02-21-2005, 04:00 PM
Thanks very much. Installed in minutes with no problems.

schford
02-21-2005, 05:13 PM
Hi - Installed this and would like the banner add to be in the title area - So I put it there and it all looked great in Mozilla - but check it out in Internet Explorer and boy oh boy is it messed up.

Do you have nay ideas?

http://www.rebreatherworld.com/?styleid=6

Thanks

Stuart

tonymak
02-21-2005, 07:48 PM
Installed easy, Very nice thank you.

I would suggest maybe an enabled for a certain time like 30 days for example.
when I run ads, I do them on a time basis 30, 60, 90 days, etc.

ajk
02-21-2005, 07:56 PM
Can someone tell me how to put the banner command in the center of the footer?
I tried in a couple of differnet spots. Also, I used the center html command.
The banners still posted on the left or right side.

Thanks in advance and great mod ATC!

tonymak
02-22-2005, 03:37 AM
I think you want to edit the Banner template I think the default div alignment is
<div class="smallfont" style="float:left">
try
<div class="smallfont" style="float:center">

ajk
02-22-2005, 03:40 AM
Thanks Tonymak!

I'll try that.

ajk
02-22-2005, 03:48 AM
This code worked in the footer also.
I'm learning about the div command.


<div class="smallfont" align="center">$banner</div>


Now if I can just add a space in between the copywright and bottom I'll be all set.

Takamine334
02-22-2005, 11:01 PM
I'm also having problems centering the banner, see attached below
Could you help me out also please and thank you :)

I'm having the same problem...what did you do to fix it?

ajk
02-22-2005, 11:56 PM
<div class="smallfont" align="center">$banner</div>


I'm having the same problem...what did you do to fix it?

oldfan
02-23-2005, 01:18 AM
I'm having the same problem...what did you do to fix it?

In Template: banner

<!-- Banner Rotation by AnhTuanCool -->
<div class="smallfont" align="center">
<if condition="$getbanner[type] == 1">
<a href="$getbanner[url]" target="_blank"><img src="$getbanner[html]" width="$getbanner[width]" height="$getbanner[height]" alt="$getbanner[title]" border="0" align="center" /></a>
<else />
<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="$getbanner[width]" HEIGHT="$getbanner[height]" CODEBASE="http://active.macromedia.com/flash6/cabs/">
<PARAM NAME="MOVIE" VALUE="$getbanner[html]">
<PARAM NAME="PLAY" VALUE="true">
<PARAM NAME="LOOP" VALUE="true">
<PARAM NAME="QUALITY" VALUE="high">
<embed src="$getbanner[html]" width="$getbanner[width]" height="60" play="true" loop="true" quality="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
</OBJECT>
</if>
</div>
<!-- Banner Rotation by AnhTuanCool -->
<center><font size=1><a href="http://members.metallifukinca.com/sendmessage.php">Want to Advertise on Metallifukinca.com??</a></center></font>

there you go :)

Lextreme
02-23-2005, 03:55 PM
check this out www.lextreme.com/2jz The banner is in the center. However, the rest of the forum also align to the center. I want the rest of the forum align to the left but the banner align to the center. Secondly, its it possible to have the banner all the way up to the top where the forum logo is located?

Lextreme
02-24-2005, 09:29 PM
can someone help me?

oldfan
02-24-2005, 11:38 PM
can someone help me?

6. Open your navbar template:
Find:
==================================
<!-- / nav buttons bar -->
==================================
Add After:
==================================
$banner

that will do it :)

oldfan
02-27-2005, 02:36 AM
any updated on stats?

computer1
03-01-2005, 04:54 AM
I´m new about this but I understad the first of this

1. Create table - Make sure to add your table prefix if you have
==================================
CREATE TABLE `banners` (
`adid` INT UNSIGNED NOT NULL AUTO_INCREMENT ,
`title` VARCHAR( 250 ) NOT NULL DEFAULT '',
`status` INT( 1 ) NOT NULL DEFAULT '0',
`dateline` INT NOT NULL DEFAULT '0',
`html` VARCHAR( 250 ) NOT NULL DEFAULT '' ,
`url` VARCHAR( 250 ) NOT NULL DEFAULT '#',
`type` INT( 1 ) NOT NULL DEFAULT '1',
`width` INT( 10 ) DEFAULT '0' NOT NULL,
`height` INT( 10 ) DEFAULT '0' NOT NULL,
PRIMARY KEY ( `adid` )
);
==================================

but shuld I create this to mysql qvery to or ??
2. Master switch
==================================
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_title', 'Enable Banners & Ads System', 5000);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_desc', 'If this option set to Yes, overal show banners and ads on navbar function will be turned on.', 5000);

INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('enbanners', 'general', '1', '1', 'yesno', '1000', '0', '0');

Takamine334
03-01-2005, 07:12 PM
yes, do both

computer1
03-02-2005, 04:46 AM
If you lok att my board here
http://forum.tanakawebb.com
howe can I do so that banner shows on the top off the page ??

jugo
03-04-2005, 01:31 PM
ANyone get Click Tracking on this??

computer1
03-04-2005, 02:06 PM
Howe can I get the banner to the right of this page??

http://forum.tanakawebb.com

serg
03-05-2005, 02:55 PM
I still can't figure out how to install this thing. anyone??????

speedracer68
03-06-2005, 02:30 AM
I tried this edit to set up two banners. My entire site crashed when I made this change. I uploaded the previous global.php and all is well. I did it twice to see if I missed something. Same effect.

Also, when I place the banner on the left or center there is a blank gap below the banner. When I put it on the right there is no gap and less wasted forum space.

Any thoguhts?

Great hack by the way!!!

The is the error I get

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT title, html, url, type, status, width, height FROM banners WHERE status = '1' AND adid != ORDER BY RAND() LIMIT 1
mysql error: You have an error in your SQL syntax near 'ORDER BY RAND() LIMIT 1' at line 1

mysql error number: 1064

Date: Saturday 05th of March 2005 11:33:41 PM
Script: http://www.my-site.com/forum/
Referer:
Username: My name
IP Address: my ip







Quote:



@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

// 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


Save, and place $banner2 in the footer or wherever you want your second banner slot to show up. :)

redlabour
03-08-2005, 07:01 PM
Very nice ! Thx .... :D

redlabour
03-08-2005, 07:37 PM
This is the last ++++ i ever seen .... in IE everything is ok. If you use Firefox you will see that this Hack isn?t HTML Valid. :pirate:

ajk
03-11-2005, 05:56 AM
This is the last ++++ i ever seen .... in IE everything is ok. If you use Firefox you will see that this Hack isn?t HTML Valid. :pirate:


I use FireFox 1.0.1 and it runs fine.

drex
03-13-2005, 12:41 PM
GREAT HACK!

Is there a way to add click tracking (not who clicks, just how much per ad) to follow the amount of clicks on the ads?

Would be a great addition to this awesome hack.

See it in action at www.x5world.com

bos98
03-16-2005, 01:07 PM
OK this thing is great, works like a charm but......

I cant get it to load on my portal.....

the site is www.blackberry101.com

check it out and let me know, i tried inserting $navbar in the portal template, i tried inserting the code for the banner directly.....

I am stumped

Edit:

To be more clear, the banner is loading via the Navbar template using $banner,

on every page this works fine, but on the portal.php page which is using vBadvanced CMPS system it will not load, i have checked the source code after loading the portal page and it just seems to be ignoring the $banner variable within the navbar template.....

I can make the banner load if i put it directly in my header code....but i really dont want to do this if i dont have to

bos98
03-16-2005, 01:27 PM
forget it i just put it in the header, not wasting any more time

ajk
03-16-2005, 03:26 PM
Hi Bos,

Forum looks great!

Did you see the second text file?

Under the main File and instructions, there is directions to install elsewhere.

Check it out, it's easy!

Starsurfer
03-21-2005, 04:23 PM
Is it possible for me to add a javascript randomiser in there? Please tell me, the code I have is:
<script language="JavaScript" src="http://impgb.tradedoubler.com/imp/pool/js/63240/1069018" charset="ISO-8859-1"></script>

She Unlimited
04-05-2005, 04:32 AM
I know this is a stupid question, but can I use this with "Linkshare" as well?

She Unlimited
04-05-2005, 05:42 AM
We just had this installed but I am not seeing the same screen shots in our Admin panel?

I just have add banner and get code?

vulture
04-05-2005, 05:29 PM
Can you make this handle iframe tags as amazon can give you ads based on specified keywords.

EDIT:

Done it myself. Now I can shove in stuff like this:

<iframe src="http://rcm-uk.amazon.co.uk/e/cm?t=soapboards-21&o=2&p=13&l=st1&mode=dvd-uk&search=EastEnders&fc1=&=1&lc1=&lt1=&f=ifr&bg1=" marginwidth="0" marginheight="0" width="468" height="60" border="0" frameborder="0" style="border:none;" scrolling="no"></iframe>

PM me if you want the mod - quite a few changes from the existing mod

y2krazy
04-06-2005, 06:49 AM
Hi Bos,

Forum looks great!

Did you see the second text file?

Under the main File and instructions, there is directions to install elsewhere.

Check it out, it's easy!Mine still doesn't show up... :(

http://www.jdmkoncept.com/

Works fine on the forums though, but we'd like to see it on the portal as well... ;)

She Unlimited
04-07-2005, 05:00 AM
Can someone help me to learn how to add the code, links, and images for the banner managment, I tried to add what linkshare gives, but it does not work.

I can place the code here

>>>>>>>>>>

<a href="http://click.linksynergy.com/fs-bin/click?id=fByLJzuLIlQ&offerid=51678.10000548&type=4&subid=0"><IMG alt="aw728x90" border="0" src="http://1800patches.com/banners/cosmetic/aw_trial_728x90_1.gif"></a><IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=fByLJzuLIlQ&bids=51678.10000548&type=4&subid=0">

>>>>>>>>>>>>>>>>>>>>

y2krazy
04-07-2005, 06:45 AM
<IMG border="0" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=fByLJzuLIlQ&bids=51678.10000548&type=4&subid=0">Not sure what this is used for(see quote)... but, you can try this:

How do you call this banner? Arctic White
Specify the link to your banner here, included http://: http://1800patches.com/banners/cosmetic/aw_trial_728x90_1.gif
Specify the width and height of the banner you want to be shown at. Example: 468, 60 (width, height): 728, 90
Specify where you want your banner head to (require for IMG banner type): phttp://click.linksynergy.com/fs-bin/click?id=fByLJzuLIlQ&offerid=51678.10000548&type=4&subid=0
Specify your banner file type by choosing Yes for IMG(gif, jpg) or No for FLASH(swf): Yes
Enable this banner? Yes

Hope that helps! ^^

fuse3k
04-08-2005, 04:46 PM
does this mod work with text ads? More specifically, does it work with Google AdSense?

Nodaker
04-08-2005, 06:24 PM
I have a vanilla 3.0.7 and this is the first mod added and I can no longer log out.

Anyone else having this problem or made any changes to overcome this?

She Unlimited
04-09-2005, 01:38 AM
Thank you, I am going to give it a try I was trying not to lose my ID code. Thanks again!

y2krazy
04-10-2005, 11:46 AM
Hi Bos,

Forum looks great!

Did you see the second text file?

Under the main File and instructions, there is directions to install elsewhere.

Check it out, it's easy!Mine still doesn't show up... :(

http://www.jdmkoncept.com/

Works fine on the forums though, but we'd like to see it on the portal as well... ;)

2k99
04-19-2005, 01:12 PM
Is it possible for me to add a javascript randomiser in there? Please tell me, the code I have is:
<script language="JavaScript" src="http://impgb.tradedoubler.com/imp/pool/js/63240/1069018" charset="ISO-8859-1"></script>

same question..

is it possible to manage banners with javascript somehow ?

TheAllusionist
04-23-2005, 06:10 AM
Sorry for the newbie question, it looks like the 'Master Switch" was describing doing a query and adding the exact text into the query box and running it. Just moved over from phpBB and there is a lot to learn here.

Ignore post below

Is there a little more explicit install documment anywhere, I added the database and hope the settings are correct. However, I am assuming that the 'Master Switch' is in the language global settings? Is this correct, I am new to vBulletin and I don't just like changing code if I am not certain of where it goes, do I just create a new phrase in the global language phrases.

The final phases of phrases I will try to figure out when I get there, but I didn't want to add to the language phrases and have that not be the 'master switch' described in the install. Sorry if this is a boring newbie question, I did do a search to try and find an answer.

Best regards,

Russell Thomas

P.S. this looks like a great MOD and I have some sponsors waiting in the wings to sponsor a contest and it would be cool to have banners for them.

cschuck3
04-28-2005, 01:28 AM
Is that any way to get an addon that will count the hits? and email a report to the vendors? great hack and keep up the good work!!

Craigr
04-29-2005, 05:34 PM
Here's a hit tracker i created in about 5 minutes. :) Seems to work fine.

Hits are shown when you view the ad list in the admin-cp.

we_scooter
04-30-2005, 04:17 PM
can u add txt feature to this.
I mean so I can put a txt ad ( no pic no flash) just normal txt???)

xony
05-08-2005, 02:42 AM
Thanks for your work, are very good. I have made some changes, for my taste, for example the one to add two or three banners, but I have a problem, and is that sometimes they repeat banners, like podria solucionarlo. thanks.

oldfan
05-08-2005, 02:50 AM
Here's a hit tracker i created in about 5 minutes. :) Seems to work fine.

Hits are shown when you view the ad list in the admin-cp.

this is tested and works?

Craigr
05-08-2005, 01:36 PM
this is tested and works?
Tested locally and worked okay.

Monica05
05-10-2005, 09:34 AM
I'm having the same problem another poster a few pages ago was having. (Laura I think)

I've got it installed, got the banners in properly and enabled, all that good stuff, but they aren't showing up ANYWHERE.

I've done the update as well.

This looks like a wonderful hack and perfect for my needs, if I can get it to show up. Thanks so much for the help.

nmu98
05-12-2005, 02:42 PM
Can someone fill me in on step 2
2. Master switch
==================================
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_title', 'Enable Banners & Ads System', 5000);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_desc', 'If this option set to Yes, overal show banners and ads on navbar function will be turned on.', 5000);

INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('enbanners', 'general', '1', '1', 'yesno', '1000', '0', '0');
=================================

Where do I find this? VB3.07

Craigr
05-12-2005, 05:51 PM
Can someone fill me in on step 2
2. Master switch
==================================
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_title', 'Enable Banners & Ads System', 5000);
INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'setting_enbanners_desc', 'If this option set to Yes, overal show banners and ads on navbar function will be turned on.', 5000);

INSERT INTO setting (varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile) VALUES ('enbanners', 'general', '1', '1', 'yesno', '1000', '0', '0');
=================================

Where do I find this? VB3.07
You insert in into phpmyadmin or similar. :)

jurrie
05-20-2005, 11:45 PM
hey,

for those who have problems showing the banner on the forum homepage, I figured this out :
in my forum, it was properly showing on every forumpage ( userCP, FAQ, etc.)
but not on the forumhomepage.
what i did was ad the $banner here

from stylemanager :

choose : forum home templates ---> forumhome ( ad the $banner at the very bottom ) and voila . it works ( for me that is ) , try it out

see : http://www.designerschat.com

edyonline
05-25-2005, 02:28 AM
Tested locally and worked okay.

not really... if you have multiple banner it will update ALL banners

edit gotobanner.php

find:
$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1");

change to:

$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1 WHERE adid='$id'");

Monica05
05-26-2005, 05:28 AM
I still can't get mine to show up ANYWHERE :(

Lt. Dan
05-27-2005, 12:31 AM
I still can't get mine to show up ANYWHERE :(

Me either. I did everything exactly per the instructions and the $banner doesn't show up anywhere. Its as if it is being ignored.

Lt. Dan
05-27-2005, 06:34 AM
Guys, I think I found a glitch in the install.

The template that is created by following the instructions is titled: Banner with a capital 'B', but the code you insert to display the banners is $banner with a small 'b'.

I renamed the 'Banner' template to 'banner' and now it works!

oldfan
05-30-2005, 02:47 PM
Worked like a charm, thanks :)
Is it possible to have a output page for the sponsers too see?

not really... if you have multiple banner it will update ALL banners

edit gotobanner.php

find:
$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1");

change to:

$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1 WHERE adid='$id'");

treez
05-31-2005, 11:17 PM
I made a thing for this that counts the views/clicks. Hope you dont mind. (email comments to rdillon@sprocket.co.nz beacuse I dont come here often)

Craigr
06-07-2005, 01:35 PM
not really... if you have multiple banner it will update ALL banners

edit gotobanner.php

find:
$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1");

change to:

$DB_site->query("UPDATE " . TABLE_PREFIX . "banners SET visits = visits+1 WHERE adid='$id'");
Well spotted. :)

mkdevo
06-16-2005, 04:38 PM
does this mod work with text ads? More specifically, does it work with Google AdSense?

anyone?

JsnakeJ
06-17-2005, 11:12 PM
Nope it doesn't. At least it shouldn't.

uReside.com
06-18-2005, 04:22 AM
can you pick the forum you want the ad to appear in?

RichieBoy67
08-12-2005, 02:02 AM
I am having a hard time getting this to work on a portal page. I believe it is a path issue. I am sure it is an easy edit in the banners.php ....... Has anyone else run into this???

Thanks

karanlikdunya
08-12-2005, 07:22 AM
this hack vBulletin 3.5.0 Release Candidate 2 workıng?

RichieBoy67
08-12-2005, 11:55 PM
I am having a hard time getting this to work on a portal page. I believe it is a path issue. I am sure it is an easy edit in the banners.php ....... Has anyone else run into this???



Thanks


I believe my issue was caused by the click counter mod... if there is another counter available please pm me...

Thanks

jdingman
08-13-2005, 05:30 PM
Is there any system out there that will let me do the following?:

I want to have an ad rotator by default for all registered users. If a user is in a certain group, lets say GOLD members, ads will not be displayed. Such as that so if a user subscribes to a premium membership, ads won't be displayed.

I want to use an ad rotated of my own, not within vBulletin (such as phpAdsNew)

Thank you!!

ben_erhan
08-14-2005, 10:39 AM
Hey Friends,
I have instaled this hack correctly,
When I save the banner ı cant see any image or any swf file.
In my server there is not any gd version.In your opinion it is a reason.
Or what is the problem for this.Why can ı not see the banner in admin panel and in the forum.

fluentdesigns
09-08-2005, 11:08 PM
Was wondering if there were plans for this to be ported to new version of vb?

leedzinh
09-10-2005, 02:12 PM
don't work with vbb3.08 :(

AiForums
09-15-2005, 03:06 AM
Works fine with vb3.0.8

cojo
09-15-2005, 11:26 AM
I fellow the like above and it took me to the login page.

blackdream1971
10-01-2005, 08:07 PM
i want to be able to put my banners up through the admin cp, is there a hack for vb version 3.0.6 that looks like the banner placement in the link below?

http://www.beyondmass.com/forums

blackdream1971
10-01-2005, 08:24 PM
.......

HMBeaty
10-16-2005, 03:18 AM
Hello, are you going to be porting this over to work for vB 3.5.0? If so, PLEASE let me know. This setup is EXACTLY what I'm looking for. And no, I don't like phpadsnew if anyone suggests it.

Khaine
11-08-2005, 10:51 PM
I'll second that I'd like to see it ported for vB3.5.x as I detest phpadsnew

BETEP
11-27-2005, 02:55 AM
]Warning: main(): SAFE MODE Restriction in effect. The script whose uid is 507 is not allowed to access ./global.php owned by uid 48 in /home/apache/betep/admincp/banners.php on line 20

Warning: main(./global.php): failed to open stream: Success in /home/apache/betep/admincp/banners.php on line 20

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/share/pear') in /home/apache/betep/admincp/banners.php on line 20

Everytime I am trying acess "banner system manager" or "add new banner"

Anyone know why can It be?

bigmonay2k
12-01-2005, 02:33 AM
will this work for 3.5.1??

b00k
12-01-2005, 11:49 AM
Here's a hit tracker i created in about 5 minutes. :) Seems to work fine.

Hits are shown when you view the ad list in the admin-cp.

though this click tracker does work, it stops counting at 127 hits for some reason. On both my forums, 1 with 6000 members and 1 with 800, when banners are hit a total of 127, they stop working.

any ideas what would cause this?

otherwise it is flawless and really a super feature.

oldfan
12-01-2005, 11:41 PM
though this click tracker does work, it stops counting at 127 hits for some reason. On both my forums, 1 with 6000 members and 1 with 800, when banners are hit a total of 127, they stop working.

any ideas what would cause this?

otherwise it is flawless and really a super feature.

I was about to post the samething. All mine stop at 127 also :surprised:

b00k
12-02-2005, 12:53 PM
and once they peak at 127, they just sit there.. it renders the hack useless actually, which is a real shame.
I hope someone can resolve this issue.

b00k
01-09-2006, 02:01 PM
This problem has been resolved thankfully to Noppid at www.vbwebmaster.com

Modify the visits field in table banners

Change tinyint(6) to INT(6). (6) is the length.

This is the new query to start from scratch.

ALTER TABLE `banners` ADD `visits` INT( 6 ) DEFAULT '0' NOT NULL ;

That is the 127 limit fix. I dunno if anything else is broken.

we're very fortunate to have people out there who support others hacks...

Thanks noppid.

oldfan
01-16-2006, 08:05 PM
thanks, seems to solve the problem :)

This problem has been resolved thankfully to Noppid at www.vbwebmaster.com



we're very fortunate to have people out there who support others hacks...

Thanks noppid.