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)

sagr 10-10-2011 07:36 PM

sorry i editing my post above..

mfbmike 10-11-2011 12:01 AM

Sorry, kinda of a newb, lol, but let me get this straight. I can pretty much have a banner on different forums right?

So like on my site http://www.digitalsportscene.com/forum/forum.php , I could have a banner for the NBA section, MLB section, NFL section, NHL section, etc? Or am I completely reading this wrong? lol

Sforums 10-11-2011 02:39 AM

Works on 4.1.0 pl2 perfect but nowhere to be seen on 4.1.6.

y2ksw 10-11-2011 05:09 PM

Quote:

Originally Posted by Sforums (Post 2255780)
Works on 4.1.0 pl2 perfect but nowhere to be seen on 4.1.6.

Maybe because you reverted the templates? ;)

y2ksw 10-11-2011 05:10 PM

Quote:

Originally Posted by mfbmike (Post 2255753)
Sorry, kinda of a newb, lol, but let me get this straight. I can pretty much have a banner on different forums right?

So like on my site http://www.digitalsportscene.com/forum/forum.php , I could have a banner for the NBA section, MLB section, NFL section, NHL section, etc? Or am I completely reading this wrong? lol

Perfectly right :)

y2ksw 10-11-2011 05:12 PM

Quote:

Originally Posted by sagr (Post 2255436)
Hi,
I'm so sorry , my problem with your hack it's not compatible with validator.w3.org and show me more than 7 errors, 10 warnings .. What is the problem with that?

I don't know. Probably nothing. I depends also on the HTML you have in the "Text" field.

FTDave 10-14-2011 07:16 PM

Working well so far. Thank you for creating the hack..

Videx 10-14-2011 08:50 PM

Quote:

Originally Posted by Apolo. (Post 2252492)
Hmmm... it looks like ad_showthread_firstpost doesn't exist on vBulletin 4.1.6 any longer. That's the version I've been working on today and that's why I didn't mention it in my reply.

I finally upgraded to 417 and I'm happy to report my ad_showthread_firstpost is still there and working, showing a banner after the first post on each page. Whew!

Sforums 10-15-2011 09:44 AM

guess that is why it doesn't work for me on 4.1.6.

licensinglinks 10-16-2011 06:40 PM

Trying to install this mod, but when I try to import the xml file I get:

Quote:

Please upload the files that came with the product before installing or upgrading!

Missing files:
I've uploaded everything I should have to the correct area. What am I supposed to do now?

y2ksw 10-16-2011 09:01 PM

Quote:

Originally Posted by licensinglinks (Post 2257870)
Trying to install this mod, but when I try to import the xml file I get:



I've uploaded everything I should have to the correct area. What am I supposed to do now?

Then, most probably your eb server can't access the files. Please check the access rights ;)

sub_ubi 10-17-2011 07:15 AM

I am using this as a logo rotator.

I had trouble getting ad_header_logo to do anything, so I gave up on it and am instead using the header template. I replaced

Code:

        <vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div></vb:if>
with

Code:

        <!--@vbbanners:0@-->
All done!

y2ksw 10-17-2011 10:14 AM

Quote:

Originally Posted by sub_ubi (Post 2258074)
I am using this as a logo rotator.

I had trouble getting ad_header_logo to do anything, so I gave up on it and am instead using the header template. I replaced

Code:

    <vb:if condition="$stylevar['titleimage']"><div><a name="top" href="{vb:link forumhome}" class="logo-image"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div></vb:if>
with

Code:

    <!--@vbbanners:0@-->
All done!

That was maybe a little too short-cut :)

This maybe works better:
Code:

<vb:if  condition="$stylevar['titleimage']"><div><a name="top"  href="{vb:link forumhome}" class="logo-image"><!--@vbbanners:0@--></a></div></vb:if>

ofir24 10-22-2011 12:59 PM

i can see the panels: "Rotating Banner System", "baner system options". i did everything proprely and i see no ads at all.
i have vb 4.1.7, i saw in the previous page someone says it's work on vb 4.1.7.

y2ksw 10-22-2011 06:17 PM

Quote:

Originally Posted by ofir24 (Post 2260135)
i can see the panels: "Rotating Banner System", "baner system options". i did everything proprely and i see no ads at all.
i have vb 4.1.7, i saw in the previous page someone says it's work on vb 4.1.7.

You will have to make also template changes. This product isn't using default ad locations. And yes, it works from 3.6.5 to 4.1.7 :)

ofir24 10-22-2011 06:36 PM

Quote:

Originally Posted by y2ksw (Post 2260247)
You will have to make also template changes. This product isn't using default ad locations. And yes, it works from 3.6.5 to 4.1.7 :)


edit:
look at the next post, 2 posts below that one.

funinbc 10-22-2011 07:30 PM

is there a way to have say 80 banners in a folder and point to that folder and have the banners rotate from there?

ofir24 10-22-2011 10:04 PM

i check the software again, i didn't notice little options works, cause i try some options and didn't work, therefore i thought it didn't work.
i try: "ad thread last post content" look for ads on the thread, nothing.
i try: "ad thread first post content"- the same.
ad forum below threadlist- the same.

y2ksw 10-23-2011 09:27 AM

Quote:

Originally Posted by funinbc (Post 2260279)
is there a way to have say 80 banners in a folder and point to that folder and have the banners rotate from there?

No. You may have N banners in the database and one "location" in the templates you have chosen, and all will rotate in this location.

There is no such thing as picking images from the file system at random intervals, although it is quite a nice idea :)

y2ksw 10-23-2011 09:31 AM

Quote:

Originally Posted by ofir24 (Post 2260320)
i check the software again, i didn't notice little options works, cause i try some options and didn't work, therefore i thought it didn't work.
i try: "ad thread last post content" look for ads on the thread, nothing.
i try: "ad thread first post content"- the same.
ad forum below threadlist- the same.

Please try simply the example shown in the movie in the very first post (How-to create my first banner). It gives you a good insight how things work and from where to start.

Besides the included help file, this thread is full of practical examples ;)

ofir24 10-23-2011 10:43 AM

i didn't say it's not working, cause it's working, but some option doesn't work, example:
i try: "ad thread last post content" look for ads on the thread, nothing.

metalguy639 10-24-2011 12:31 AM

1 Attachment(s)
Here is a simple way to add your banners in a CMS widget.

You will need to create a PHP Execution by doing the following:

Step 1:

1. In the admincp go to vBulletin CMS>Widgets
2. Click on "Create New Widget" at the bottom.
3. Choose "PHP Direct Execution" in the Widget Type drop down at the top.
4. Give your widget a title - do not make it too long as your box will be whatever size you have in your CMS.
5. Now click the "Save" button.

Step 2:

1. Go to vBulletin CMS>Widgets and select the widget you just made.
2. Click on the "Configure" link all the way to the right.
3. Delete all the test inside the box when it pops up.
4. Place this code in the box:

Code:

$templater = vB_Template::create('banner_sidebar');
$output = $templater->render();

5. Now click the "Save" button.

Step 3:

1. Go to Styles & Templates>Style Manager click the drop down box on the right side and choose "Add New Template".
2. In the "Title" box put "banner_sidebar" without the quotes.
3. Now in the large box below place your code for your banners like you would any other template. For instance I put this:

Code:

<div align="center">@vbbanners:4@</div><br />
<div align="center">@vbbanners:5@</div><br />
<div align="center">@vbbanners:6@</div><br />
<div align="center">@vbbanners:7@</div><br />
<div align="center">@vbbanners:8@</div><br />
<div align="center">@vbbanners:9@</div>

I'm using vBSEO so that is why it may look different from yours.

4. Now click the "Save" button.

Step 4:

1. Enter your banner info using the positions that you put code to in your new template and save the banners.

metalguy639 10-24-2011 12:33 AM

Quote:

Originally Posted by wampforum (Post 2164049)
Ok I'm stumped!! I have been running this mod fine for months.
But now I have a problem. I currently run a single ad placement in the header just below the log in as well as the 2 default VB ads under navbar and footer.
What I wish to do is place a rotational ad into a cms widget. I can get the widget to work fine when using:
<!--@vbbanners:0@--> But adding banners to another list and using that instead won't work.
It seems I have the nth placeholder in options set to <!--@vbbanners:0@--> so it wont show anything else I assume?
Reading this thread it seems that should be <!--@vbbanners:%@--> instead but changing that makes the ads in the header disappear.
So It seems I can only show ads in <!--@vbbanners:0@--> with that same code as the nth placeholder.
What am I doing wrong? I use the <!--@vbbanners:0@--> code in the ad location template

Help?!!

Quote:

Originally Posted by Big-Pete (Post 2156926)
I can't get this to show up in a CMS widget, Do i need to use a static html widget? and do i just put @vbbanners:%d@ in it??

I have vbseo installed, I've changed the place holder as per the PDF but still can't get it to work.

Quote:

Originally Posted by vikris (Post 2020184)
One of the greatest addons!!! :) I have several questions though:

1. Will it be in the future more than 10 positions?

2. Some of the ads are displaying also in the forums (specifically header and footer) how to remove that? I like the ads to be displayed only on CMS page.

3. Maybe this question is out of the thread, but I have to ask: Is there a way to setup a widget on the main CMS to show friendly sites with small graphic and link to them?

Thanks a lot again!

Regards,

vikris

Quote:

Originally Posted by dweber (Post 2009540)
I would like to add a place holder into a static HTML Widget box on the "Front Page" but am a newbie.

Could anyone give me a sample line of HTML code to insert the placeholder (@vbanners@) into?

Thanks in advance.

See this post: https://vborg.vbsupport.ru/showpost....postcount=1542

y2ksw 10-24-2011 01:12 PM

Quote:

Originally Posted by ofir24 (Post 2260483)
i didn't say it's not working, cause it's working, but some option doesn't work, example:
i try: "ad thread last post content" look for ads on the thread, nothing.

Some options need additional work to do, which however have nothing to do with my plugin.

For example, the inbuilt ad locations of vbulletin require you to define additional rules from within Advertising, else they will not show at all. In these definitions you would use then the RBS placeholders instead of other HTML and everything works out just fine :)

y2ksw 10-24-2011 01:14 PM

Quote:

Originally Posted by metalguy639 (Post 2260748)
Here is a simple way to add your banners in a CMS widget. (...)

Very nice! :up:

djbaxter 10-26-2011 08:03 PM

I need to exclude the banners from a specific mobile style. What's the simplest way to do this?

y2ksw 10-27-2011 07:42 AM

Quote:

Originally Posted by djbaxter (Post 2261820)
I need to exclude the banners from a specific mobile style. What's the simplest way to do this?

If your banner locations are defined in the Master style, probably it will need moving them into the single styles.

I imagine however, you are using the advertising ... then maybe selecting the style will help.

djbaxter 10-27-2011 03:06 PM

Quote:

Originally Posted by y2ksw (Post 2261989)
If your banner locations are defined in the Master style, probably it will need moving them into the single styles.

I imagine however, you are using the advertising ... then maybe selecting the style will help.

Selecting the style isn't helpful because you can only select one. I only want to EXCLUDE one.

But this worked. I edited the RBS Banner Insertion plugin as follows:

I inserted

Code:

/** don't display banners for Mobile 2 style **/
if (STYLEID!=134) {

at the top of the "Banner Insertion" plugin and

Code:

}
at the very bottom.

May I suggest that an option to exclude certain styles might be added in a new version?

y2ksw 10-30-2011 11:17 AM

Quote:

Originally Posted by djbaxter (Post 2262059)
May I suggest that an option to exclude certain styles might be added in a new version?

I don't think so ... :)

I would have made for each style an ad, instead, if I really had to, or rather not used the ad system at all and modified the relative templates in a way that I could do without it. As a matter of fact, using the ad system slows down the forums quite a bit ... it is useful and simple, but not a long term solution for heavily loaded systems ;)

y2ksw 10-31-2011 04:54 PM

@all

I soon will review the code and add a few features. Is there anything you may wish to add?

DownNout87 10-31-2011 04:59 PM

Can anyone help me display the banners? I have installed the program but can't figure out what to do from here..

It is enabled

Position 0

URL: I have added the URL of the banner here

Image / Flash: I have left this blank

Click tracking is enabled

Any help would be GREATLY appreciated..

DownNout87 10-31-2011 05:00 PM

Also, I don't know what position 0-9 actually mean or where the banner would be displayed...or do I need to somehow set these parameters?

Antonio Pereira 10-31-2011 05:16 PM

Today i have another sponsor that give-me a Flash and the flash dont run in this plugin.

This is the secound time, can you check please.

I send an PM with more detail informations about the Banner SWF/HTML Code.

If you need FLA please say, this is a normal SWF with actionscript 1.0

Videx 10-31-2011 06:14 PM

Quote:

Originally Posted by y2ksw (Post 2263202)
Is there anything you may wish to add?

Quote:

Mail addresses: Please list here one or more mail addresses to inform about banner events. Separate each email address by a space...
I can't recall now what sort of "banner events" trigger emails. But if one of them is expiration, an option to send a reminder x days before expiration would be nice. I can't think of any other "banner event" anyone would need an email for.

As it is now I have to maintain a separate "Sponsors" calendar and use it to send me a reminder a few days beforehand.

TIA

DownNout87 11-01-2011 03:01 AM

Still looking for help.. :)

Videx 11-03-2011 02:26 PM

Quote:

Originally Posted by DownNout87 (Post 2264080)
Asked the developer for help and didn't get any. If any member could please help me, it would be greatly appreciated..

y2ksw has got to be one of the more involved developers in vb right now. I've sort of stopped answering questions here because he's so quick to jump in with answers himself. Just wait until you try some other mods where they never answer (e.g. anything from Valter).

In your case the first thing I would ask is have you tried placing your ad using the default vb system first? When you get that working, then try swapping the placeholder for it.

y2ksw 11-03-2011 02:34 PM

I'm currently very busy and I have no quick solutions at hand. I would need to see myself but for this I have no time.

y2ksw 11-03-2011 02:36 PM

Quote:

Originally Posted by Antonio Pereira (Post 2263216)
Today i have another sponsor that give-me a Flash and the flash dont run in this plugin.

This is the secound time, can you check please.

I send an PM with more detail informations about the Banner SWF/HTML Code.

If you need FLA please say, this is a normal SWF with actionscript 1.0

I know that not literally all flash files run. But in this case you just paste your object code into the text field and handle the whole as if it was normal HTML.

y2ksw 11-03-2011 02:38 PM

Quote:

Originally Posted by DownNout87 (Post 2263206)
Can anyone help me display the banners? I have installed the program but can't figure out what to do from here..

It is enabled

Position 0

URL: I have added the URL of the banner here

Image / Flash: I have left this blank

Click tracking is enabled

Any help would be GREATLY appreciated..

Of course you will need to insert an image URL ... else, people would click on the "sheet" with noting on it.

y2ksw 11-03-2011 02:46 PM

1 Attachment(s)
Quote:

Originally Posted by Antonio Pereira (Post 2263216)
Today i have another sponsor that give-me a Flash and the flash dont run in this plugin.

This is the secound time, can you check please.

I send an PM with more detail informations about the Banner SWF/HTML Code.

If you need FLA please say, this is a normal SWF with actionscript 1.0

Quote:

Originally Posted by y2ksw (Post 2264089)
I know that not literally all flash files run. But in this case you just paste your object code into the text field and handle the whole as if it was normal HTML.

I tried it on my site and it works:

Attachment 134206

The red thingy is your banner.

Attachment 134207

And these are the settings. So if you have a size, you will need to tell it ... the wrapper does no guesswork ;)


All times are GMT. The time now is 09:28 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.02964 seconds
  • Memory Usage 1,860KB
  • 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
  • (9)bbcode_code_printable
  • (27)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