vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   rotate banner code help (https://vborg.vbsupport.ru/showthread.php?t=175606)

logicuk 04-09-2008 09:02 AM

rotate banner code help
 
im using this banner rotate code but it dont seem to work with .swf's any ideas?

PHP Code:

$random_number rand(15);

$random_banner[1] = '<a href="http://www.site.com/" target="_blank"><img src="banners/sensi.gif" alt="" border="0" /></a>';
$random_banner[2] = '<a href="http://www.site2.com" target="_blank"><img src="banners/dna.gif" alt="" border="0" /></a>';
$random_banner[3] = '<a href="http://www.site3.com" target="_blank"><img src="banners/kiwi.gif" alt="" border="0" /></a>';
$random_banner[4] = '<a href="http://www.site4.com" target="_blank"><img src="banners/soft1.gif" alt="" border="0" /></a>';
$random_banner[5] = '<a href="http://www.site5.com" target="_blank"><img src="banners/banner.gif" alt="" border="0" /></a>'


Dismounted 04-09-2008 09:59 AM

Exactly what code are you using? Where are you hooking the plugin? Where are you putting the variable (which template)?

logicuk 04-09-2008 04:21 PM

im using this code mate

http://www.vbulletin.com/forum/showthread.php?t=170826

Dismounted 04-10-2008 05:32 AM

But what code are YOU putting into the box?

logicuk 04-10-2008 07:07 AM

$random_banner[5] = '<a href="http://www.site5.com" target="_blank"><img src="banners/banner.swf" alt="" border="0" /></a>';

that code for the sfw banner

Dismounted 04-10-2008 10:50 AM

Flash banners cannot be inserted using the usual image code. You need to use the Flash embed code instead.

logicuk 04-10-2008 04:17 PM

can you give me the working code thanks

Lynne 04-10-2008 04:33 PM

googlind "html embed flash" comes up with many links including this one: http://www.w3schools.com/flash/flash_inhtml.asp


All times are GMT. The time now is 10:46 PM.

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.01019 seconds
  • Memory Usage 1,730KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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