vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Integration of .swf files (https://vborg.vbsupport.ru/showthread.php?t=152261)

abdulla1 07-14-2007 09:51 PM

Integration of .swf files
 
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.

Code:

<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

Quote:

Originally Posted by Kirk Y (Post 1291174)
Correct, the .SWF file needs to be uploaded to your server.

Code:

<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

Quote:

Originally Posted by Kirk Y (Post 1291179)
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

Quote:

Originally Posted by Kirk Y (Post 1291188)
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

Quote:

Originally Posted by Kirk Y (Post 1291241)
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
Modification; No PHP Page Creation Needed

abdulla1 07-14-2007 11:52 PM

Quote:

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. :)
Quote:

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!


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

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.01029 seconds
  • Memory Usage 1,747KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)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