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)

y2ksw 08-29-2008 06:43 PM

Quote:

Originally Posted by Volvoholic (Post 1610043)
Hi, Sounds like a nice mod.

I have been installing and uninstalling a few banner mods with varying level of success.

Before I install, can this mod handle shockwave .swf files?

Thanks in advance.
Volvoholic

It can handle anything you can express in HTML, e.g.

HTML Code:

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="1024" HEIGHT="788" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">
<PARAM NAME=movie VALUE="cvs01.swf">
<PARAM NAME=play VALUE=true>
<PARAM NAME=loop VALUE=false>
<PARAM NAME=quality VALUE=low>
<EMBED SRC="cvs01.swf" WIDTH=1024 HEIGHT=788 quality=low loop=false TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>

will load the cvs01.swf file at the banner placeholder when inserted in the Text field.

Volvoholic 08-30-2008 04:34 AM

Volvoholic clicks install

Very powerful mod.

Took me a while to find the Banner Rotator manager (its at the bottom of the menu). HTML coding of the body was easy (some HTML required) but if you have coded Google adsense in your website before or done basic web design, it is a breeze.

For the benfit of other newbies like myself.
I Added <center></center> to make the ad centered by editing the header template (Styles & Templates > Style Manager > Select Edit Templates from dropdown menu > find "header" template > add the placeholder @vbbanners@ as shown in the online guide "snapshots".

Question

1. Which template do I edit to place an ad below the Nav Bar? I had a look in the Navbar template. I just don't have the knowlege to be sure if its tht right template and where in the template to place the placeholder.

2. Is there a way to display banners in the Forum Home and specific forums? (Ok - my bad, I read a few posts above and created two banner id's one for Forum Home and one for specific forum)

In the meantime, thank you Y2KSW for this mod. I LIKE IT !!!!

Volvoholic

Videx 08-30-2008 04:52 AM

Quote:

Originally Posted by Volvoholic (Post 1610394)
Which template do I edit to place an ad below the Nav Bar? I had a look in the Navbar template. I just don't have the knowlege to be sure if its tht right template and where in the template to place the placeholder.

Join the club. If the author's earlier answer to me is any indication, don't expect him to tell you (it's beyond the scope of this mod).

My last banner rotator does have insertion instructions, so I figure I can dig those out and use them. But if you're thinking of using the same trick, be warned - that author too wrote like we're already supposed to be familiar with template editing.

What I really can't figure out - doesn't 3.7 have hooks in all the common places already? If so, why do we have to manually edit any templates? I mean, as you follow the instructions I just mentioned, you'll be inserting right smack next to existing hooks. Unless I'm missing something.

Hint: In navbar, look for $ad_location. And, presumably, anywhere you want to put an ad in any template you could do the same.?

y2ksw 08-30-2008 08:02 AM

Search for:
$navbar

Add this below:
<div align="center">@vbbanners@</div><br />

:)

y2ksw 08-30-2008 08:10 AM

Quote:

Originally Posted by Videx (Post 1610402)
Join the club. If the author's earlier answer to me is any indication, don't expect him to tell you (it's beyond the scope of this mod).

My last banner rotator does have insertion instructions, so I figure I can dig those out and use them. But if you're thinking of using the same trick, be warned - that author too wrote like we're already supposed to be familiar with template editing.

What I really can't figure out - doesn't 3.7 have hooks in all the common places already? If so, why do we have to manually edit any templates? I mean, as you follow the instructions I just mentioned, you'll be inserting right smack next to existing hooks. Unless I'm missing something.

Hint: In navbar, look for $ad_location. And, presumably, anywhere you want to put an ad in any template you could do the same.?

vBulletin attempts to give a hand placing ads, but currently you can fill only a handful of places (style hooks), and by no mean everywhere. Also you need to know how those places are called, and your code needs to be extended each time Jelsoft decides to add a hook somewhere.

Furthermore, you can't use a specifically coded plugin for style hooks in older vbulletin versions. This one (along with other banner systems) runs on 3.6.5 to 3.7.x boards, and does not require a specific style layout.

shotkey 08-31-2008 04:42 AM

Nice job - Finally got this installed and working. What would make this a really good mod would be the ability to display the banners in the ACP like this banner rotator mod does:

https://vborg.vbsupport.ru/showthrea...ghlight=banner

midwestce 08-31-2008 08:27 AM

Say I only want to have one banner on the page, but I have 3 or 4 separate banners that I want to rotate on that location, how do I do that? I don't see any settings within the admin area about rotating, etc. Just how many shows before it stops showing. I'll keep looking, but any responses or help is greatly appreciated!

Thanks!

Videx 08-31-2008 02:29 PM

Quote:

Originally Posted by midwestce (Post 1611033)
Say I only want to have one banner on the page, but I have 3 or 4 separate banners that I want to rotate on that location, how do I do that? I don't see any settings within the admin area about rotating, etc.

This mod rotates all your banners by default. Set up 5 banners, all 5 of them rotate.

y2ksw 09-01-2008 06:05 AM

Quote:

Originally Posted by shotkey (Post 1610974)
Nice job - Finally got this installed and working. What would make this a really good mod would be the ability to display the banners in the ACP like this banner rotator mod does:

https://vborg.vbsupport.ru/showthrea...ghlight=banner

It has worked out over time, that viewing the banner in-place creates more problems than it solves. I will however think about a link and popup window for one of the next releases.

rcull 09-01-2008 04:04 PM

I am just installing this program and while I am working on it I thought I would make a comment while in progress.

I am failing to see a good system for navigating banners. It actually took a bit to realize I could navigate saved banners with the arrows. For whatever reason they didn't seem to work in the proper manner at first.

The point is, I think it would be nice if, after clicking on "Manage Banners" a list of banners would appear that linked to the edit banner pages.:up:

Then, if I am on the right track, it would be nice to be able to change the order that the ads are displayed in, :) because I am finding that I am building several banners for one advertiser in a row then moving to the next advertiser and fear they may not be a random display.

I realize this system is currently developed for VBulletin, but I would like to use it on other pages too. It may be nice to have a selection in "Forums" which could be used for the banner to respond to. Maybe a tutorial on how to call the script from another page.:)

It would also be nice to know how to insert the tag so that only certain usergroups get the banner.

<if condition="is_member_of($bbuserinfo, 1,2,3,4,6,8,9,10)">
<div> @vbbanners@ </div>
</if>


All times are GMT. The time now is 12:37 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.04475 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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