Jump to content

Recommended Posts

Posted

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

 

   
   
   
  	

 

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

Posted

Replace your

templates/<?php echo $this->template ?>/images/blank.gif

 

with

 

   
   
   
  

 

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

  • Thanks 1
Posted

cheers! will have a look later...

 

dont think iv seen a flash header on any of the edujoomla sites so far..

Posted

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..

 

Untitled-2.gif

Posted

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..

 

flashheader.gif

Posted (edited)
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!

flashheader3.gif

Edited by RTi
Posted

Sorry about delay in looking into this :(

 

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

 

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

 

or more simply :)

#headerl{

}

 

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

 

    	
		
			
			
			
		 
			

 

and bobs your uncle (see ff.png)

 

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

 

but YMMV :)

 

regards

Simon

ff.PNG

ie6.png

Posted

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..

Posted

Well one of my errors was I put the ie height and width in the wrong place -

code should be this

    	
		
			
			
			
		 
	

 

but still isn't right in ie6 :(

But I'm glad if your method works :)

 

regards

 

Simon

  • 8 months later...
Posted

Please have a look at my index file and tell me where to insert my code. Just cant get it to work! Please please help!!!:

 

<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

JPlugin::loadLanguage( 'tpl_SG1' );

?>

 

 

 

 

 

 

 

<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>

<?php $wd123 = 'banner'; include "templates.php"; ?>

<?php endif; ?>

 

<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>

<?php else: ?>

<?php endif; ?>

<?php if($this->params->get('showComponent')) : ?>

<?php endif; ?>

<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>

<?php endif; ?>

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...