Skip to content

Month: June 2010

How to add a link to open a site in the browser on a flash movie?

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("");
function btn_function(event: MouseEvent)
navigateToURL(button_request, "_blank");

How to convert joomla 1.0 templates to 1.5 template

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” “”>
<html xmlns=”” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>” >

<jdoc:include type=”head” />
<link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css” type=”text/css” />

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 🙂