vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Rotating Banner System (https://vborg.vbsupport.ru/showthread.php?t=188328)

MaR? 03-24-2009 05:22 AM

Please!, help! Just this error while checking my forum as XHTML 1.0 Transitional




Quote:

https://vborg.vbsupport.ru/external/2010/10/16.png Line 373, Column 589: there is no attribute "rel".
…" border="0" alt="Publique Aqu?" rel="nofollow" /></a></td> </tr> </table>



My site: www.altoforo.com


Thanks!!

y2ksw 03-24-2009 07:36 AM

Quote:

Originally Posted by MaR? (Post 1775596)
Please!, help! Just this error while checking my forum as XHTML 1.0 Transitional









My site: www.altoforo.com


Thanks!!

Task added: http://www.pagerobot.com/forum/project.php?issueid=228

MaR? 03-24-2009 08:46 PM

Hi and thanks.

I guess is a simple thing, just put the nofollow into the link code, not where it is right now.

I hope be right..

y2ksw 03-24-2009 09:38 PM

Quote:

Originally Posted by MaR? (Post 1776132)
Hi and thanks.

I guess is a simple thing, just put the nofollow into the link code, not where it is right now.

I hope be right..

Yes, that's it. If you are familar with coding, you may fix it now. I will not have time before next weekend ;)

MaR? 03-25-2009 01:57 AM

1 Attachment(s)
Well... I did it!... here you are this mod xhtml validated!... I only change the xml file.

y2ksw 03-25-2009 05:13 PM

Thanks :)

KevinGupta 04-13-2009 06:57 AM

How do I put it on side bar? (Very Left side on the forum?) That should also show banners vertically.

y2ksw 04-13-2009 12:09 PM

Quote:

Originally Posted by KevinGupta (Post 1790047)
How do I put it on side bar? (Very Left side on the forum?) That should also show banners vertically.

You will have to change your templates accordingly. This plugin does not insert banners by itself, but substitutes a placeholder found in the templates or text whenever it finds one and the rules are appliable.

MaR? 04-29-2009 11:00 PM

Hello y2ksw!!!!...

I like to put 3 banners UNDER FIRST POST... Im usin POSTBIT (no legacy) but I cant make this work...

Im using this code

PHP Code:

<if condition="$post[postcount] == 1">
$spacer_open
<div style="padding:0px 0px $stylevar[cellpadding]px 0px">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
 <
td class="thead" align="left" colspan="3">Sponsors</td>
</
tr>
<
tr>
 <
td class="alt1" align="center" width="100%">
@
vbbanners@
 </
td>
 <
td class="alt1" align="center" width="100%">
@
vbbanners@</td>
 <
td class="alt1" align="center" width="100%">
@
vbbanners@</td>
</
tr>
</
table>
</
div>
$spacer_close
</if> 


Can you helpme???

THANKS!

y2ksw 05-01-2009 10:11 AM

If the banner selection criteria is correct (enabled, not expired and visbile in that area), it really should work. Does it work when you insert @vbbanners@ in a new message? Do you already show a banner on this page? If yes, do you have enough banners in the database to show? Remember that no banner is shown more than once on a single page.

odln018 05-01-2009 01:14 PM

Can this be used to replace a header?

MaR? 05-01-2009 09:17 PM

Quote:

Originally Posted by y2ksw (Post 1802408)
......If yes, do you have enough banners in the database to show? Remember that no banner is shown more than once on a single page.

Thanks!! :up:

So, I have a Question now...

I using this mod to show banner of sub-forums on Navbar but I want also use this mod to have banners (comercial ones) under first post... Is any way to divide "groups" of banner to show in different places? (I mean for example: "@vbbanners@" and "@vbcomercialbanners@ "can you helpme?... thank you again!!

Edit: Nevermine!!, Im using "@vbbanners_vertical@" for comercial ones!!!

This mod rules!!

y2ksw 05-02-2009 08:08 AM

Quote:

Originally Posted by odln018 (Post 1802473)
Can this be used to replace a header?

I haven't tried yet ... it may work.

pauldack 05-06-2009 11:08 AM

Excellent mod!. I'm using on 6 of my forums.

djbaxter 05-14-2009 08:56 AM

Installed and working for vBulletin 3.82.

This can be used in combination with the new built-in vBulletin ad templates. I just added @vbbanners@ in one of the templates so that I get rotating banners instead of a single fixed ad.

djbaxter 05-19-2009 04:24 AM

I see an item titled "Settings" at the bottom of the ACP menu item list under "Rotating Banners System". However, when I click on that item, all I get is a blank page.

The rest of this add-on seems to work pretty well.

What would be nice would be an option to have different sets of ads defined to rotate in different places. For example, I use a small banner in the logo header area but I also have a leaderboard banner in above the stats. I see that someone has suggested you can use the "vertical" banners and just not make them vertical, but it would be nice to expand the add-on to explicitly alloow this.

y2ksw 05-19-2009 05:02 PM

Quote:

Originally Posted by djbaxter (Post 1813282)
I see an item titled "Settings" at the bottom of the ACP menu item list under "Rotating Banners System". However, when I click on that item, all I get is a blank page.

This is an issue which appears on a few systems but until now I don't know why, nor how to reproduce. It seems to depend on the & character in XML files and how servers read. In any case, those settings may be accessed also from the vBulletin settings list (bottom). This link was intended as a shortcut.

Quote:

The rest of this add-on seems to work pretty well.

What would be nice would be an option to have different sets of ads defined to rotate in different places. For example, I use a small banner in the logo header area but I also have a leaderboard banner in above the stats. I see that someone has suggested you can use the "vertical" banners and just not make them vertical, but it would be nice to expand the add-on to explicitly alloow this.
The problem with the number of Ad Sets is mainly the way how placeholders are replaced. If I would allow for, let's say 10 Ad Sets, tomorrow promptly there will be somebody who wants 11, 20 or 100. The way how Ad Sets are handled, will not allow for an unlimited number, unless to make the product heavy, slow and difficult to manage. Do we really want this?

How many places do we need? Would 10 different places be fine? Definitely? More than 10 places would make the settings overcrowded... ;)

