vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [Req]: Random Banner Hack (https://vborg.vbsupport.ru/showthread.php?t=71374)

EH-Jay 11-05-2004 04:42 AM

[Req]: Random Banner Hack
 
I'm just looking for a random banner hack to show random banners somewhere on the page and it has to work with vb 3.x.x and even maybe show the clicks a banner has had.

I searched the site and couldn't find exactly what I was looking for so I came here to request it.

Hopefully something is out there!

Thanks!

Andreas 11-05-2004 06:37 AM

I use phpAdsNew for this purpose, which is a quite powerful solution IMHO.

Johnny 11-05-2004 12:46 PM

well their are random banner hacks made but they dont track how many times they were clicked.

EH-Jay 11-05-2004 03:11 PM

Is it vBulletin integrated? Or can it be? I really don't care about the clicks really, just random banners.

Martin CX 11-08-2004 01:07 PM

A very easy way of creating rotating banners is by adding the following line in your "phpinclude_start" template (replace X with the number of banners you are rotating)
Code:

$bannerrand = rand(1, X);
and then use the number generated in your template whereever you want the banner, for instance in the "header" template. Example; rotating three banners (X=3 in the code above):
Code:

<if condition="$bannerrand == '1'">
<a href="Banner 1 hyperlink"><img src="Banner 1 Image URL" /></a>
<else />
<if condition="$bannerrand == '2'">
<a href="Banner 2 hyperlink"><img src="Banner 2 Image URL" /></a>
<else />
<a href="Banner 3 hyperlink"><img src="Banner 3 Image URL" /></a>
</if>


EH-Jay 11-10-2004 03:26 PM

Thanks alot I'll give it a try.

Colin F 11-10-2004 03:34 PM

Quote:

Originally Posted by EH-Jay
Is it vBulletin integrated? Or can it be? I really don't care about the clicks really, just random banners.

There's nothing to integrate into vBulletin...

You get code that you can easily add to any of your vBulletin templates.

EH-Jay 11-10-2004 03:36 PM

Didn't know. I'm still a noobie at vB but I'm learning ;)

EH-Jay 11-20-2004 11:25 PM

It was working then it died. Why is that? Now all 3 images are loading at the same time, not 1 after the other. Any help?

imported_infitech 11-10-2006 12:14 AM

phpinclude_start" template?

Quote:

Originally Posted by Andreas
I use phpAdsNew for this purpose, which is a quite powerful solution IMHO.

the ads dont siplay on my forums.... i get something saying [ad]


All times are GMT. The time now is 02:13 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.01052 seconds
  • Memory Usage 1,733KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete