-
AuthorPosts
-
October 8, 2007 at 12:18 pm #123129
Hi all,
i would like to replace the standard “logo.gif” with a swf (flash) logo ex: logo.swf.
Is it possible? Which modification should I made to have the logo.swf work in Ja Mageia template?
Thank You for Your time and support.October 28, 2007 at 3:48 pm #231666I would like to get this going on my site as well – i have created a flash movie the same size as the logo file and changed logo.gif to logo.swf in the css file, but am not sure where to go from there.
Does anyone have any pointers to help us out?
mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
October 28, 2007 at 6:36 pm #231668upload your .swf file to the images folder in the template folder
templates/ja_mageia/images/October 29, 2007 at 9:15 am #231685Thanks for the help mj1256, but I have already done this.The swf file is in the correct images folder, but does not show up. I also have a jpg in the same folder and when I edit the css file to show the jpg file it works fine, but if I change it to show the swf file, there is just a blank white rectangle at the top left.
mj1256 Friendmj1256
- Join date:
- June 2007
- Posts:
- 1473
- Downloads:
- 10
- Uploads:
- 35
- Thanks:
- 84
- Thanked:
- 225 times in 118 posts
October 29, 2007 at 8:45 pm #231743did you check the folder for each of the colors and default, maybe its still looking in the wrong folder
October 30, 2007 at 1:34 pm #231818Thanks again for the help mj1256, but it didn’t make any difference. I have placed the same swf file in the root of the images directory (where I have placed my logo.jpg file, which works when I edit the CSS file to point to logo.jpg) and also in the cyan, orange and red directories. If I change the CSS file to use logo.swf instead of logo.gif or logo.jpg, I still just get a blank white area with no content.
Khanh Le ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
October 30, 2007 at 5:14 pm #231827Infact, changing logo from image to a flash object is not simple as renaming a file name. Here is the solution:
1. Download swfobject from link: http://blog.deconcept.com/swfobject/swfobject.zip
2. Extract the package and copy file swfobject.js to folder templates/ja_mageia/scripts.
3. Open template index.php, search the current logo code:
<h1 class="logo"><a href="index.php"><?php echo $mosConfig_sitename?></a></h1>
4. Replace with
<script language="javascript" type="text/javascript" src="<?php echo $ja_template_path;?>/scripts/swfobject.js"></script>
<h1 id="logo_container" class="logo">
<script type="text/javascript">
//<!]>
</script>
<noscript>
<!-- For browsers without JS support use Flash Satay for fallback -->
<object type="application/x-shockwave-flash" data="<?php echo $ja_template_path;?>/images/logo.swf" width="218"
height="48">
<param name="movie" value="<?php echo $ja_template_path;?>/images/logo.swf" />
<div style="width: 218px;
height: 48px; background-color: #FFFFFF;">
<a href="http://www.adobe.com/go/gntray_dl_getflashplayer">
Get Flash player to view this content
</a>
</div>
</object>
</noscript>
</h1>
<script type="text/javascript">
var so = new SWFObject("<?php echo $ja_template_path;?>/images/logo.swf", "logo", "218", "48", "7", "#FFFFFF");
so.write("logo_container");
</script>
5. Copy your logo.swf to folder ja_mageia/images
6. DoneOctober 30, 2007 at 10:10 pm #231840Holy Shit Khanh Le,
That’s hit the nail exactly on the head! I have seen a few folks asking for this kind of fix in this and other threads on the forum – could your last post be made a sticky?
Thanks again!
-
AuthorPosts
This topic contains 9 replies, has 5 voices, and was last updated by njonow 17 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum