PDA

View Full Version : Banner Ads System


Pages : [1] 2

tnguy3n
01-03-2006, 10:00 PM
Banner Ads System
Author: Thinh Nguyen (tnguy3n)
Support: www.vbviet.org

###############
Banner Ads System Expanded version supports Adsense, Adbrite, Flash, Inframe, etc.
Click on the link below for more info & to purchase:
http://www.vbviet.com/index.php?act=viewProd&productId=8
###############

This simple rotational banner ads system get random ads from your database and display globally under navbar on your board.
It's been fully tested on vb 3.5.2, but it should work fine for all 3.5 Gold version.

FEATURES:
- Banner stats tracker
- Ability to enable/disable
- Admin ability to add/modify/delete banners
- Admin ability to view banner stats/detail for each banner
- more

#################
STRUCTURE:
- New Files: 3
- New Template: 1
- New db tables: 2
- Product: 1


#################
INSTALLATION:

1. Upload files to appropriate dir in your forumroot
2. UPload product xml file in your Product Manager

#################
If you find this hack useful or wish to sponsor/support future development of the hack, you can donate to
https://vborg.vbsupport.ru/external/2010/02/12.gif (https://www.paypal.com/xclick/business=tdnguy3n%40yahoo.com&item_name=vBviet+Banner+System&no_shipping=1&cn=Your+Comments&tax=0&currency_code=USD)

If you need custom version of this hack, pls contact me.

:::::UPDATE:::::
The product xml above will add 2 plugins and the ads stays fixed under navbar. This, however, may not be working with some custom skins if navbar template's codebit are changed. To fix that problem, open Banner System plugin (at global_start hook), replace the whole content with:


// Banner Ads System by tnguy3n
if($vbulletin->options['bannersys_mode'])
{
$getads = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "

bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
$ads = $vbulletin->db->fetch_array($getads);

// print banner ads
eval('$bannerads = "' . fetch_template('bannerads') . '";');

$vbulletin->db->free_result($getads);
unset($getads);
}


Next step, you'll have to modify some templates in order to display the ads, place this following code:
$bannerads
anywhere you want to show the ads.
If you want to show the ads globally on your forums, put that code in either header or navbar or footer template.

To enable/disable or change other settings of Banner System: vBulletin Options -> Banner System Settings
- Banner System Mode: yes = enable, no = disable
- Show Banners to Logged In Users: yes = everyone (including logged in users), no = only guests
- Ads In New Window: yes = open in new window, no = open in same window

Hasann
01-04-2006, 03:16 PM
very usefully thanks for sharing

croportal
01-04-2006, 04:13 PM
thanks, very nice

mrusdy
01-04-2006, 06:08 PM
nice & cool

Snake
01-04-2006, 07:02 PM
Whoa this is great! Thanks! :D

jpt62089
01-04-2006, 08:27 PM
will this work with Adsense?

Puntoboy
01-04-2006, 09:15 PM
is this just a simplified version of PHPadsnew?

TheAllusionist
01-05-2006, 02:09 AM
Great I had one for 3.07 and have been looking for something like this. Quick question, are the banners linked to the advertiser or are they just images that rotate? Asking because I really need something that links to the sponsor's site. Either way, nice work!

zahrani
01-05-2006, 02:52 AM
Great one.. thanks
it's working smoothly.

athoob
01-05-2006, 05:16 AM
wonderful thanks

JsnakeJ
01-05-2006, 10:03 PM
Great work. You forgot the Banner added phrase though. ;) Also try having it in a template instead of how it is currently, its cutting off my skins navbar.

PennylessZ28
01-05-2006, 10:08 PM
thanks

Rukas
01-06-2006, 01:48 AM
Exactly what Ive been looking for, will install and test when I get home and then donate something for your trouble, thanks.

Rukas
01-06-2006, 01:49 AM
Ahh question, can we put the banner wherever we want or does it just stick it where it sticks it??

tnguy3n
01-06-2006, 04:07 AM
It stays fixed below navbar, but if you need to put it somewhere else, that would be easy to do too.

Akakios
01-06-2006, 11:42 AM
Hallo,

ich habe auch installiert aber obwohl im Admin funktioniert, in Hauptseite sehe ich keinen Banner.
Wo mache ich Fehler?

Hasann
01-06-2006, 11:51 AM
Hallo akakios,

doch es funktioniert aber du musst nach der installation Erlaubnis geben für die Mitglieder okei?

unter AdminCP> Banner System> Banner Settings> Show Banners to Logged In Users?> Yes und speichern

Akakios
01-06-2006, 12:23 PM
Hallo Hasann

leider das hat auch nicht geholfen.
Bei mir steht "You can set whether to show banner ads to logged in users here." und habe ich YES Markieren und gespeichert. Ader trotzdrm erscheint keiner Banner.
Soll ich vielleicht ein "include" oder so was in Template schreiben?
Übrigens, es gibt keine "neue Template" in zip ordner.

Hasann
01-06-2006, 12:34 PM
hmm..,
hast du schon mal product_bannersys.xml datei durch admincp> plugin manager importiert?
und welche version von vBulletin hast du?

tnguy3n
01-06-2006, 03:18 PM
I wish I know what you guys talk about. :D

Akakios
01-06-2006, 04:21 PM
hmm..,
hast du schon mal product_bannersys.xml datei durch admincp> plugin manager importiert?
und welche version von vBulletin hast du?

Ich habe alle richtig installiert. Und zwar banner erscheint sich im Admin dass installiert ist.
Ich habe die 303 Version. Ich habe aber andere Template. Blue Wonder. Ist vielleicht das sProblem?

Akakios
01-06-2006, 04:26 PM
I wish I know what you guys talk about. :D
Sorry but my English is poor.
I have problem with Banner Ads System. I have installed but I can not to see the Banner.
But in Admin I see th Banner.
I have 303 version und Blue Wonder Template.
That is my problem. :disappointed:

tnguy3n
01-06-2006, 05:16 PM
This banner hack is for vbulletin version 3.5.x. It wouldn't work in vb 3.0.3.

Akakios
01-06-2006, 06:41 PM
Ok! Thank you.
Do you know a good banner programm for 3.0.3?

guyfox
01-07-2006, 06:26 AM
im running 3.5.1 and the .org banner shows when a guest shows but thats all I see. Seems like I'm missing a bunch of stuff. Only screen I can find in my boards from the screenshots is the 1st one. I'm noob and probably missing something. Any help is appreicated.

tnguy3n
01-07-2006, 07:00 AM
vBulletin Options -> Banner System Settings, check Yes to "Show banners to logged in users".

kadafi_alive
01-07-2006, 05:17 PM
Hi,

How would I let display at the top right hand corner?

JohnnyClark
01-07-2006, 08:41 PM
I have a problem, when i click the link on my forum home, it doesnt take me to the place. Its an error, 404... IT adds "amp;" to my link

TheAllusionist
01-08-2006, 05:06 AM
IT would be nice if there was some documentation or a post explaining what the 'call' is named and where it is placed, so we could relocate it as needed. I am not a coder, but I didn't find the code in navbar or forumhome with a cursorary search. It does work on my current theme, but a theme I have in developement has side nav bar and not the horizontal ones on top, hence I thought it would be in the nav bar template. Anyway, if some one could post what I am looking for I imagine I could relocate it! :cool: Thank you for your time.

kadafi_alive
01-08-2006, 10:59 AM
I have managed to add it to the top, however, it stays in the middle instead of right aligning. Anyone know how to do that?

tnguy3n
01-08-2006, 11:23 AM
I'll write the docs for this later. For those who want to show the ads somewhere else, alter the codes in Banner System plugin.

djkristoff
01-08-2006, 04:16 PM
Database error in vBulletin 3.5.3:

Invalid SQL:
CREATE TABLE IF NOT EXISTS bannersys_banners (
bannerid int(10) NOT NULL auto_increment,
bannername varchar(200) NOT NULL,
bannerdesc varchar(250) NOT NULL,
bannerurl varchar(250) NOT NULL,
imgurl varchar(250) NOT NULL,
bwidth mediumint(4) NOT NULL,
bheight mediumint(4) NOT NULL,
status tinyint(1) NOT NULL default '1',
PRIMARY KEY (bannerid)
) ENGINE=MyISAM AUTO_INCREMENT=1;

MySQL Error : You have an error in your SQL syntax near 'ENGINE=MyISAM AUTO_INCREMENT=1
' at line 11
Error Number : 1064
Date : Sunday, January 8th 2006 @ 11:15:54 AM
IP Address : 68.148.132.214
Username : kristoff
Classname : vb_database

djkristoff
01-08-2006, 04:34 PM
works fine after you remove the MyISAM etc ...

A few suggestions that would really help boost this package would be:

- Scheduled Banner Expiration (give a start / end date to which the banner is valid)
- Allow the banners to be uploaded to the board into a folder or the db, instead of linking from an external source
- if there is no link for the banner, remove the <a href> and just show it as a normal image. some people just dont have a website to link to and are just interested in showing their banner.

other than that great job! nice package. helps alot.

TheAllusionist
01-08-2006, 05:09 PM
I'll write the docs for this later. For those who want to shade the ads somewhere else, alter the codes in Banner System plugin.
Thanks! This is a sweet plugin thanks for sharing it.

tnguy3n
01-08-2006, 06:19 PM
works fine after you remove the MyISAM etc ....

thanks, will fix that. I used MyISAM as default engine.

guyfox
01-08-2006, 11:33 PM
I actually had to click no then yes again to get it to work lol. Works great though. Does exactly what it needs to, well done.

EchoZA
01-09-2006, 11:48 AM
works fine after you remove the MyISAM etc ...

A few suggestions that would really help boost this package would be:

- Scheduled Banner Expiration (give a start / end date to which the banner is valid)
- Allow the banners to be uploaded to the board into a folder or the db, instead of linking from an external source
- if there is no link for the banner, remove the <a href> and just show it as a normal image. some people just dont have a website to link to and are just interested in showing their banner.

other than that great job! nice package. helps alot.


I had the same problem, removed the MyISAM line, re-upload the .xml file and all ran fine, but now when I try log into my ADMIN CP I get the following error,

Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT * FROM bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1;

MySQL Error : Table 'vbulletin_treatingyourself_com.bannersys_banners' doesn't exist
Error Number : 1146
Date : Monday, January 9th 2006 @ 08:46:34 AM
Script : http://www.treatingyourself.com/vbulletin/login.php
Referrer :
IP Address : 209.203.59.78
Username : Administrator
Classname : vb_database

Please help!

EchoZA
01-09-2006, 12:24 PM
^^^ I'm going to install phpmyadmin see if I can add the tables manually, looks like the tables were not added :(

EchoZA
01-09-2006, 01:05 PM
If I add the code from the .xml in via phpmyadmin, as follows.

("CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "bannersys_banners (
bannerid int(10) NOT NULL auto_increment,
bannername varchar(200) NOT NULL,
bannerdesc varchar(250) NOT NULL,
bannerurl varchar(250) NOT NULL,
imgurl varchar(250) NOT NULL,
bwidth mediumint(4) NOT NULL,
bheight mediumint(4) NOT NULL,
status tinyint(1) NOT NULL default '1',
PRIMARY KEY (bannerid)
)
");

I get the following error,

#1064 - You have an error in your SQL syntax near '("CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "bannersys_banners (
bannerid' at line 1

Please could I have some help, I'm a little new at this :(

tnguy3n
01-09-2006, 02:04 PM
If I add the code from the .xml in via phpmyadmin, as follows.

("CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "bannersys_banners (
bannerid int(10) NOT NULL auto_increment,
bannername varchar(200) NOT NULL,
bannerdesc varchar(250) NOT NULL,
bannerurl varchar(250) NOT NULL,
imgurl varchar(250) NOT NULL,
bwidth mediumint(4) NOT NULL,
bheight mediumint(4) NOT NULL,
status tinyint(1) NOT NULL default '1',
PRIMARY KEY (bannerid)
)
");

I get the following error,

#1064 - You have an error in your SQL syntax near '("CREATE TABLE IF NOT EXISTS " . TABLE_PREFIX . "bannersys_banners (
bannerid' at line 1

Please could I have some help, I'm a little new at this :(

because you didn't get the database table right.
try:
CREATE TABLE IF NOT EXISTS bannersys_banners (
bannerid int(10) NOT NULL auto_increment,
bannername varchar(200) NOT NULL,
bannerdesc varchar(250) NOT NULL,
bannerurl varchar(250) NOT NULL,
imgurl varchar(250) NOT NULL,
bwidth mediumint(4) NOT NULL,
bheight mediumint(4) NOT NULL,
status tinyint(1) NOT NULL default '1',
PRIMARY KEY (bannerid)
)

and if you have table prefix, add it before the table name.

EchoZA
01-09-2006, 02:43 PM
Thanks, where would I add the database name to perform this query in in the above command list?

EchoZA
01-09-2006, 02:46 PM
^^^ please ignore above post I have fixed it, is there anything else I will need to add?

tnguy3n
01-09-2006, 02:46 PM
admincp or phpmyadmin

futuregizmo
01-09-2006, 02:49 PM
Nice hack, running smoothly in my forum. Some questions though:

1 - How to modify the plugin so that the banners will be placed to the right of the forum logo? I tried editing the plugin but the best I did was place the banner in the center right below the forum logo. Dunno how to place it beside (to the right of) the forum logo.

2 - When will the phrases be added? I usually get this error (and some other phrase errors) when adding/editing banners:

Could not find phrase 'updated_banner_successfully'.

3 - Is there a way to put a weight on the banners that appear so that Banner 1 for example appears 80% of the time while Banner 2 appears only 20% of the time?

EchoZA
01-09-2006, 02:58 PM
O.K. I got access to my site again, went into AdminCP and uninstalled the plugin and then tried again but same error, is there a version of the product-bannersys.xml file without the MyISAM issue? If not what do I need to edit out of the .xml file or add in?

tnguy3n
01-09-2006, 03:43 PM
@ futuregizmo: you can manually add the missing phrase to Error Message phrasegroup.

@ EchoZA: pls use the attached product xml to import it. I stripped out the default MyISAM engine.

jmaldo
01-09-2006, 06:28 PM
I am also getting the missing phrase error. WHere do i add this?

Aslo on my portal page i get a tiny little black dot where it looks like its trying to display the banners, how can i get rid of that?

futuregizmo
01-10-2006, 12:17 AM
thanks tnguy3n. :) how about my other questions?


1 - How to modify the plugin so that the banners will be placed to the right of the forum logo? I tried editing the plugin but the best I did was place the banner in the center right below the forum logo. Dunno how to place it beside (to the right of) the forum logo.

3 - Is there a way to put a weight on the banners that appear so that Banner 1 for example appears 80% of the time while Banner 2 appears only 20% of the time?

EchoZA
01-10-2006, 07:45 AM
@ futuregizmo: you can manually add the missing phrase to Error Message phrasegroup.

@ EchoZA: pls use the attached product xml to import it. I stripped out the default MyISAM engine.

Thanks, all working great :) Looking forward to future developments on this mod :) Does the job :) Thanks for all your help!

[email protected] vbmenu_register("postmenu_869661", true);
01-10-2006, 09:41 AM
all seems to of uploaded fine but i can see the banners in the admin panel but on the forum its self i get a tiny dot in the middle of the screen under the nav bar

any ideas what i have done wrong ?

Rix

software-help
01-10-2006, 02:25 PM
I have added this and it works great :)

Only problem is a few sponsors have given me there banner code but it is using IFRAME is there anyway I can use IFRAME with this hack ????

TheAllusionist
01-11-2006, 12:37 AM
all seems to of uploaded fine but i can see the banners in the admin panel but on the forum its self i get a tiny dot in the middle of the screen under the nav bar

any ideas what i have done wrong ?

Rix
I had the same thing and was playing around and got it to work, I think I just turned off the logged in users seeing it and turned it back on and did a hard refresh (CTRL + R) and it showed up. Maybe a fluke and combination of things, but that is my recollection of what fixed it. Good luck!

Aeolian_X
01-11-2006, 03:16 PM
So what's the code to move the banner to the top right? I don't like it under the navbar.

satuk
01-11-2006, 05:11 PM
thanks a lot

fonzie11
01-11-2006, 07:42 PM
im a bit confused
i d/led it
put banneradmin.php in admincp folder
cpnav_bannersystem.xml in includes/xml
then banner.php and product-bannersys.xml in
my normal website www.mysite.com/forums

is this correct? cause idont see anything in the admin control panel bout them and im running vb 3.5.3
help plz?

fonzie11
01-12-2006, 12:00 PM
sum 1?

tnguy3n
01-12-2006, 01:49 PM
You're supposed to upload the product product-bannersys.xml file in Product Manager. Please refer to vBulletin Manual if you don't know where it is.

fonzie11
01-12-2006, 11:57 PM
got it 2 work thanks so muhc :)

Basscat
01-13-2006, 11:51 PM
I'll write the docs for this later. For those who want to show the ads somewhere else, alter the codes in Banner System plugin.

Thanks for the Great hack!

Can you be more specific on this or come up with the docs?

Is it possible to use the ads in more than one place on the forums at a time? I would like to have one below the header and one in the footer.

PennylessZ28
01-14-2006, 01:37 AM
This hack is garbage with out some better documentation. I installed it but the ads don't show up period. My navbar has been modified. So whats the deal? How do I call the banner?

xtreme-mobile
01-14-2006, 05:14 PM
some instructions on what to do would be nice :D

xtreme-mobile
01-14-2006, 07:54 PM
what other files are we ment to upload? how do i cahnge the banner :(

tnguy3n
01-15-2006, 06:00 AM
This hack is garbage with out some better documentation. I installed it but the ads don't show up period. My navbar has been modified. So whats the deal? How do I call the banner?

This addon is meant for unhacked vBulletin product. If you modified the software and don't have the skill & knowledge to adapt it to your forum, hire some coders or ask someone with PHP knowledge to fix that for you. And if you read the 1st post a bit more careful, you'd notice that I didn't check the "Support" tag due to my time restraint; however, I DID try my best to answer some of the questions and patching the bug.


For those who installed this hack and wanted to display the banners somewhere else, pls read this post (http://www.vbviet.org/forums/showpost.php?p=1379&postcount=2).

ShinJi87
01-17-2006, 01:44 AM
thanks share !

TheAllusionist
01-17-2006, 02:40 AM
Thanks! ;)

flomsen
01-17-2006, 10:09 PM
thx :) but no download links

NemoTech
01-21-2006, 11:50 AM
thx :) but no download links


same as flomsen

Marco van Herwaarden
01-21-2006, 03:00 PM
@tnguy3n
There is no download attached to your release anymore. Please correct this if possible.

If you want to have it removed, report the thread with a request to have it removed please.

shoupz
01-24-2006, 05:49 AM
awesome hack! thanks!!

bing11
01-24-2006, 07:02 PM
where is the hack?

Freakpyromaniac
01-25-2006, 08:25 PM
Please place the zip file back, i'am waiting a couple off days now. :disappointed:

Smiry Kin's
01-25-2006, 10:34 PM
o xml disapeared? :S

Mastar
01-26-2006, 02:04 PM
Where in the world is this HACK???

Freakpyromaniac
01-26-2006, 08:53 PM
I think this is the same where we are looking for, zo have fun.

