Adding Flash embeded images to .tpl

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
mrdatabase
Registered User
Posts: 1
Joined: Fri Aug 31, 2007 4:02 am

Adding Flash embeded images to .tpl

Post by mrdatabase » Fri Aug 31, 2007 4:18 am

I have been trying to add a flash image to my overall_header.tpl, but its not working. I have insert the flash image into the PHP and embeded codes, but it doesnt work. The flash image itself works when i display it on a html page, and it works in the .tpl page when i view it offline, but when I view it on my website http://www.mrdatabase.net, it doesnt work. I have enabled the HTML code in the adminstrator control panel, but i just believe thats for adding Flash to forms. Once again, im trying to add a flash image to the main website itself, but it doesnt work.

Therefore:

PHP codes dont work
Embeded codes dont work

What do i have to do to get a .swf image to display on the .tpl files? What code do i have to use in order to get this to work?

Thanks,
Jelani, MCSE, CCNA

contractor
Registered User
Posts: 1
Joined: Tue Oct 09, 2007 2:00 am

Re: Adding Flash embeded images to .tpl

Post by contractor » Tue Oct 09, 2007 2:03 am

I've tried the same thing, adding flash files to the index page to no avail. I'm not sure they are supported.

User avatar
dellsystem
Former Team Member
Posts: 3879
Joined: Sat Apr 09, 2005 8:54 pm
Location: Montreal
Name: Wendy
Contact:

Re: Adding Flash embeded images to .tpl

Post by dellsystem » Tue Oct 09, 2007 2:19 am

The code should be something like

Code: Select all

<object width="300" height="200">
<param name="movie" value="movies/moviename.swf">
<embed src="movies/moviename.swf" width="300" height="200">
</embed>
</object>
Changing the parameteres as needed of course.

What code are you using?
Former moderator and website team member | My MODs, and more (GitHub)

davibugi
Registered User
Posts: 1
Joined: Mon Dec 10, 2007 1:50 pm

Re: Adding Flash embeded images to .tpl

Post by davibugi » Tue Dec 11, 2007 2:34 pm

Hi i have tried that but it does not work

Do u have a working solution

Thanks

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51698
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: Adding Flash embeded images to .tpl

Post by Brf » Tue Dec 11, 2007 3:00 pm

That code should work, assuming you have the correct URL for your flash file.

User avatar
Lumpy Burgertushie
Registered User
Posts: 66242
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Adding Flash embeded images to .tpl

Post by Lumpy Burgertushie » Tue Dec 11, 2007 4:00 pm

if you have added anything to any php file, then remove it and start over.

this is simple html, whatever works in your html page will work in the tpl page ( except for php includes )

there is no need to edit anything other than the tpl file you want it to appear in.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

User avatar
Jim_UK
Former Team Member
Posts: 18474
Joined: Tue Oct 12, 2004 5:36 pm
Location: Darwen N.West UK

Re: Adding Flash embeded images to .tpl

Post by Jim_UK » Tue Dec 11, 2007 8:33 pm

I have enabled the HTML code in the adminstrator control panel,
There is no need to have done that. That facility is to allow html in posts and you should not do that. Set that back to NO as it has no effect on the .tpl files that are html.

Jim
The truth is out there.
Unfortunately they will not let you anywhere near it!

newtonviet
Registered User
Posts: 2
Joined: Sat Dec 22, 2007 1:40 pm

Re: Adding Flash embeded images to .tpl

Post by newtonviet » Sat Dec 22, 2007 1:53 pm

Good idea!

rhythm
Registered User
Posts: 83
Joined: Fri Dec 14, 2007 1:17 pm

Re: Adding Flash embeded images to .tpl

Post by rhythm » Sun Dec 23, 2007 9:22 am

Plus if you use the flash publish option, it will be really easy. It will give you an index file where all the code you will ever need will be included. Just copy the code and goto the tpl file and paste it there. :D

Locked

Return to “2.0.x Support Forum”