Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

EduGeek Joomla 1.5 Package Next generation joomla with our favourite edugeek templates.

Go Back   EduGeek.net Forums > EduGeek Projects > Projects: > EduGeek Joomla 1.5 Package
Reply
 
LinkBack Thread Tools Search Thread Language
Sponsored Links
Old 11-11-2008, 11:45 PM   #1
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default Replace header image with flash?

was just wondering if its possible to replace the standard header png with a flash file instead?
  Reply With Quote
Old 12-11-2008, 07:55 AM   #2
 
SimpleSi's Avatar
 
Join Date: Jun 2005
Location: Lancashire
Posts: 1,448
Thanks: 55
Thanked 54 Times in 46 Posts
Rep Power: 19 SimpleSi is a jewel in the roughSimpleSi is a jewel in the roughSimpleSi is a jewel in the rough
Default

You "just" need to modify the template main file index.php in your template folder and you can stick in anything you like

regards

Simon
  Reply With Quote
Old 12-11-2008, 06:13 PM   #3
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

hmm.. i take it i need to make some changes in the header part?

<div id="header">
<div id="headerl"><a href="<?php echo $this->url ?>"><img src="templates/<?php echo $this->template ?>/images/blank.gif" width="192" height="36" alt="<?php echo $mainframe->getCfg('sitename');?>" border="" /></a></div>


im quite new to all this web dev stuff.. so just learning as i go along..
  Reply With Quote
Old 12-11-2008, 11:55 PM   #4
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

well i tried to follow the steps from Joomla theme - Joomla Themes, Joomla Web Design, Free Templates - Flash Header Template

but it didnt work...
  Reply With Quote
Old 13-11-2008, 08:07 AM   #5
 
SimpleSi's Avatar
 
Join Date: Jun 2005
Location: Lancashire
Posts: 1,448
Thanks: 55
Thanked 54 Times in 46 Posts
Rep Power: 19 SimpleSi is a jewel in the roughSimpleSi is a jewel in the roughSimpleSi is a jewel in the rough
Default

It works for me on a locally hosted test site just modifying the eg_default1.5 template.

Code:
<div id="headerl"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100" height="50">
    <param name="movie" value="http://localhost/creativeassemblydec2007.swf">
    <param name="quality" value="high">
    <embed src="http://localhost/creativeassemblydec2007.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="50"></embed>
  </object> </div>
I just replaced the "your flash header file name goes here.swf" with the path/filename of a test file I had lying around.

(I did find that I had to have the full "http://....." as it didn't like a relative path at first!

regards

Simon
  Reply With Quote
Old 13-11-2008, 11:08 PM   #6
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

yes i have just put the full path in..and it worked.. but how do i get it to go in the header position?
  Reply With Quote
Old 14-11-2008, 09:30 AM   #7
 
SimpleSi's Avatar
 
Join Date: Jun 2005
Location: Lancashire
Posts: 1,448
Thanks: 55
Thanked 54 Times in 46 Posts
Rep Power: 19 SimpleSi is a jewel in the roughSimpleSi is a jewel in the roughSimpleSi is a jewel in the rough
Default

Replace your
Code:
<div id="headerl"><a href="<?php echo $this->url ?>"><img src="templates/<?php echo $this->template ?>/images/blank.gif" width="192" height="36" alt="<?php echo $mainframe->getCfg('sitename');?>" border="" /></a></div>
with

Code:
<div id="headerl"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="100" height="50">
    <param name="movie" value="http://localhost/creativeassemblydec2007.swf">
    <param name="quality" value="high">
    <embed src="http://localhost/creativeassemblydec2007.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100" height="50"></embed>
  </object> </div>
BTW the proper way to do is is to use a template with a module position in the header such as the e.g. simple series/rokwebify which have a newsflash module in that position and then publish some extension module that displays swf files into that module position (and disable the newsflash module)

But if its only one site your ever going to do then just bodge it like above

regards

Simon
  Reply With Quote
The Following User Says Thank You to SimpleSi For This Useful Post:
RTi (17-11-2008)
Old 14-11-2008, 10:16 AM   #8
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

cheers! will have a look later...

dont think iv seen a flash header on any of the edujoomla sites so far..
  Reply With Quote
Old 17-11-2008, 09:32 PM   #9
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

hmmm.. i tried that and it does work.. but the position of the flash file isnt correct..

it needs to go more to the left and be higher..

replace-header-image-flash-untitled-2.gif
  Reply With Quote
Old 17-11-2008, 09:45 PM   #10
 
SimpleSi's Avatar
 
Join Date: Jun 2005
Location: Lancashire
Posts: 1,448
Thanks: 55
Thanked 54 Times in 46 Posts
Rep Power: 19 SimpleSi is a jewel in the roughSimpleSi is a jewel in the roughSimpleSi is a jewel in the rough
Default

Probably need to start playing with your .css file then and adjust parameters of header1

Can you post a link to your flash file?

regards

Simon
  Reply With Quote
Old 17-11-2008, 09:57 PM   #11
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

url of test flash file..

http://www.kneaz.org/theoaks/templat...lashheader.swf

its just a blank file.. but has the same dimensions as the header image..
  Reply With Quote
Old 20-11-2008, 11:35 PM   #12
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

well i have setup a local test site... and got the flash file where i need it.. but it looks like its added some sort of padding as theres some extra white space underneath the file..

replace-header-image-flash-flashheader.gif
  Reply With Quote
Old 21-11-2008, 12:31 AM   #13
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

right..i have rem'd out the #header in template.css and it has taken away the white space..but as you can see from the photo the menu is now not aligned!
Attached Thumbnails
replace-header-image-flash-flashheader3.gif  

Last edited by RTi; 21-11-2008 at 12:37 AM..
  Reply With Quote
Old 23-11-2008, 11:21 AM   #14
 
SimpleSi's Avatar
 
Join Date: Jun 2005
Location: Lancashire
Posts: 1,448
Thanks: 55
Thanked 54 Times in 46 Posts
Rep Power: 19 SimpleSi is a jewel in the roughSimpleSi is a jewel in the roughSimpleSi is a jewel in the rough
Default

Sorry about delay in looking into this

I thought I'd cracked it easily - I just rem'd the css code out in header1

Code:
#headerl{
/*
	position: relative;
	top: 30px;
	left: 26px;
	float: left;
	text-align: left; /* ie */
*/
	}
or more simply
Code:
#headerl{

	}
and constrained the swf to 922px by 150px (same as header image)

Code:
    	<div id="headerl">
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">
				<param name="movie" value="http://localhost/flashheader.swf" height="150px" width="922px">
				<param name="quality" value="high">
				<embed src="http://localhost/flashheader.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="150px" width="922px"></embed>
			</object> 
		</div>
and bobs your uncle (see ff.png)

but then I thought - better see what its like in IE6 (see ie6.png)

but YMMV

regards
Simon
Attached Thumbnails
replace-header-image-flash-ff.png  replace-header-image-flash-ie6.png  
  Reply With Quote
Old 23-11-2008, 05:59 PM   #15
RTi
 
RTi's Avatar
 
Join Date: Feb 2008
Location: Birmingham
Posts: 41
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0 RTi is an unknown quantity at this point
Default

erm that didnt work properly... but i think iv done it!

remd out header as well adn then unremd the margin entry for the navbar.. and set to 11. seems ok in ie and ff .. on my local test site..

will try and replicate it to the live site tomorrow..

thanks for your help..
  Reply With Quote
Reply

Register now for FREE and post messages!


Username: Password: Confirm Password: E-Mail: Confirm E-Mail:
Birthday:      
Image Verification
  I agree to forum rules 

Similar Threads
Thread Thread Starter Forum Replies Last Post
RT_Rokwebify Header Issue SYSMAN_MK EduGeek Joomla 1.5 Package 12 30-06-2008 05:20 PM
header and blank apoth0r EduGeek Joomla 1.0 Package 4 25-02-2008 08:26 PM
[CLOSED] Missing Content: Missing Image for a flag & flash FN-GM EduGeek.net Site Problems 1 11-02-2008 10:02 AM
Strange header problem dagza EduGeek Joomla 1.0 Package 2 21-01-2008 10:14 PM
Wanted: A decent image organiser/something that can make a webpage from image folders eean Windows 5 14-01-2008 12:39 AM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT +1. The time now is 02:40 AM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright EduGeek.net