MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
SOLVED :) How to add SWF file only on home page? Like SWF block but only for home page..
AuthorText
lunja
Junior Member

Posts: 46
Contributes: 53

Gender: _MALE_
Online: No

Version: 4.0.2
Country: serbia, croatia, greece
Date: 27/02/2011 15:04
SOLVED :) How to add SWF file only on home page? Like SWF block but only for home page..
#post24834
Site url: http://www.mojkutak.net
MemHT version: 4
Hosting OS: Linux
PHP and MySQL versions: ...
Installed addons/scripts: ...
Error/Problem: ...

How do i add flash .swf on home page only??
i tryed this script that mem posted for imgs:

{if condition="$tpl_page.title == ''"}
//HTML/Img banner
{/if}

but how do i add flash? can anyone write how the script should look like, cause i cant figure it out... mindstorming uhh Smile is it possible at all?
Edited: 28/02/2011 19:56
If you want it to happen, you must make it happen. If you let it happen, you wont like what happened Smile
Delete Edit Quote
 
lunja
Junior Member

Posts: 46
Contributes: 53

Gender: _MALE_
Online: No

Version: 4.0.2
Country: serbia, croatia, greece
Date: 28/02/2011 20:00
Re: SOLVED :) How to add SWF file only on home page? Like SWF block but only for home page..
#post24838
Solved it... this is script i used...

{if condition="$tpl_page.name == 'news'"} <object classid="clsidSmile27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="213" height="313">
<param name="movie" value="example.swf" />
<param name="quality" value="high" />
<embed src="example.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="213" height="313"></embed>
</object> {/if}

and its same script mem gaved, but i didnt know that i should in tpl page title write name of page title thats at home only... i writed just home Smile

THANX mem for this grate CMS!
If you want it to happen, you must make it happen. If you let it happen, you wont like what happened Smile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7300
Contributes: 4879

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 02/03/2011 16:36
Re: SOLVED :) How to add SWF file only on home page? Like SWF block but only for home page..
#post24840
LoL Smile
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Reply
Twitter updates...
MemHT Wiki
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.230

Username
Password
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo