Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 11-05-2004, 04:42 AM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [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!
Reply With Quote
  #2  
Old 11-05-2004, 06:37 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use phpAdsNew for this purpose, which is a quite powerful solution IMHO.
Reply With Quote
  #3  
Old 11-05-2004, 12:46 PM
Johnny's Avatar
Johnny Johnny is offline
 
Join Date: Jun 2002
Posts: 290
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well their are random banner hacks made but they dont track how many times they were clicked.
Reply With Quote
  #4  
Old 11-05-2004, 03:11 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it vBulletin integrated? Or can it be? I really don't care about the clicks really, just random banners.
Reply With Quote
  #5  
Old 11-08-2004, 01:07 PM
Martin CX Martin CX is offline
 
Join Date: Nov 2001
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #6  
Old 11-10-2004, 03:26 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot I'll give it a try.
Reply With Quote
  #7  
Old 11-10-2004, 03:34 PM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 11-10-2004, 03:36 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Didn't know. I'm still a noobie at vB but I'm learning
Reply With Quote
  #9  
Old 11-20-2004, 11:25 PM
EH-Jay's Avatar
EH-Jay EH-Jay is offline
 
Join Date: Oct 2004
Location: Canada
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 11-10-2006, 12:14 AM
imported_infitech's Avatar
imported_infitech imported_infitech is offline
 
Join Date: Apr 2004
Location: Queens, NY
Posts: 247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05323 seconds
  • Memory Usage 2,244KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete