1
vinylspeed
How do i display .swf ads/banners/images in a xoops site?
  • 2005/4/20 9:54

  • vinylspeed

  • Just popping in

  • Posts: 60

  • Since: 2004/10/18


[size=x-small]I'm using EADJ2.1 theme and i want to display some .swf banners in custom blocks. So far im told mime types not allowed so i can't upload to the image directory, and when i try to link it direct it still doesn't display.[/size]
[size=x-small]How do i tell XOOPS to display these kinds of files?[/size]

2
jdseymour
Re: How do i display .swf ads/banners/images in a xoops site?

I use SWF files on my site for my Tutorials Section. I link to it from the WF-Sections module.

Here is an example of the code I use:

<HTML>
<
BODY><center><OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="900" HEIGHT="720" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0">
<
PARAM NAME=movie VALUE="http://www.yoursite.com/modules/Modulename/folder/SWF/newbb_upgrade.swf">
<
PARAM NAME=play VALUE=true>
<
PARAM NAME=loop VALUE=false>
<
PARAM NAME=quality VALUE=low>
<
EMBED SRC="http://www.yoursite.com/modules/modulename/folder/SWF/newbb_upgrade.swf" WIDTH=900 HEIGHT=720 quality=low loop=false TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
EMBED>
OBJECT>
center>
BODY>HTML>


Similar code could be used in other places.

HTH.

3
vinylspeed
Re: How do i display .swf ads/banners/images in a xoops site?
  • 2005/4/20 10:24

  • vinylspeed

  • Just popping in

  • Posts: 60

  • Since: 2004/10/18


So where exactly do i put this code? In my theme.html or? And if so where in the page does it go? Between the tags or?

4
jdseymour
Re: How do i display .swf ads/banners/images in a xoops site?

That all depends on where you want it to show. Of course if you add it to the theme you would cut the < html> and < body> tags as they would already be defined in the theme. I have had problems getting flash to show in the theme in firefox.

HTML custom block, cut the same tags as they would be defined by selecting html in the block. My code is used to insert within a module.

HTH.

Also see this Faq Page.

5
vinylspeed
Re: How do i display .swf ads/banners/images in a xoops site?
  • 2005/4/20 10:38

  • vinylspeed

  • Just popping in

  • Posts: 60

  • Since: 2004/10/18


So then if i put this code in the actual custom block ive created for the omni festival 2005. Then select display HTML? This should work is that what your saying?

6
jdseymour
Re: How do i display .swf ads/banners/images in a xoops site?

Yes. Without the < html> tags. I am not 100% sure whether you need the < body> tags or not.

7
vinylspeed
Re: How do i display .swf ads/banners/images in a xoops site?
  • 2005/4/20 10:41

  • vinylspeed

  • Just popping in

  • Posts: 60

  • Since: 2004/10/18


Dont i need to change this and if so what to? Do a need an SWF folder in my server?

8
jdseymour
Re: How do i display .swf ads/banners/images in a xoops site?

Yes, I made a folder to put my swf files. In the code the "value=" and "src=" need to be full path to the swf file.

9
jdseymour
Re: How do i display .swf ads/banners/images in a xoops site?

Correction. I am wrong.

Use entire code in custom block including all tags. Just checked an old one I made a long time ago for a test.

Sorry for the misdirection.

10
vinylspeed
Re: How do i display .swf ads/banners/images in a xoops site?
  • 2005/4/20 10:53

  • vinylspeed

  • Just popping in

  • Posts: 60

  • Since: 2004/10/18


Well you scored 100% for helpfullness, 100% for speed, and you have solved all my questions. You can see the flash banner display on http://www.shangrilala.co.uk.
Thanks a lot.
If your interested i can see if i can get you a couple of tickets at a discount if you fancy going to a festival in May.
I don't expect you to want to but its just a thought.

Login

Who's Online

253 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 253


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