View Full Version : Integration of .swf files
abdulla1
07-14-2007, 09:51 PM
Hello, how do we integrate .swf files into vbulletin forum??
i want to add a game with the file .swf to my forum,
any ideas??
cyberphr
07-14-2007, 09:55 PM
<embed src="file source here" width="width" height="height" />
Kirk Y
07-14-2007, 09:55 PM
It's the same concept as implementing it on a regular page. Just place the relevant HTML wherever you'd like the game shown.
If you want to place it on a page of its own there are several tutorials in the Article Depository on Creating a Custom Page in vBulletin.
abdulla1
07-14-2007, 09:58 PM
Thanks but how do i get the code from the .swf file??
i have got the file ready and i want to integrate the game into my web.
dont i have to upload it first somewhere in the server then add a link?
Kirk Y
07-14-2007, 10:01 PM
Correct, the .SWF file needs to be uploaded to your server.
<object width="X" height="Y" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param name="movie" value="/path/to/flashfile.swf" />
<embed src="/path/to/flashfile.swf" width="X" height="Y" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
abdulla1
07-14-2007, 10:03 PM
Correct, the .SWF file needs to be uploaded to your server.
<object width="X" height="Y">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="X" height="Y"></embed>
</object>
Yes! thats my point, its actually a game. so how the code should be?
and where do i place it sir?? i mean place the code.
Kirk Y
07-14-2007, 10:07 PM
The HTML code should be placed wherever you'd like the game to be shown.
I also updated the code I posted previously, use it instead of the previous one.
abdulla1
07-14-2007, 10:12 PM
The HTML code should be placed wherever you'd like the game to be shown.
I also updated the code I posted previously, use it instead of the previous one.
okay so here's what i do,
Open the Cpanel upload the file,
then place the code whenever i want the game to be shown?
and i just write the file name in the path?
then done?
Kirk Y
07-14-2007, 10:15 PM
Yes, edit the relevant template in vBulletin and add your code.
abdulla1
07-14-2007, 10:54 PM
Yes, edit the relevant template in vBulletin and add your code.
okay i will be wokring on it thanks.
how do i create a new link? and link the new template to the link?
:)
Kirk Y
07-14-2007, 10:56 PM
Can you elaborate on what you want a little? Are you asking how to link to a template you created?
abdulla1
07-14-2007, 10:58 PM
Can you elaborate on what you want a little? Are you asking how to link to a template you created?
exactly, how do i link to a new template created. to be opened in a new link
for example,
www.mywebsite.com/"new game template in this page"
i hope its clear.
UltimateOreo!
07-14-2007, 11:21 PM
Just remember, all the templates are is html pages being displayed with php. Treat them exactly as you would regular html files. With that said, http://www.w3schools.com/ may be your best friend.
Kirk Y
07-14-2007, 11:22 PM
A template is basically the container of the contents that will be displayed on a page, so you have 1/2 the equation -- you just need a page to display your template contents on.
There are a few routes to this:
Create your own Page (https://vborg.vbsupport.ru/showthread.php?t=62164)
Modification; No PHP Page Creation Needed (https://vborg.vbsupport.ru/showthread.php?t=123162)
abdulla1
07-14-2007, 11:52 PM
A template is basically the container of the contents that will be displayed on a page, so you have 1/2 the equation -- you just need a page to display your template contents on.
There are a few routes to this:
Create your own Page
Modification; No PHP Page Creation Needed
Thanx Kirk that would be useful. :)
Just remember, all the templates are is html pages being displayed with php. Treat them exactly as you would regular html files. With that said, http://www.w3schools.com/ may be your best friend.
I will do that , thanx UltimateOreo!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.