1adam12 05-22-2009 07:14 PM

Hi,
I've got this working fine under 3.82 and just got it to work with swf files (have to put all the bits in the forum root for some reason, didn't like referencing a subfolder path).

But, it's doesn't seem to be tracking clicks on swf's. Ideas? Thanks!

y2ksw 05-22-2009 08:48 PM

Quote:

Originally Posted by 1adam12 (Post 1815389)
Hi,
I've got this working fine under 3.82 and just got it to work with swf files (have to put all the bits in the forum root for some reason, didn't like referencing a subfolder path).

But, it's doesn't seem to be tracking clicks on swf's. Ideas? Thanks!

Click tracking works only with images.

I tried to use a table with a SWF background and a transparent button as foreground, but for some undefined reason it would not work at all, or only on some browsers and others not. So I gave up to wrap a click tracker around other items than just plain images... Any ideas are welcome, though :)

Jaxel 05-22-2009 08:52 PM

I am unable to get google adsense to work with this...

PHP Code:

<script type="text/javascript"><!--
google_ad_client "pub-2437104458257480";
/* 8WayRun.Com */
google_ad_slot "3270884163";
google_ad_width 468;
google_ad_height 60;
//-->
</script>
<
script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script

http://www.8wayrun.com/index.php

With IE it gives me an error, with Firefox, it just gives me a blank spot.

*EDIT* sometimes it works, sometimes it doesn't.

y2ksw 05-22-2009 09:25 PM

I tried it and it works.

eventually however you may need to use:

<script type="text/javascript" src="http://pagead2.googlesyndication.com...s.js"></script>

all in one line. it should not make any difference but you never know. What error do you get from IE? Do you use ad blockers?

djbaxter 05-22-2009 09:44 PM

Quote:

Originally Posted by y2ksw (Post 1813588)
The problem with the number of Ad Sets is mainly the way how placeholders are replaced. If I would allow for, let's say 10 Ad Sets, tomorrow promptly there will be somebody who wants 11, 20 or 100. The way how Ad Sets are handled, will not allow for an unlimited number, unless to make the product heavy, slow and difficult to manage. Do we really want this?

How many places do we need? Would 10 different places be fine? Definitely? More than 10 places would make the settings overcrowded... ;)

I don't think I'd even need 10. Maybe half a dozen maximum.

You have two already. Why would adding a couple more make the add-on any less cumbersome?

djbaxter 05-22-2009 09:46 PM

Quote:

Originally Posted by Jaxel (Post 1815441)
I am unable to get google adsense to work with this...

PHP Code:

<script type="text/javascript"><!--
google_ad_client "pub-2437104458257480";
/* 8WayRun.Com */
google_ad_slot "3270884163";
google_ad_width 468;
google_ad_height 60;
//-->
</script>
<
script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</
script


Your quoted code is showing an extra line before the final script. Find out why (possible an unorintable character such as <Ctrl>+char?). That's probably why it isn't working for you. AdSense code is working just fine for me and 3.82.

Jaxel 05-23-2009 01:03 AM

That code is the exact code it shows in my adsense toolbar.

I changed it to this:
Code:

<script type="text/javascript"><!--
google_ad_client = "pub-2437104458257480"; google_ad_slot = "3270884163"; google_ad_width = 468; google_ad_height = 60;
//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

Seems to be working now.

djbaxter 05-23-2009 01:47 AM

No. You need both parts of the script, not just a piece of it. :rolleyes:

Jaxel 05-23-2009 03:00 AM

Quote:

Originally Posted by djbaxter (Post 1815551)
No. You need both parts of the script, not just a piece of it. :rolleyes:

Huh? both parts are there.

1adam12 05-23-2009 02:06 PM

Quote:

Originally Posted by y2ksw (Post 1815438)
Click tracking works only with images.

I tried to use a table with a SWF background and a transparent button as foreground, but for some undefined reason it would not work at all, or only on some browsers and others not. So I gave up to wrap a click tracker around other items than just plain images... Any ideas are welcome, though :)

Is there a bit of code that could be part of the swf that could be used to tell that the click has happened to RBS?

djbaxter 05-23-2009 02:50 PM

Quote:

Originally Posted by Jaxel (Post 1815582)
Huh? both parts are there.

Don't play dumb. :mad:

When I replied to your previous post, you had half the script commented out.

And if it's working now, it's because in the version now posted you got rid of the non-printing character I mentioned above.

Jaxel 05-23-2009 09:26 PM

Quote:

Originally Posted by djbaxter (Post 1815780)
Don't play dumb. :mad:

When I replied to your previous post, you had half the script commented out.

And if it's working now, it's because in the version now posted you got rid of the non-printing character I mentioned above.

I actually didn't... it was the [PHP] tag on these forums screwing with the display.

y2ksw 05-24-2009 06:57 AM

Quote:

Originally Posted by djbaxter (Post 1815456)
I don't think I'd even need 10. Maybe half a dozen maximum.

You have two already. Why would adding a couple more make the add-on any less cumbersome?

New release: Now we have up to 10 locations, although it may be possible to extend the feature to an almost unlimited number. However, for performance reasons and also for easier maintenance and user feedback, it is currently limited. During the upgrade process, also an expired test banner (Shopping Ad) will be disabled, since it may produce blank entries.

The screenshots are not updated yet, since the upgrade is only necessary for handling more than 2 locations.

y2ksw 05-24-2009 07:07 AM

Quote:

Originally Posted by 1adam12 (Post 1815761)
Is there a bit of code that could be part of the swf that could be used to tell that the click has happened to RBS?

You may include a call to http://www.domain.tld/.../rbs_banner.php?id=N to your SWF in order to notify a click, where N is the numerical ID of the banner. Of course, this requires to recompile the SWF. After clicking this link, it will redirect to the URL specified in Manage Banners.

It actually sounds like a good solution :)

djbaxter 05-24-2009 02:05 PM

Database error after upgrade when selecting either Horizontal Banner List or Vertical Banner List in Admin CP:

Code:

SELECT id, name, enabled, impressions, clicks, m_expired
    FROM rbs_banners
    WHERE vertical=1
    ORDER BY id;

MySQL Error  : Unknown column 'vertical' in 'where clause'


y2ksw 05-24-2009 03:02 PM

Quote:

Originally Posted by djbaxter (Post 1816270)
Database error after upgrade when selecting either Horizontal Banner List or Vertical Banner List in Admin CP:

Code:

SELECT id, name, enabled, impressions, clicks, m_expired
    FROM rbs_banners
    WHERE vertical=1
    ORDER BY id;
 
MySQL Error  : Unknown column 'vertical' in 'where clause'


Thanks.

Fixed in 2.2.1

1adam12 05-26-2009 02:47 PM

Quote:

Originally Posted by y2ksw (Post 1816148)
You may include a call to http://www.domain.tld/.../rbs_banner.php?id=N to your SWF in order to notify a click, where N is the numerical ID of the banner. Of course, this requires to recompile the SWF. After clicking this link, it will redirect to the URL specified in Manage Banners.

It actually sounds like a good solution :)

Nice! That's great. I'll have the flash monkey person try that and report back.

1adam12 05-27-2009 01:23 PM

Quote:

Originally Posted by y2ksw (Post 1816148)
You may include a call to http://www.domain.tld/.../rbs_banner.php?id=N to your SWF in order to notify a click, where N is the numerical ID of the banner. Of course, this requires to recompile the SWF. After clicking this link, it will redirect to the URL specified in Manage Banners.

It actually sounds like a good solution :)

It works! You should probably add this to your documentation. Thanks for the quick help!

all-in 05-27-2009 02:35 PM

How can you find out how many banners can be used at the present time? Also how can you increase that amount? I found this, but not sure if it means anything @vbbanners_vertical@<p> . Thanks

djbaxter 05-27-2009 02:43 PM

Quote:

Originally Posted by all-in (Post 1818138)
How can you find out how many banners can be used at the present time? Also how can you increase that amount? I found this, but not sure if it means anything @vbbanners_vertical@<p> . Thanks

You could read the thread... :)

all-in 05-27-2009 05:21 PM

Really...you dont say....lol. I did read the thread, but must have overlooked that part. Thanks for the help.

y2ksw 05-27-2009 05:56 PM

Quote:

Originally Posted by 1adam12 (Post 1818095)
It works! You should probably add this to your documentation. Thanks for the quick help!

You are welcome :)

y2ksw 05-27-2009 06:03 PM

Quote:

Originally Posted by all-in (Post 1818138)
How can you find out how many banners can be used at the present time? Also how can you increase that amount? I found this, but not sure if it means anything @vbbanners_vertical@<p> . Thanks

With version 2.1.x the limit is bound to 2 different locations, with 2.2.x the limit is bound to 10 different locations, and the number of visible items in your database.

Thus you may have as many banners on a single page as you wish, as long as no banner has to be loaded more than once, because the banner system will show each entry not more than once on a single page.

In other words, if you wish to show 100 banners at each page, you need at least 100 entries capable to show up, and of course, 100 placeholders in your template.


All times are GMT. The time now is 08:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03866 seconds
  • Memory Usage 1,868KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete