1
cblack
PHP Script within block not working
  • 2006/8/11 17:30

  • cblack

  • Just popping in

  • Posts: 4

  • Since: 2006/8/11


I am trying to add a small php script that will load a new flash file every time the page is refreshed.

The script works perfectly on its own
http://www.wsaextreme.com/video/video_list.php

but will not work when it is added to a block.

I have selected php script from the drop down menu

But the block simply does not appear on the site.

http://www.wsaextreme.com

Below is the simple script being used.
I know it should be easy but I just can't figure it out.

HELP!!

Thanks
Cara


//define flash files below
$src[] = 'http://www.wsaextreme.com/video/1.swf';
$src[] = 'http://www.wsaextreme.com/video/2.swf';
$src[] = 'http://www.wsaextreme.com/video/3.swf';
$src[] = 'http://www.wsaextreme.com/video/4.swf';
$src[] = 'http://www.wsaextreme.com/video/5.swf';
//randomise
// randomise
shuffle($src);
$src = $src[0];
?>


27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="168" height="126">




2
Will_H
Re: PHP Script within block not working
  • 2006/8/11 18:00

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Try setting the block type as "auto-format" instead of "php script"

3
cblack
Re: PHP Script within block not working
  • 2006/8/11 18:52

  • cblack

  • Just popping in

  • Posts: 4

  • Since: 2006/8/11


Hey thanks for responding so quickly,

I tried that...
it didn't recognize the php but the block appeared.

When you have it set on php script the block doesn't even appear. If you view the source of the page you find that it doesn't even have any reference to the script or the flash player and param.

It's like the code for the player disappers :(

4
Will_H
Re: PHP Script within block not working
  • 2006/8/11 19:05

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


Try taking off the content tags at the top and bottom.

5
cblack
Re: PHP Script within block not working
  • 2006/8/11 21:53

  • cblack

  • Just popping in

  • Posts: 4

  • Since: 2006/8/11


No, that didn't work either :(

6
cblack
Re: PHP Script within block not working
  • 2006/8/11 22:02

  • cblack

  • Just popping in

  • Posts: 4

  • Since: 2006/8/11


Well where there is a will...

I used an iframe and it works for mozilla and explorer. If anyone can figure out a better solution I would be happy to hear from you guys.

Thanks
Cara

Login

Who's Online

359 user(s) are online (231 user(s) are browsing Support Forums)


Members: 0


Guests: 359


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits