vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   VB Banner Control 1.2 (https://vborg.vbsupport.ru/showthread.php?t=41154)

Marty McFly 08-30-2002 05:40 PM

is there any way to put certain banners on certain sections of the forum? for instance, if i had a section about computers could i have a hosting company banner on that section only??

thanks.

KarateKid 08-30-2002 09:27 PM

yes it should work,

try it out,

assign the banner you want a category and so, it will only be shown above this category

Marty McFly 08-30-2002 11:35 PM

Quote:

Originally posted by KarateKid
yes it should work,

try it out,

assign the banner you want a category and so, it will only be shown above this category

how do i assign it to a category? i dont see that option in the CP.

KarateKid 08-31-2002 07:45 AM

Hi,

there is no possibility for assign banners with the CP, you have to do bei Step 5 from the installationinstructions. Then it's a bit clearer ;)

KK

Marty McFly 08-31-2002 07:41 PM

ok i did step 5 and dont see anything new in the CP. what did that step do?

KarateKid 08-31-2002 09:56 PM

*lol*

you won't see anything more in your acp. Now you only have the possibility to put a bannerid into your sqldb into the specified field, which will show then the particular banner above the defined category ;)

springbok 09-15-2002 09:23 PM

Hi,

Please be warned that I have never coded a line of PHP before tonight, but have come up with a solution to the rotation for VB Banner Control 1.2. (Through much hacking of other people code and testing)

I have installed and tested both the Ad Management and VB Banner Control on my site but found the VB Banner Control to be the better (for my needs), but lacking a rotation facility. So I have removed the Ad Management one completely, installed VB Banner Control 1.2 from scratch again and made the following changes to get rotation working.

I do not know whether I am allowed to post this modification, if not please feel free to delete this post immediately.

I can confirm that I have been testing this for the past 4 hours and its working fine but - USE THIS AT YOUR OWN RISK - I cannot be held responsible if anything goes wrong. ;)

1. So, do a complete installation of VB Banner Control 1.2 (I am using VBulletin 2.2.7 and its working great.).
2. Open /global.php
3. Find:
PHP Code:

  if ($getforum['styleoverride']==or $bbuserinfo['styleid']<2) {
    
$codestyleid=$getforum['styleid'];
  }


Below that add:

PHP Code:

// Banner Management
$bannerad=$DB_site->query_first("SELECT * FROM banner ORDER BY RAND()");

$bannerid=$bannerad['id'];
$bannerheight=$bannerad['height'];
$bannerwidth=$bannerad['width'];
$banner_text=$bannerad['banner_text']; 

No further file modifications required. So save or upload this file.

4. Normally with the VB Banner Control hack you would go through the Control Panel and use the getcode link and copy and paste that text into wherever you would want the banner to appear. Normally the Header template. If you are using this tweak you will not have to do this again. Just replace it with the following:


<a target='blank' href='http://www.yourdomain.com/click.php?bannerid=$bannerid'><img border='0' width='$bannerwidth' heigth='$bannerheight' alt='$banner_text' src='http://www.yourdomain.com/view.php?bannerid=$bannerid'></a>


Change the www.yourdomain.com with your sites correct domain name.

And that's it. Now you will have a fully operational banner rotation with all the banners you have in the banners table.

Marty McFly 09-25-2002 12:49 PM

springbok - i did your rotation hack and my banners just disappeared. is there anything special i need to do after i put in the rotation code in the templates?

springbok 09-25-2002 05:46 PM

Which template did you put the

<a target='blank' href='http://www.yourdomain.com/click.php?bannerid=$bannerid'><img border='0' width='$bannerwidth' heigth='$bannerheight' alt='$banner_text' src='http://www.yourdomain.com/view.php?bannerid=$bannerid'></a>

link into? Please confirm that you did the mai hack install as per normal and then made the changes I have suggested.

LOD-squa 09-25-2002 06:22 PM

so this hack shows diff banners doing it auto and show how the clicks?


All times are GMT. The time now is 11:49 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.01191 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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