Banner ads system. (http://www.vbviet.org/forums/showthread.php?t=199)

trigon
01-27-2006, 01:44 PM
I think this is the same where we are looking for, zo have fun.

Banner ads system. (http://www.vbviet.org/forums/showthread.php?t=199)
It's a shame, now we must register in another Board to see this hack?
Don't really understand it...... :mad:

rfosgategt
01-29-2006, 08:13 PM
what is even worse that they make u either:

a. post a topic

b. wait a day

all this just to download it...

MorrisMcD
01-30-2006, 01:56 AM
Boo :(

I am gonna install this.. In 24 hours!!! :(

Ericsson
02-02-2006, 02:19 PM
Is there any way to make the ads so that when users subscribe they dont see the ads?

VaaKo
02-06-2006, 06:41 PM
where is the download link?

tnguy3n
02-09-2006, 05:17 AM
Hack updated! You can download the hack from here rather from my site. And pls excuse me if I can't provide much of support for the hack. I'm pretty packed with skoolwork + work-work, and other higher prioprity projects.
For ppl who asked for the hack to display ads in left (or right) sidebar and header, check it here (http://www.collectorcarswapmeet.com/forum/index.php)

darian
02-09-2006, 09:39 AM
Hi,

Just installed this now, but have 2 problems.

As you can see from the attachment, the links are missing (they work, but the text is missing), and the add banner button is missing also.

Am running 3.5.3.

Please help.

Thanks!

Shogo
02-09-2006, 06:25 PM
Hi

When I try to add banners with a "&", that's not working

Those "&" are usefull for cibleclick and other ads


For this link :
http://***/cibles/banniere/symp.cfm?site_id=***&friend_id=***&banniere_id=***

I have : (not working under Firefox, not tried with IE)
http://***/cibles/banniere/symp.cfm?site_id=***&amp;amp;amp;amp;friend_id=****&amp;am p;amp;amp;&banniere_id=***


Every time I modify the banner link, I have a "amp;" coming behind the "&"

How to fix it?

Thx

Puntoboy
02-09-2006, 07:08 PM
is it possible to disable this for certain usergroups?

tnguy3n
02-09-2006, 07:29 PM
@ Shogo: the hack doesn't support links with parameters atm, but I'll look into when I got time.
@ Puntoboy: you can use conditional in banner template. i.e. <if condition="($bbuserinfo['usergroupid'] != 6) OR ($bbuserinfo['usergroupid'] != 7)">SHOW BANNER ADS</if>

Puntoboy
02-09-2006, 07:31 PM
@ Puntoboy: you can use conditional in banner template. i.e. <if condition="($bbuserinfo['usergroupid'] != 6) OR ($bbuserinfo['usergroupid'] != 7)">SHOW BANNER ADS</if>

how and where do i add this?

CommunityZ
02-10-2006, 04:12 AM
Can i paste HTML code into it? Or this just allow local banner?

darian
02-10-2006, 12:56 PM
No solution to my problem? Any advice would be appreciated.

adhesive
02-10-2006, 02:47 PM
great mod

theodonnells
02-10-2006, 04:21 PM
This works like a charm, i use commision junction for my banner ads and this hack works with that.I like it when hacks works first time.......Easy to install and use, just what the doctor ordered.

bashy
02-10-2006, 09:25 PM
Installed and working great....

Would it be possible for 1 usergroup (my VIP's) to be able to turn off the banners
should they wish?

If not could i change the guest group to my VIP group?
If so how/where please?

tnguy3n
02-12-2006, 09:40 PM
edit the bannerads template, put conditional <if condition="$bbuserinfo['usergroupid'] != VIPUSERGORUPID">SHOW BANNER ADS</if>

bunni
02-13-2006, 06:55 AM
Thanks a lot for this hack! I got it working after following all the instructions and reading through the entire thread. This is perfect for me.

xss illz
02-14-2006, 12:32 AM
has anyone installed this on a extreamepixel skin??

it doesnt seem to be showing up

can someone help me thanks

inspiration100
02-14-2006, 05:18 PM
not showing up for me either. (www.webmastersdatabase.com). Any idea why?
Thanks,
-Joseph

CB88
02-14-2006, 09:11 PM
Is it possible to use this with a custom banner code?

inspiration100
02-15-2006, 03:53 AM
Thanks, got it working!

nexus851
02-17-2006, 08:13 AM
When you goto Vbadvance, and then click on the banner, it doesnt goto the correct link, it gives me a 404 error....

The path must be wrong when it goes to the /index instead of the /forum/index, how do u fix this?

MorrisMcD
02-17-2006, 12:00 PM
When you goto Vbadvance, and then click on the banner, it doesnt goto the correct link, it gives me a 404 error....


The path must be wrong when it goes to the /index instead of the /forum/index, how do u fix this?


You have to add banner.php to the navbar replacements section under vBa settings

Smiry Kin's
02-18-2006, 09:34 PM
got it working easy but the Banner Stats, doesnt work..

Michael Boutros
02-19-2006, 02:05 PM
This is because of my extreme n00b skills with the vB ACP, but where can I go to add/edit/delete the banners and to view the stats?

bashy
02-19-2006, 02:14 PM
Its about half way down on the left hand side in ADMINCP called banner system

Michael Boutros
02-19-2006, 03:33 PM
It's not there for me, I have no idea why, I installed iTrader after this mod and iTrader is showing up.

Michael Boutros
02-19-2006, 03:36 PM
I am so dumb, I finally see it. Thanks a lot for your help bashy.

darian
02-20-2006, 08:07 AM
Anyone got any idea why my banner system isn't working?

See post https://vborg.vbsupport.ru/showpost.php?p=895151&postcount=81 for the original post.

Thanks!

bradg
02-20-2006, 08:09 PM
Will this hack allow me to only show certain ads in certain forums, or does it work globally? If so, this is exactly what I've been looking for!

Doila
02-20-2006, 09:13 PM
Awesome. I love it.

CB88
02-20-2006, 09:36 PM
I installed this and everything works well except this:

I had a second navbar directly beneath the first. After installing this the second navbar now displays right underneath the banner...is there a way to get it back under the first navbar?

bradg
02-21-2006, 12:31 PM
Just a couple of quick questions- will this allow me to specify different banner ads in specific forums? If I have several that need to display in only one forum, will they rotate on refresh? If yes to both, this is exactly what I need!

Drache
02-22-2006, 04:25 PM
How about the performance for this hack? Does it use alot database/server resources? Planing to install it on a very busy site.

one.eg6
02-24-2006, 11:11 PM
Someone else asked, and I didn't see it ever answered for him...

On my vBadvanced homepage the banner only shows as a very small dot. Any idea of how to fix this? Has anyone else ran into it?

tnguy3n
02-24-2006, 11:43 PM
try using full url to image location, including http://www

one.eg6
02-25-2006, 01:24 AM
try using full url to image location, including http://www

Actually, I am using the full image paths.

one.eg6
02-26-2006, 02:04 AM
try using full url to image location, including http://www

Any other suggestions?

fb_brian
02-28-2006, 08:55 PM
Hi

When I try to add banners with a "&", that's not working
Those "&" are usefull for cibleclick and other ads

Every time I modify the banner link, I have a "amp;" coming behind the "&"
How to fix it?

Thx

Shogo,
I was able to 'fix' this issue by editing the link in my data tables (bannersys_banners) using phpmyadmin.
It doesn't really fix the issue, but it at least lets me serve up the ads properly.

Brian

SysRq
03-01-2006, 08:24 PM
Installed this today on 3.5.4, works great. If only there was support for flash ads though. Also, is there a reason this won't work on my cmps homepage? In the source it just shows up as <table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">

<tr>

<td><a href="banner.php?do=redirect&bannerid=" target="_blank""><img src="" width="" height="" border="0"></a></td>

</td>

</table> Instead of a real banner.

tnguy3n
03-02-2006, 12:37 AM
You can use conditional in bannerads template to not display the ads in cmps portal.
<if condition="THIS_SCRIPT != 'your_cmps_script_name'">other banner codes</if>

SysRq
03-02-2006, 12:46 AM
I DO want the ads on my cmps portal, the problem is they aren't working. VB 3.5.4.

MXjunk127
03-02-2006, 06:56 AM
Ok, so I edited the global_start hook with the suggested edit and I got a DB error, replaced the code with this to link to the right table, it works, however, I cannot get the $bannerads to show in my templates.... Any ideas?

// Banner Ads System by tnguy3n
if($vbulletin->options['bannersys_mode'])
{
$getads = $vbulletin->db->query_read("vb3_forum"

bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
$ads = $vbulletin->db->fetch_array($getads);

// print banner ads
eval('$bannerads = "' . fetch_template('bannerads') . '";');

$vbulletin->db->free_result($getads);
unset($getads);
}

Also placed this in my forumhome template and it doesnt show...any ideas?

</head>
<body>
$header
$navbar
$bannerads
<!-- main -->


I am sure it is right under my nose, I am just dead tired.... :rolleyes: :disappointed: :nervous:

bashy
03-02-2006, 04:57 PM
Hi tnguy3n
Bet ya getting fed up with me :p

Anyway, I have had this installed for quite sometime now
and i have just noticed that it says $bannerads in my forum

Why would this be showing please?

one.eg6
03-03-2006, 08:13 PM
I DO want the ads on my cmps portal, the problem is they aren't working. VB 3.5.4.

or 3.5.3

tnguy3n
03-04-2006, 01:13 AM
Hi tnguy3n
Bet ya getting fed up with me :p

Anyway, I have had this installed for quite sometime now
and i have just noticed that it says $bannerads in my forum

Why would this be showing please?

I saw it working fine on your forum.

@ MXjunk127: did you enable this feature in vBulletin Options? One very common mistake. :p :laugh:

MXjunk127
03-04-2006, 01:33 AM
yep its enabled.... set yes, yes, and no to the new window....

CnB
03-04-2006, 07:04 PM
nice plugin.
got a few questions though.

1. any way to use flash banners ?
2. how do you make it so the banner switches every x second

Thanks

MarkyD
03-07-2006, 01:34 PM
I must be dense, but I cannot find the banner manager. I installed everything, and turned it on. It displays the default banner just fine...but how do I change what banners are in there?

finn snor
03-07-2006, 07:31 PM
Great stuff just what i need, however i dont have the ability to change banners, view statistics or anything other than enabling the default banner.

Im using vb 3.5.4

What can i do ?

tnguy3n
03-08-2006, 03:30 AM
I've been working on new version for this hack. Next release would include the auto rotating banners

Great stuff just what i need, however i dont have the ability to change banners, view statistics or anything other than enabling the default banner.

Im using vb 3.5.4


What can i do ?
check if you have the includes/xml/cpnav_bannersystem.xml uploaded on your server.

finn snor
03-08-2006, 06:13 PM
Thanks now it works.

I was missing the xml file and the two php files in adminpc.

finn snor
03-08-2006, 08:51 PM
New error came up. When ever i update, modify or delete it comes up with a
"Could not find Phrase updates succesfully"

And the link is bad

I removed it completely and reinstalled with no luck.

rnmcd
03-13-2006, 02:29 AM
I've been working on new version for this hack. Next release would include the auto rotating banners


Any intention to make this so we can have a different ad per forum?

marglar
03-13-2006, 10:44 PM
I saw this same question posted above with no answer.

Is there a way to put a flash banner in here?

osso12
03-17-2006, 05:45 AM
[solved] I hate to feel stupid..but the plug in is showing up, but where do i find the banner manager to edit the banners?
Never mind...
When i logged out of acp, and logged back in it was there. Thanks..

MThornback
03-17-2006, 01:52 PM
Just a note for people having problems with banners justified left when you want another way...if this has already been posted, sorry :p

In the banner system's global start plugin, find the textsearch call (the default is "<!-- / nav buttons bar -->" as mentioned in the hack) find that line in your navbar template and on the line above add an alignment ta, and the close tag on the line below (with a space for the insertion).

Enjoy :)

marcopolo
03-18-2006, 06:36 AM
[solved] I hate to feel stupid..but the plug in is showing up, but where do i find the banner manager to edit the banners?
Never mind...
When i logged out of acp, and logged back in it was there. Thanks..

Called me stupid too, but I can see the plugins, see the bannerads template, but how do I edit the banners?

I really am having a dunce moment.:surprised:

Ignore me, ignore me. Remember to copy the relevant files in the admincp, includes/xml to their respective board folders and remember to copy the banner.php to your forum root.

osso12
03-18-2006, 12:32 PM
I was not able to see them in admin ACP untill I logged off, closed the browser, and logged back in. ACP, Banner System, Banner Manager.

DJCobol
03-18-2006, 03:09 PM
I uploaded all the files and imported the XML document, now when ever I go to the control panel and try to mess with the options, I get a blank admincp screen. Any suggestions?

marcopolo
03-18-2006, 03:21 PM
Anyway I can change the background of a banner, they don't seem to look very clear.

rclark666
03-18-2006, 09:30 PM
hello,

im probably being blind but where do you find the banner manager?

bashy
03-18-2006, 09:39 PM
Its in the left panel called Banner System
You may need to do a hard refresh o close the brwser to se t...

hello,

im probably being blind but where do you find the banner manager?

osso12
03-18-2006, 09:46 PM
After you install the banner system. I was not able to see them in admin ACP untill I logged off, closed the browser, and logged back in. ACP, Banner System, Banner Manager.

rclark666
03-18-2006, 09:50 PM
ok cheers i c it

rclark666
03-18-2006, 09:51 PM
is there an easy way so that the banner appears in the top right instead of under the navbar?

DementedMindz
03-20-2006, 10:17 PM
ok question i wanted to add this to my header to the extra space on my right side im not using could we just do something like this?

<img src="$bannerads" alt="" />

Marty McFly
03-22-2006, 07:18 PM
Someone else asked, and I didn't see it ever answered for him...

On my vBadvanced homepage the banner only shows as a very small dot. Any idea of how to fix this? Has anyone else ran into it?

anyone find a solution to this??? i'm having the same problem.

osso12
03-22-2006, 07:28 PM
Yes. The dot will be there unless you turn the system off, or add a banner to the banner manager from what I have found.
Put some banners in the system and the DOT will go away.

headrat
03-23-2006, 10:49 PM
Yes. The dot will be there unless you turn the system off, or add a banner to the banner manager from what I have found.
Put some banners in the system and the DOT will go away.I've got banners in the system and it works great on every other page, but on my portal page, I have the blank do too. Any fix to this? Preferably to get the banners to show up there too, not just remove the dot. Tried "turning it off" and then on again, I'm assuming you are talking about the disable function in the AdminCP????? but that did nothing, but remove the dot because it disabled the hack. When I enabled it again, the dot came back, though it works on all other pages.

xec
03-24-2006, 04:17 AM
Hi this was the first mod I have ever installed on vB. The installation seemed to work because I see the "++++++.org" banner on my forums. However, I have no idea how to add/change banners. Thank you.

EDIT: Nevermind. I logged in and out and then I saw the Banner System settings.

Thank you for the great mod!

osso12
03-24-2006, 04:28 AM
I've got banners in the system and it works great on every other page, but on my portal page, I have the blank do too. Any fix to this? Preferably to get the banners to show up there too, not just remove the dot. Tried "turning it off" and then on again, I'm assuming you are talking about the disable function in the AdminCP????? but that did nothing, but remove the dot because it disabled the hack. When I enabled it again, the dot came back, though it works on all other pages.
Support: www.vbviet.org

headrat
03-24-2006, 10:19 AM
Ok, I went there, I find pretty much the same thread, but no help to finding out to make that dot on my portal page work properly as the banner system.

osso12
03-24-2006, 11:10 AM
Ok, I went there, I find pretty much the same thread, but no help to finding out to make that dot on my portal page work properly as the banner system.
The dot is simply a banner not showing up.
Maybe i can help you. Not sure if im supposed to do this, but what is your site?

headrat
03-24-2006, 12:27 PM
<a href="http://www.ratpackinternational.com" target="_blank">www.ratpackinternational.com</a> if I only had ONE banner, I could understand, but I don't and I don't have any troubles on any other pages.

Marty McFly
03-24-2006, 03:09 PM
http://www.77002.com/cmps_index.php

no banner on the homepage, but working fine on the forums :confused:

headrat
03-25-2006, 08:12 AM
Anyone find a cure for this yet?

MorrisMcD
03-26-2006, 05:33 AM
Anyone find a cure for this yet?

I have learned to live with it... But funny enough, if you hover over the dot, its a link.. and if you click it, it says the banner doesnt exist...

http://forum/banner.php?do=redirect&bannerid= is the link it sends me to

headrat
03-27-2006, 09:26 PM
just donated some money for the hack too, hopefully that'll help. :D
Anyway, works perfectly on all other pages for me, just have that 'dot banner' on my portal cmps page. Would really like to fix it up. :D

headrat
03-29-2006, 03:13 PM
can you other guys trying to find a solution to this issue donate some money? Maybe if you do, we'll get an answer. :D

bashy
04-02-2006, 04:01 PM
Hi

when reading a thread it shows $bannerads below and above the thread

I only have $bannerads in the footer template, and i have done a search and
its deffo only in the footer


Please check HERE (http://www.bashys-place.com/forums/showthread.php?p=7774#post7774)
Its just above the similar threads (above the thread)
and below the posting rules at the bottom of the thread...

Please advise?

headrat
04-03-2006, 03:48 AM
Told me over on vb-viet.org that he would be looking into the problem and get back to us in a couple days. If he doesn't put it here, I will.

topanet
04-06-2006, 05:25 AM
i have a diffrent problem...
i use vb 3.5.4

i have already switch only user logged on can only show the banner..
but, when i try to logged off, the banner still show up... this is first problem..

second problem is... when i switch off "open in a new window" the banner can not show up when i logged on... but when i logged off, the banner show up... hmmm.. really confusing..

but the other stuff, like statistic is working fine...

need some advice...
topan.

merlin101
04-13-2006, 09:12 PM
I installed this but when i try to show a banner other than the test one i get a black dot on portal page and on forums i also get this warning message > Could not find phrase 'updated_banner_successfully'. i have read these posts twice incase i missed someing tried all the suggestions and nothing the test logo will work but nothing i add will work.

Then i added in the actual width etc and it worked a treat but when i click on link it comes up with link not active???? and i still got black dot on portal page i think i can live with that for now unless anyone got any new suggestions

MorrisMcD
04-15-2006, 01:09 PM
I installed this but when i try to show a banner other than the test one i get a black dot on portal page and on forums i also get this warning message > Could not find phrase 'updated_banner_successfully'. i have read these posts twice incase i missed someing tried all the suggestions and nothing the test logo will work but nothing i add will work.

Then i added in the actual width etc and it worked a treat but when i click on link it comes up with link not active???? and i still got black dot on portal page i think i can live with that for now unless anyone got any new suggestions


I have been living with it for awhile now.. If you read within the last 10 posts or so, someone else is trying to get an answer at the authors home site

Dont hold your breath.. Its really not a big deal to me though

b00k
04-15-2006, 08:57 PM
http://www.77002.com/cmps_index.php

no banner on the homepage, but working fine on the forums :confused:

Hey Marty, any luck getting that resolved?

I took find that it doesnt work with CMPS :confused:

Anyone have some resolve for this?

MorrisMcD
04-16-2006, 05:44 AM
Hey Marty, any luck getting that resolved?

I took find that it doesnt work with CMPS :confused:

Anyone have some resolve for this?


Nope.. That is the mentioned 'dot' from above.. Where the banner SHOULD be

Rahuldhanpat
04-16-2006, 10:41 AM
I have just installed it...it's working but i m getting two banners at a time. One is above the nav bar and one is below the nav bar... i want to make it one...below the nav bar... help in this regard

RichieBoy67
04-17-2006, 04:12 AM
I had no problems what so ever with the install.... I found it very simple actualy and it works perfectly...

I was just wondering if anyone has figured out how to get adsense working on this??? Right now this hack is great.... if you could display adsense it would be awesome!!!

Thanks much

-

wizardan
04-25-2006, 07:12 PM
Flawless install.
And although I have a heavily modded navbar, it installed stock, no need for the plugin edit.

I have one question:

Is it possible to position the ad rotation elsewhere than below the navbar, without too many complicated edits?

Also, for those of you more knowlegeable than I, is there a marked difference between what I get with this hack, as opposed to using another hack that would integrate php adsnew?

Thank you.

Basscat
04-29-2006, 12:50 PM
There is a fix for the dot posted at www.techmirror.com

wizardan
05-02-2006, 11:26 AM
There is a fix for the dot posted at www.techmirror.comYou gonna share it, or do I have to join the forum?

cucarot
05-14-2006, 09:48 AM
how can I display more than 1 banner in my forum?

Bro_Joey_Gowdy
05-17-2006, 06:13 PM
Downloaded and Installed in under a minute.

Seems to be working fine for vb 3.5.3 at the moment.

Boguns
05-20-2006, 12:39 AM
<a href="http://discusscareers.com" target="_blank">http://discusscareers.com</a>

I cannot seem to find what template the $bannerads is located in. I searched everything.

midirtrider
05-21-2006, 05:30 AM
As for the black dot....

I was getting it to so I started playing with the options. I click on the
"open ads in new window" option under banner manager
and now the banners show up!

hope that helps!

midirtrider
05-21-2006, 05:31 AM
Is there a way to make it so users/guests can click on the banner and be automaticly directed to that banners website?

would be awsome if someone knew of a way to do this.

www.midirtriders.com

almukmin
05-23-2006, 04:34 PM
Is there a way to make it so users/guests can click on the banner and be automaticly directed to that banners website?

would be awsome if someone knew of a way to do this.

www.midirtriders.com

I think that's how it's done now.

almukmin
05-23-2006, 04:41 PM
It'd be nice if we can set the date for the banners to expire and put another input field for advertisers email address. Another good function is for the ability to email those advertisers.

slamdog
05-23-2006, 09:27 PM
my problem is with trade doubler links. if i enter the url as trade doubler say it should be

http://clkuk.tradedoubler.com/click?p=21701&a=974705&g=16157272

my board converts it to

http://clkuk.tradedoubler.com/click?p=21701&amp;a=974705&amp;g=16157272

any clues?

one.eg6
05-23-2006, 10:53 PM
You gonna share it, or do I have to join the forum?

Ditto.

CoastalFog
05-30-2006, 04:36 AM
I've added this program but can not for the life of me figure where i go to add new banners and remove the test banner from my forum.

Can someone share where i go to get to the banner manager?

Thanks,
Cris...

Rich
05-31-2006, 11:06 AM
I just searched this thread (Its a feature at the top of the thread) and typed " where do I add banners" and several other users asked this same question. The response is:

Its halfway down the left list in the acp called "Banner Manager".

ckhorne
06-07-2006, 02:56 PM
For those using cmps, you need to edit either the Page or the Default Settings for CMPS. In the "Portal Output Global Variables" section, add:

ads

This will load the necessary variables for the banner system.

mkdevo
06-08-2006, 12:40 PM
just installed this, and i'm looking forward to getting it going.. but i have a question..

i did the :::::UPDATE::::: from the original post, so i can place the $bannerads in places other than the navbar - or so i thought.. when i put $bannerads at the bottom of the navbar, the banner shows up, however, i'm trying to use this in combination with this mod (http://www.vbulletin.com/forum/showthread.php?t=157022), to get the banners to show up after the first post in a thread, but it's not working. i'm replacing the BANNER CODE HERE with $bannerads, but nothing shows up.

any ideas?

Blue-Inc
06-10-2006, 10:08 AM
This works perfect in vBulletin v3.6.0 beta 1. Clicked install.

One thing though if you could help. I don't really want the banner ads to be placed under the Navbar. Is there any way I can put the banner ads in the $footer?

offsidex
06-10-2006, 10:41 AM
first of all well done great work!

I have managed to get the banners to show in my forum home, but I am having the same problem as few poeple here, the dot in the CMS index page.
Would appreciate your help.

cheers
offsidex

titter
06-11-2006, 05:03 AM
For those using cmps, you need to edit either the Page or the Default Settings for CMPS. In the "Portal Output Global Variables" section, add:

ads

This will load the necessary variables for the banner system.

Thanks! this fixed that dreaded dot issue in the CMPS!

http://www.mobmototb.com -- cmps now has banners.



Now ... the same issue happens in the arcade that happened on the cmps, i looked for a global portal option, but didnt find any ... how would I go about globalizing $ads in the arcade?

TotalDriver
06-11-2006, 11:58 AM
Fantastic plugin - very easy to install - especially for this noob!

I have tried numerous other hacks - none as easy as this one - I love the admin cp interface.

Keep up the good work, I'm looking forward to the Pro edition!

Nominated for HOTH too :)

Cheers,

Mike

Muderman24
06-11-2006, 06:21 PM
Does this support javascript banners? Like google adsense referrals?

Blue-Inc
06-11-2006, 09:39 PM
Does this support javascript banners? Like google adsense referrals?

No. You can only use images and links. No HTML.

2fast4ya
06-21-2006, 03:28 AM
For those using cmps, you need to edit either the Page or the Default Settings for CMPS. In the "Portal Output Global Variables" section, add:

ads

This will load the necessary variables for the banner system.

I cannot find that portal output global variables, I am in the vBadvanced CMPS Templates, and the only "stock" one is adv. portal.. everything else is like buddy lists and what not.. where should i put it? and I put $bannerads right? where do i put it?

2fast4ya
06-23-2006, 02:46 AM
Bump Please

2fast4ya
06-26-2006, 05:05 AM
bump

2fast4ya
06-27-2006, 07:08 PM
Bump Again

tnguy3n
06-27-2006, 07:20 PM
$bannerads

Tip:
- put it in header or footer template rather than navbar.

2fast4ya
06-27-2006, 07:54 PM
it's for vbadvanced cmps, i got the hack working, but i'm having that little dot issue in my vbadvanced home page. take a looksy. www.vegasimports.com and there is the little black dot. read my above posts on what is in the template for cmps

2fast4ya
06-28-2006, 06:13 AM
bumpage

Bernd Glasstett
06-28-2006, 06:24 AM
I would need some more features:
- Ability to exclude forums from displaying ads
- Ability to exclude usergroups from displaying ads
- Ability to choose positions (alongside with logo, under navbar, right, left of the forums (skyscrapers), ability to use foreign code (affiliate services))
In this state as it is, the mod is nice but it lacks these features, which would really make it useable, especially on big forums.

2fast4ya
06-28-2006, 03:28 PM
+1 for bernd glasstett. +1999999 for getting my black dot fixed

2fast4ya
06-28-2006, 03:29 PM
so can someone tell me how to fix teh dot?

tnguy3n
06-28-2006, 09:14 PM
so can someone tell me how to fix teh dot?
Use conditional in bannerads template to exclude ads from showing on portal cmps.

2fast4ya
06-29-2006, 04:03 AM
but i want an ad there

Tim_GPN
06-29-2006, 05:36 AM
A failed to find the place where you actually add the banners?

If it was ment to come in the vB admin drop down menu, all i got was Banner System Settings?

Its a fantastic idea, would love to get it working.

Alkah
07-02-2006, 09:59 AM
IS there a way to put the system to show up here:
http://www.cobrasbistro.com/navigation.gif

aLReeMi
07-02-2006, 10:42 AM
thanks alot

EnIgMa1234
07-02-2006, 01:07 PM
cheers

overload7
07-02-2006, 03:00 PM
Great Mod, thanks a lot.

Alkah
07-02-2006, 07:55 PM
No support for this mod?

2fast4ya
07-03-2006, 05:20 AM
nope. i've been trying to get help with the black dot but no ones tells me how to fix it in cmps

overload7
07-03-2006, 10:39 AM
nope. i've been trying to get help with the black dot but no ones tells me how to fix it in cmps

If you are running vba CMPS, put the path to banner.php into the footer replacements. You also have to have a valid banner, as the test one doesn't really work too well. So try using one of your own.

2fast4ya
07-04-2006, 04:38 AM
what's the code for the path? and if its in the footer wouldn't that make it at the bottom of the page? Sorry for the Noob questions, this cmps thing is new to me

overload7
07-04-2006, 10:17 AM
It all depends on where you have banner.php and your directory structure. I had to just put "banner.php" into my footer replacements. You may have to put in "/'forumroot'/banner.php"

If you have the banner showing in the footer, then put it in the footer replacements, if in the header, then put it in the header replacements. All this can be done in the AdminCP > vBa CMPS options.

Shazz
07-04-2006, 05:05 PM
How do you make this thing rotate =\

2fast4ya
07-04-2006, 05:48 PM
add several different banners and each time you refresh the pages a different banner will show up

2fast4ya
07-04-2006, 05:49 PM
It all depends on where you have banner.php and your directory structure. I had to just put "banner.php" into my footer replacements. You may have to put in "/'forumroot'/banner.php"

If you have the banner showing in the footer, then put it in the footer replacements, if in the header, then put it in the header replacements. All this can be done in the AdminCP > vBa CMPS options.

OOOkay, i'm trying this now. So i'm going to go into footer replacements, and add
banner.php
I'll let you know how it turns out

RPM Photography
07-04-2006, 05:58 PM
Hello, I am tryting to install this banner system onto my forums:

https://vborg.vbsupport.ru/showthread.php?t=104432

My forums:

http://www.FloridaGerman.com/forums/

The install went cleanly and I see the Banner thing in the Admin, and adding a banner went smoothly and everything.

But the banners are not showing up on the page, I am a big of a n00b when it comes to mods, so I could really use some help!

Shazz
07-04-2006, 06:01 PM
add several different banners and each time you refresh the pages a different banner will show up
I ment actually rotate without refresh =\

2fast4ya
07-04-2006, 06:07 PM
Oh, I dunno then. LOL. SOrry

2fast4ya
07-04-2006, 06:09 PM
Still got teh dot. So i dunno what to do. Can someone give me exact code and exactly where to place code? This question has been on here several times and there was never a clear answer, just do this then this, but never, heres the code put the code here kinda thing.

Shazz
07-04-2006, 10:39 PM
just mess around with it.
You can insert it in the header, Navbar anywhere.

jp30
07-10-2006, 11:12 PM
Got this working on CMPS and the Forum Hompage, but the redirects don't work on the Gallery.

Instead of pointing to www.website.com/forum/banner.php
when I click on the ad,
it points to this www.website.com/gallery/banner.php

How do I redirect the link on my galleries page? I have PhotoPost Pro, BTW.

Goatpod
07-12-2006, 02:30 PM
For those using cmps, you need to edit either the Page or the Default Settings for CMPS. In the "Portal Output Global Variables" section, add:

ads

This will load the necessary variables for the banner system.

ckhorne, thanks for that - worked perfectly :)

and thanks for the wonderful Hack tnguy3n :cool:

FSX
07-15-2006, 12:22 PM
Thanks - works great.

One thing I would like to see in a future update maybe, is the banner stats. I would like to see how many page impressions the banner got as well as a export link so I can export the banner stats and email it to my advertising client to show him exactly how many page impressions/clicks his banner got for the month etc.

Otherwise really good job!

BTTF.com
07-15-2006, 03:29 PM
The $20.00 version has stats. It also supposedly supports Flash, but I've found that the code doesn't support Flash on IE -- just Netscape.

BTTF.com
07-15-2006, 10:21 PM
It also supposedly supports Flash, but I've found that the code doesn't support Flash on IE -- just Netscape.

Nevermind -- they've got it working now for IE.

rluna559
07-17-2006, 08:59 AM
Heres how to show banners within the header of your forums and how to get it to work to show correctly on your CMPS page.

First replace all the content of the Banner System plugin (at global_start hook) with this code below:


// Banner Ads System by tnguy3n
if($vbulletin->options['bannersys_mode'])
{

$getads = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
$ads = $vbulletin->db->fetch_array($getads);

$searchtext = '<!-- / banner ads -->';
$vbulletin->templatecache['header'] = str_replace($searchtext,
$searchtext.fetch_template('bannerads'), $vbulletin->templatecache['header']);

$vbulletin->db->free_result($getads);
unset($getads);
}


Then edit your header template and place the following code where you would like your banners to appear.


<!-- / banner ads -->


Lastly add banner.php to your Header Replacement settings in your CMPS settings.

Note if you want to place the banners within your footer, replace templatecache value from header to footer, add the code where you want to show your banners, then add banner.php to your Footer Replacement settings.

Thats it! Enjoy.

Also I'm having a problem of my own. The settings to edit banners does not show in the control panel. I only see the settings that you would see under banneradmin.php?do=settings .

If I want to edit my banners I have to manually enter the url to banneradmin.php?do=manage

Seems like the cpnav_bannersystem.xml file isn't working correctly for me. Anyone know how to fix this? I can't get around the problem with entering the urls myself but I rather be able to do it in the admin control panel.

tnguy3n
07-21-2006, 02:54 PM
Also I'm having a problem of my own. The settings to edit banners does not show in the control panel. I only see the settings that you would see under banneradmin.php?do=settings .

If I want to edit my banners I have to manually enter the url to banneradmin.php?do=manage

Seems like the cpnav_bannersystem.xml file isn't working correctly for me. Anyone know how to fix this? I can't get around the problem with entering the urls myself but I rather be able to do it in the admin control panel.


Adding this codebit somewhere in includes/xml/cpnav_vbulletin.xml file:
<navgroup text="Banner System" hr="true" displayorder="35">
<navoption displayorder="10">
<text>Banner Settings</text>
<link>banneradmin.php?do=settings</link>
</navoption>
<navoption displayorder="20">
<text>Banner Manager</text>
<link>banneradmin.php?do=manage</link>
</navoption>
<navoption displayorder="30">
<text>Banner Stats</text>
<link>banneradmin.php?do=stats</link>
</navoption>
</navgroup>

mix_boy
07-21-2006, 06:42 PM
thenks man ... i click install ;p

Distance
07-23-2006, 01:32 PM
I have installed this hack fine but...

nobody can see them in ie ( internet explorer )


?????


Vb 3.5.4
CMPS 2.1

www.hullchat.co.uk

Oap JTRipper
07-23-2006, 02:23 PM
working fine for me

vb 3.6 rc2
vba 2.2

www.oapsquad.com/forums/

if your using custom themes have you done this
This, however, may not be working with some custom skins if navbar template's codebit are changed. To fix that problem, open Banner System plugin (at global_start hook), replace the whole content with:

// Banner Ads System by tnguy3n
if($vbulletin->options['bannersys_mode'])
{
$getads = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "

bannersys_banners WHERE status = '1' ORDER BY RAND() LIMIT 1");
$ads = $vbulletin->db->fetch_array($getads);

// print banner ads
eval('$bannerads = "' . fetch_template('bannerads') . '";');

$vbulletin->db->free_result($getads);
unset($getads);
}

Distance
07-24-2006, 11:50 AM
yes i have

www.hullchat.co.uk

can anyone else see this in ie?

Oap JTRipper
07-24-2006, 01:07 PM
i can see them

at the bottom of your page

both in firefox :) & ie :(

rluna559
07-25-2006, 01:40 AM
I figured out what my problem was. I have bad eyes, I found where the banners can be edited.

On another note, I noticed that custom user groups the banner appears as a dot (at least for my site). The problem was fixed when I changed the banner links to open in a new window. If anyone is having problems viewing the banners, try changing the links to open in a new window.

Oh and you can see how mine is running at CaliberSRT4.net Forums (http://www.calibersrt4.net)

burntire
07-25-2006, 01:41 AM
Is there a way to place the banner in the header area on the right side?

burntire
07-25-2006, 02:41 AM
To add in the header to the right

Find

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;

Then add


<td align="right" valign="middle" width=100%>
$bannerads</a><br>

calgdsm
07-25-2006, 03:14 AM
Great Job Thank You!!

burntire
07-25-2006, 05:24 AM
Great Job Thank You!!

Your Welcome

truongton
07-25-2006, 07:00 AM
Nice, Very Thanks

calgdsm
07-25-2006, 11:21 PM
Im having a problem with the links when you click on the banner. It takes a user to a 404 error page. Anything i can do??

Also i have Vbanced installed and the banner do not show up on that page. just the main forum.

www.calgarydsm.com/forum/index.php

calgdsm
07-26-2006, 01:47 AM
Thanks! this fixed that dreaded dot issue in the CMPS!

http://www.mobmototb.com -- cmps now has banners.



Now ... the same issue happens in the arcade that happened on the cmps, i looked for a global portal option, but didnt find any ... how would I go about globalizing $ads in the arcade?

Fixed the DOT!!!!!!! thank you!!

calgdsm
07-26-2006, 01:51 AM
Still having problems with the links.

rluna559
07-26-2006, 08:17 AM
Still having problems with the links.

I had the same problm when trying to use the same method to display the banners on the right side of my header. Check out my method of showing the banners on page 15.

burntire
07-26-2006, 03:24 PM
Go to your Banner Ad Template and Replace the highlighted color below with the full URL to banner.php

Example <a href="http://www.yoursite.com/forums/banner.php?

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>

calgdsm
07-27-2006, 01:08 AM
I had the same problm when trying to use the same method to display the banners on the right side of my header. Check out my method of showing the banners on page 15.

Im not having a problem displaying the banners that works fine, just when you click on a link it takes you to a 404 not found page

Anyone have any ideas???

calgdsm
07-27-2006, 01:09 AM
Go to your Banner Ad Template and Replace the highlighted color below with the full URL to banner.php

Example <a href="http://www.yoursite.com/forums/banner.php?

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>

Nope that didnt work either, the link was trying to go to www.sitename.comdo=redirect&bannerid=$ads3

elliotc
07-27-2006, 11:09 PM
Hi guys!

The mod is great, but can anyone said me how post 2-4 banner on the same time (side by side) on the header, with this plug-in?:ermm:

Thanks for any help!!!

calgdsm
07-28-2006, 02:45 AM
Burntire,
when i put in the full path it made all the banners go to the same url, any thoughts?

burntire
07-28-2006, 09:52 PM
Burntire,
when i put in the full path it made all the banners go to the same url, any thoughts?

Below is the code I use in the bannerads template.
Just so we are clear this fixes the problem of the banner ads not redirecting when clicked on if you are using CMPS to create your sites home page.

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>

calgdsm
07-30-2006, 01:37 AM
Below is the code I use in the bannerads template.
Just so we are clear this fixes the problem of the banner ads not redirecting when clicked on if you are using CMPS to create your sites home page.

<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>


Ok, im not having a problem with cmps anymore as soon as i added "ads" as a hook good to go.

What the problem is the links are not redirecting to the url, it works in the cp but not on the site.

PondPikey
07-30-2006, 08:20 AM
Hope someone can gelp. Im using a Kartel fixed theme and am unable to get the banners to display, Im pretty sure ive set it up correctly.

Ive amended the global start hook in banner plugin manager. Im using the following to try and display the banners but with the no luck in FORUMHOME

<td align="right" valign="middle" width=100%>
$bannerads</a><br>

bashy
08-01-2006, 08:06 PM
Hi

Can this be placed elsewhere, please see the 3 boxes below the nacbar on my site, i would like this to show in the Partners box (3rd 1)

Is this possible please?

ZacUSNYR
08-03-2006, 01:11 PM
Cool idea - perhaps you can add onto it more?

$banneradnav , $banneradfooter, $banneradheader

And selectable when you add a banner in the admincp?

dr.science
08-03-2006, 09:02 PM
I have been searching everywhere. Can someone please help me to add a flash banner to my site? I have this mod, fully functional on CMPS and all, bt now I just need to enable flash banners to be used.

Thanks!

burntire
08-06-2006, 10:43 PM
This hack is working fine on 3.6.0.