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)

viper357 12-01-2011 08:18 AM

Quote:

Originally Posted by y2ksw (Post 2273604)
The box for the email addresses is the one. One week before the banner expires, a mail is sent to all recipients in that box.

EDIT: You my change the task accordingly. However, double sending is not supported and never will.

How do I do that? On my installation it sends an email on the day that the banner expires? Where do I set it to 1 week?

kfyonur 12-01-2011 08:51 AM

Quote:

Originally Posted by y2ksw (Post 2273433)
Yeah, once again a style question :)

For fixed 998px styles I use for header2, in additional.css:
PHP Code:

.rbs_header_2 {
height70px;
left515px;
positionabsolute;
text-alignright;
top35px;
width468px;


and in header2:
PHP Code:

<div class="rbs_header_2"><!--@vbbanners:0@--></div


it is working thanx.

Videx 12-01-2011 11:41 AM

Quote:

Originally Posted by viper357 (Post 2273611)
How do I do that? On my installation it sends an email on the day that the banner expires? Where do I set it to 1 week?

I've requested a feature where we could set the expiration emails to x days. I too had no idea it was actually set to 7 days already. Or supposed to be. In my RBS 233 it says very vaguely:
Quote:

Mail addresses: Please list here one or more mail addresses to inform about banner events. Separate each email address by a space, e.g.: joe@domain.tld mary@domain.tld
Nothing about expiration or 7 days, just a very cryptic note about "banner events".

y2ksw 12-03-2011 09:08 AM

Quote:

Originally Posted by viper357 (Post 2273611)
How do I do that? On my installation it sends an email on the day that the banner expires? Where do I set it to 1 week?

I've been looking into the code, and as far as I can see, it needs some revision ... on the other hand that's code from 3 years ago.

At this point, would you please suggest what kind of mailing options you would like to see, since I will touch it just that much :)

Videx 12-03-2011 01:28 PM

Quote:

Originally Posted by y2ksw (Post 2274275)
At this point, would you please suggest what kind of mailing options you would like to see, since I will touch it just that much :)

Thanks for asking.
  • Rephrase the adminCP to clearly state these are expiration emails (not "event" emails).
  • Include a variable for x days prior (but 7 is fine if you don't). Include in the admincp some text stating the hard coded 7 if that's what it is.
  • Include a link to the email text (so we don't have to go digging through Phrases to change it).
  • Include at least one variable in the email - the expiration date itself. Maybe also the name of the banner. e.g. "Hi again. Your banner for %BannerName% is expiring on %ExpireDate%."

viper357 12-03-2011 03:01 PM

Quote:

Originally Posted by y2ksw (Post 2274275)
At this point, would you please suggest what kind of mailing options you would like to see, since I will touch it just that much :)

Thank you. I would just like a simple reminder to be emailed to both me and the banner owner stating that it is about to expire, anywhere between 7 days and a month will be fine for me.:)
p.s. I am on vb 3.8.5

attroll 12-04-2011 08:55 AM

I have been using this plugin for a while now. I love it.
I have one thing that I have not been able to figure out yet.
I want the banners to display in all my forum header but I do not want it to display on my home page or any CMS page headers.

Is there an easy way to do this?

control1110 12-04-2011 04:18 PM

I can't seem to get this add on to display any ads at all. I have set up the code in the header1 ad location <!--@vbbanners:0@--> and also tried putting it in the template and no luck I have no ads showing

FannBlade 12-04-2011 04:34 PM

Quote:

Originally Posted by control1110 (Post 2274591)
I can't seem to get this add on to display any ads at all. I have set up the code in the header1 ad location <!--@vbbanners:0@--> and also tried putting it in the template and no luck I have no ads showing

Same problem here.

Videx 12-04-2011 05:01 PM

Always give links when reporting problems like this. And try to leave up at least a test banner until others can look at it.

Also please assure us a test banner - a simple .jpg without any banner code - appears correctly?

attroll 12-04-2011 05:27 PM

Quote:

Originally Posted by control1110 (Post 2274591)
I can't seem to get this add on to display any ads at all. I have set up the code in the header1 ad location <!--@vbbanners:0@--> and also tried putting it in the template and no luck I have no ads showing

Are you using a flash banner or a jpg graphic?

1. Is the banner ENABLED.
2. Check the position box. If it is set to Position 0 (horizontal) then you code should look something like this:
PHP Code:

<div align="right"><!--@vbbanners:0@--></div

3. Do you have the link to the image and does it display when you type that into an address area of the browser.
4. Put a check mark in track and see if the amount starts increasing.
5. Check the start and end dates. I always start mine the day before the current date, making it yesterdays date.

y2ksw 12-05-2011 08:25 AM

Quote:

Originally Posted by attroll (Post 2274525)
I have been using this plugin for a while now. I love it.
I have one thing that I have not been able to figure out yet.
I want the banners to display in all my forum header but I do not want it to display on my home page or any CMS page headers.

Is there an easy way to do this?

You may select one or more forums from the list.

y2ksw 12-05-2011 08:32 AM

Quote:

Originally Posted by attroll (Post 2274614)
Are you using a flash banner or a jpg graphic?

1. Is the banner ENABLED.
2. Check the position box. If it is set to Position 0 (horizontal) then you code should look something like this:
PHP Code:

<div align="right"><!--@vbbanners:0@--></div

3. Do you have the link to the image and does it display when you type that into an address area of the browser.
4. Put a check mark in track and see if the amount starts increasing.
5. Check the start and end dates. I always start mine the day before the current date, making it yesterdays date.

Also, triple check spelling. Allmost all problems about banners not showing up are spelling errors!

If the options placeholder is:
PHP Code:

<!--@vbbanners:%d@--> 

then:
PHP Code:

<!--@vbbanners:0@-->
<!--@
vbbanners:1@--> 

etc will work, but not:
PHP Code:

<!--@vbbanners:0d@-->
@
vbbanners:0


licensinglinks 12-05-2011 12:53 PM

How can I get a banner to display after the 1st post? I don't want it to display in the signature of the first post (one of the in-built options).

I just want it do display between the 1st and 2nd post.

Any idea?

Videx 12-05-2011 05:40 PM

Quote:

Originally Posted by licensinglinks (Post 2274872)
I don't want it to display in the signature of the first post (one of the in-built options). I just want it do display between the 1st and 2nd post.

Actually, the default vb4 style doesn't have any delineated "between post" area. It goes straight from the previous sig to the header on the next post. I suspect you're thinking of large border lines or something and those aren't there without a custom style. I dunno, maybe you could design banners with said lines that would make it look like it was more "between posts".

funinbc 12-07-2011 06:09 AM

can I use this mod for....

I want to make a picture a day of the best pictures posted. I also want to put a link back to the post where the image was taken.

is this the best mod to do this?

y2ksw 12-07-2011 10:11 AM

Quote:

Originally Posted by licensinglinks (Post 2274872)
How can I get a banner to display after the 1st post? I don't want it to display in the signature of the first post (one of the in-built options).

I just want it do display between the 1st and 2nd post.

Any idea?

This code may do it (postbit_legacy only), but it also needs some adapting to your needs ...

Please take in account I'm a coder, and questions about styles should not be posted here, as I'm unable to tell you the truth about them ;)

Above: {vb:raw template_hook.postbit_start}
PHP Code:

<vb:if condition="$post['islastshown']">
<
li id="lastpost_ad" class="postbitlegacy postbitim postcontainer old">
    <
div class="posthead">
            <
span class="postdate old">
                    <
span class="date">Avviso pubblicitario</span>
            </
span>
    </
div>
    <
div class="postdetails">
        <
div class="userinfo"></div>
        <
div class="postbody">
            <
div class="postrow">
                <
div class="content">
                    <
div id="lastpost_ad_message">
                        <
blockquote class="postcontent ">
                            <
div align="center"><br />@vbbanners:2@</div>
                        </
blockquote>
                    </
div>
                </
div>
            </
div>
            <
div class="cleardiv"></div>
        </
div>
    </
div>
    <
hr />
</
li>
</
vb:if> 

Below: {vb:raw template_hook.postbit_end}
PHP Code:

<vb:if condition="$post['isfirstshown']">
<
li id="firstpost_ad" class="postbitlegacy postbitim postcontainer old">
    <
div class="posthead">
            <
span class="postdate old">
                    <
span class="date">Avviso pubblicitario</span>
            </
span>
    </
div>
    <
div class="postdetails">
        <
div class="userinfo"></div>
        <
div class="postbody">
            <
div class="postrow">
                <
div class="content">
                    <
div id="firstpost_ad_message">
                        <
blockquote class="postcontent ">
                            <
div align="center"><br />@vbbanners:2@</div>
                        </
blockquote>
                    </
div>
                </
div>
            </
div>
            <
div class="cleardiv"></div>
        </
div>
    </
div>
    <
hr />
</
li>
</
vb:if> 


licensinglinks 12-07-2011 12:10 PM

Thanks for the help. I will try it.

licensinglinks 12-07-2011 08:35 PM

Cool - it worked fine. Thaks :)

Just a question about the one that appears after the last post:
Is there a way of only making that one appear if there's more that 3 posts? The problem is that if there's 2 posts, then you get a double ad which doesn't look good!

y2ksw 12-08-2011 08:26 AM

Quote:

Originally Posted by licensinglinks (Post 2275679)
Cool - it worked fine. Thaks :)

Just a question about the one that appears after the last post:
Is there a way of only making that one appear if there's more that 3 posts? The problem is that if there's 2 posts, then you get a double ad which doesn't look good!

There is no such function available.

licensinglinks 12-09-2011 07:30 PM

Quote:

Originally Posted by y2ksw (Post 2275822)
There is no such function available.

Thanks anyway - great hack:)

Scalemotorcars 12-09-2011 10:09 PM

Quote:

Originally Posted by y2ksw (Post 2227151)
It's an issue which seems to happen lately to more people ... it has to do with the div tag with no class or style attached and it seems as if Chrome does some magic with simple div tags. Please see here: https://vborg.vbsupport.ru/showpost....postcount=1398

:)

Ive got it working in everything but Chrome. I tried the div class fix but no luck. Cleared cache and still nothing. Any ideals?

Here's the page. It has the default ads up. http://www.scalemotorcars.com/forum/

molieman 12-11-2011 05:56 PM

I would like to place two ads in the "above navbar" area, such as Position 0 and 2, one left the other right. Is this possible and if so how?

Thanks,

gogogadgetbiker 12-12-2011 12:23 AM

Any chance someone could give me a step-by-step on how to install this? I just got into this about 5 days ago and I simply don't have a clue what to do.

Also if anyone is interested in being my "Go To Guy" when it comes to vBulletin I'll give you lifetime subscriber status on my forum www.choppedbaggers.com

Videx 12-12-2011 02:10 AM

<a href="https://vborg.vbsupport.ru/showthread.php?t=201864" target="_blank">DJ's "How To Install Modifications (Mods/Hacks)" for Beginners</a>

DEGE 12-12-2011 11:42 AM

I searched inside this thread but couldn't find any clue for this...

How can I create a "Text only" banner (not Google related) where I can show some formated text (let's say a colored table) with some words, but keep it tracked and linked in the RBS?

I've tried adding the simple text, but it does not make hyperlink. Tried also adding html code hyperlink in the text area and works, but keeps no track.

Can you help me?

DEGE 12-12-2011 01:31 PM

I figured out the code

replaced:
HTML Code:

$html = $rs['text'];
with:
HTML Code:

sprintf('<a rel="nofollow" href="%s" target="%s">"%s"</a>', $url, $rbs_target, $rs['text']);
There was no other way to get it working since the "text" option of this mod relayed on Google javascript code and didn't keep track of text banners ever.

Thanks anyway

molieman 12-13-2011 11:07 AM

Quote:

Originally Posted by molieman (Post 2276812)
I would like to place two ads in the "above navbar" area, such as Position 0 and 2, one left the other right. Is this possible and if so how?
Thanks,

CORRECTION..... DUHHHHHHhhhh ....

I meant "BELOW" navbar

Please help :) :) :)

