irdy74 Posted July 21, 2011 Share Posted July 21, 2011 Dear All,Saya rencananya mau mengganti logo situs yang sebelumnya menggunakan jpg atau Gif menjadi gambar flash atau swf. Adakah rekan2 yang pernah mengganti? Mohon dibantu ya?Salam Link to comment Share on other sites More sharing options...
prestanesia Posted July 22, 2011 Share Posted July 22, 2011 Tinggal edit header.tpl dan sisipin kode untuk embed swf nya, ga sulit koq. Link to comment Share on other sites More sharing options...
irdy74 Posted July 23, 2011 Author Share Posted July 23, 2011 Tinggal edit header.tpl dan sisipin kode untuk embed swf nya, ga sulit koq. Terima kasih banyak mas atas infonya, cuma saya masih bingung diletakkan dimana posisi embednya. Contoh yang saya masukkan adalah : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang_iso}"> <head> <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="generator" content="PrestaShop" /> <meta name="robots" content="{if isset($nobots)}no{/if}index,follow" /> <link rel="icon" type="image/vnd.microsoft.icon" href="{$img_ps_dir}favicon.ico?{$time}" /> <link rel="shortcut icon" type="image/x-icon" href="{$img_ps_dir}favicon.ico?{$time}" /> <script type="text/javascript"> var baseDir = '{$content_dir}'; var static_token = '{$static_token}'; var token = '{$token}'; var priceDisplayPrecision = {$priceDisplayPrecision*$currency->decimals}; var priceDisplayMethod = {$priceDisplay}; var roundMode = {$roundMode}; </script> {if isset($css_files)} {foreach from=$css_files key=css_uri item=media} <link href="{$css_uri}" rel="stylesheet" type="text/css" media="{$media}" /> {/foreach} {/if} {if isset($js_files)} {foreach from=$js_files item=js_uri} <script type="text/javascript" src="{$js_uri}"></script> {/foreach} {/if} {$HOOK_HEADER} </head> <body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> {if isset($ad) && isset($live_edit)} {include file="$tpl_dir./live_edit.tpl"} {/if} {if !$content_only} {if isset($restricted_country_mode) && $restricted_country_mode} <div id="restricted-country"> <p>{l s='You cannot place a new order from your country.'} <span class="bold">{$geolocation_country}</span></p> </div> {/if} <div id="page"> <!-- Header --> <div id="header"> <a id="header_logo" href="{$base_dir}" title="{$shop_name|escape:'htmlall':'UTF-8'}"> <img class="logo" src="{$img_ps_dir}logo.jpg?{$time}" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if} /> </a> <div id="header_right"> {$HOOK_TOP} </div> </div> <div id="columns"> <!-- Left --> <div id="left_column" class="column"> {$HOOK_LEFT_COLUMN} </div> <!-- Center --> <div id="center_column"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="170"> <param name="movie" value="logo.swf" /> <param name="quality" value="high" /> <embed src="logo.swf" quality="high" type="application/x-shockwave-flash" width="550" height="170" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> {/if} Dan file logo.swf nya diletakkan dimana ya? Apakah di folder Thema nya atau bagaimana? Sampai saat ini gambarnya belum muncul.... Link to comment Share on other sites More sharing options...
prestanesia Posted July 23, 2011 Share Posted July 23, 2011 Coba logo.swf simpan di folder img, trus kodenya diubah sbb <embed src="{$base_dir}img/logo.swf" quality="high" ... Link to comment Share on other sites More sharing options...
irdy74 Posted July 23, 2011 Author Share Posted July 23, 2011 Coba logo.swf simpan di folder img, trus kodenya diubah sbb <embed src="{$base_dir}img/logo.swf" quality="high" ... Terima kasih mas ... cuma saya harus merubah kodenya menjadi : <embed src="/themes/prestashop/img/logo.swf" Kenapa code ini gak jalan ya? src="{$base_dir}img/logo.swf" Link to comment Share on other sites More sharing options...
tomeh Posted July 23, 2011 Share Posted July 23, 2011 mungkin maksud nya master tobi itu file .swf nya di taro di folder img prestashop nya bukan di folder img di dalam folder template. kalo mau di taro di folder img template kode smarty PS nya pake : <embed src="{$tpl_dir}img/logo.swf" atau <embed src="{$img_dir}logo.swf" untuk lebih jelas mampir di thread master gonebdg SMARTY GLOBAL dan DIRECTORY CONFIGURATION Prestashop :CMIIW: Link to comment Share on other sites More sharing options...
irdy74 Posted July 24, 2011 Author Share Posted July 24, 2011 mungkin maksud nya master tobi itu file .swf nya di taro di folder img prestashop nya bukan di folder img di dalam folder template. kalo mau di taro di folder img template kode smarty PS nya pake : <embed src="{$tpl_dir}img/logo.swf" atau <embed src="{$img_dir}logo.swf" untuk lebih jelas mampir di thread master gonebdg SMARTY GLOBAL dan DIRECTORY CONFIGURATION Prestashop :CMIIW: [sOLVED] Terima kasih banyak mas infonya...sekarang kodenya uda jalan. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now