Because Joomla menu adds an id only for the current menu item, this is the hack to add an id for all menu items:
Welcome to our blog! Here you can find stuff about web development, software engineering, WordPress & about our projects and interests.
Create a button on the movie.
Give a name to the instance of the button with the name button.
Put this code on the first frame of your flash movie.
button.addEventListener(MouseEvent.CLICK, btn_function);
var button_request:URLRequest = new URLRequest("http://mysite.com");
function btn_function(event: MouseEvent)
{
navigateToURL(button_request, "_blank");
}
Open the .fla file with the flash movie and add to the first frame of the movie these 2 lines of action script:
Stage.align = “TL”;
Stage.scaleMode = “noScale”;
Where TL means top-left. In my case it was TR.
More tricks for flash move alignment could be found here: http://www.tutorio.com/tutorial/liquid-flash-layout
Open index.php of you remplate:
1. Check the top of your index.php file, it should be changed like this one or just use this code:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>” >
<head>
<jdoc:include type=”head” />
<link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css” type=”text/css” />
</head>
2. Replace all php codes relating to modules.
This is an example of an old code <?php mosLoadModules ( ‘header’, -3 ); ?>
Replace with this <jdoc:include type=”modules” name=”header” style=”xhtml” />
3. Replace the mainbody code from <?php mosMainBody(); ?> to <jdoc:include type=”component” style=”xhtml” />
4. Rename the template_css.css file in your /css folder to template.css
5. If there is stuff like this one on yout code:
<?php if (mosCountModules(‘user1’)) : ?>
Chenge ot to look like this: <?php if($this->countModules(‘user1’)) : ?>
6. Check if there are anouther external files like footer.php for example. If there are just open and remove some source code starting with MOS
This should be it 🙂