gogogadgetbiker 12-13-2011 04:15 PM

I cannot seem to get the Forum selection tool to work. If I understand it right, a selected forum will be blue and an unselected forum will be white.

If I leave all forums in the Forum selection section white, the enabled banners show up on every forum "like they should."

But if I select them all "blue" except one forum "white" the banner does not display in any forum.

Any ideas?

gogogadgetbiker 12-13-2011 04:50 PM

I figured it out, I had to make seperate banners. 1 for the home page, and 1 for everything else...

Scalemotorcars 12-15-2011 12:44 AM

Still no luck on Chrome. Anyone???

Videx 12-15-2011 01:19 AM

Quote:

Originally Posted by Scalemotorcars (Post 2277886)
Still no luck on Chrome. Anyone???

No clue. But FWIW I used to notice the google ads not showing up in FF for me, and earlier today I was working near the footer adspace in Chrome and I noticed the same thing. I would have to refresh the page several times until one of my local banners came up.

So I don't have an answer, in fact I have worse news for you - I just tried your link in Firefox and the ad didn't show there either.

A possible clue though in IE. An ad shows, but it's not changing. It's stuck on a televisionfanatic.com ad. So maybe there's something wrong with the ad code.

Scalemotorcars 12-17-2011 01:17 AM

It might be the default code. Ill try some of my own ads and see whats up. Thanks for checking.

CSS59 12-20-2011 04:01 AM

is this banner ad system server intense?

CSS59 12-20-2011 05:09 AM

I installed this and for the life of me I can't get any banners to show up.
inserted the code in the Advertising spot
I checked settings ->options and Advertising and all looks good but banners won't show up. I see there are two default google ads. Those wont even show up

I have this code in but nothing shows up
<!--@vbbanners:0@-->

y2ksw 12-20-2011 08:04 AM

Quote:

Originally Posted by molieman (Post 2276812)
I would like to place two ads in the "above navbar" area, such as Position 0 and 2, one left the other right. Is this possible and if so how?

Thanks,

Repeat two times the same placehoder in a sequence and make sure you got at least 2 banners in the database. No 2 locations needed to show 2 banners on a single page.

y2ksw 12-20-2011 08:08 AM

Quote:

Originally Posted by DEGE (Post 2277041)
I searched inside this thread but couldn't find any clue for this...

How can I create a "Text only" banner (not Google related) where I can show some formated text (let's say a colored table) with some words, but keep it tracked and linked in the RBS?

I've tried adding the simple text, but it does not make hyperlink. Tried also adding html code hyperlink in the text area and works, but keeps no track.

Can you help me?

You need to format your text banner with valid HTML in order to to enable manually click tracking. The landing page must be defined as well and click tracking enabled.

XMas Bricolage: In order to see how it works, create an image banner with click tracking check its link and try to reproduce the same effect for your text banner.

I have also shown how to do this in this thread but at this point I cant' remember the post ID.

y2ksw 12-20-2011 08:10 AM

Quote:

Originally Posted by CSS59 (Post 2279285)
is this banner ad system server intense?

Very light weight.

FannBlade 12-20-2011 02:39 PM

Where do you have the code placed?
Try unchecking flash in setup.

I'm using <!--@vbbanners:2@--> in my AD locations I want it to show up. In the text box I use HTML to pull up ad's you might try a Adsense code in the text box.

It is kinda confusing at first but works really well when setup.

CSS59 12-21-2011 03:52 AM

got it to work if I put it in the table directly but won't in Advertisements blocks

can we get a banner index users can browse? Similar tot his
http://honda-tech.com/vendor_directory.php


All times are GMT. The time now is 02:05 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.03734 seconds
  • Memory Usage 1,889KB
  • 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
  • (2)bbcode_html_printable
  • (9)bbcode_php_printable
  • (21)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