Yireo tutorials

Learn more about Joomla!TM and Magento
You are here: Home Tutorials Joomla! Joomla administration

Joomla administration tutorials

Joomla! 1.6 ACLs (1): Marketing group

Within Joomla!TM 1.6, you can add new usergroups and set advanced permissions. The definition of who can do what is made possible through the mechanism of ACLs (Access Control Lists). This tutorial is the first of a set of tutorials that explains the practical usage of ACLs.

Read more...

 

Load a module within your Joomla! articles

One of the more in-to-depth tricks that Joomla! offers is to load a module within Joomla!TM content (like an article). This is accomplished by adding the code {loadposition xyz} to your content, and using this new position with your modules. Let's see how far we can stretch the functionality of this little gadget.

Read more...

 

Modifying a Joomla! language pack

Joomla! 1.5 offers partial multi-linguality, meaning that the system language of Joomla! or its extensions can be translated, but if you want to translate your content, you'll need third party extensions like Joom!Fish or Nooku. If you want to modify the system language, you can edit the neccessary files, but with the next Joomla!TM upgrade, your changes might be gone. So how to deal with this?

Read more...

 

Redirect html-suffix in your URLs

Within the Global Configuration of Joomla!TM there is an option Add suffix to URLs that allows you to add the extension ".html" to every URL generated by Joomla!. But if you switch on or off this settings, all your old URLs will become invalid. This tutorial shows you how you can add a new RewriteRule to the Apache htaccess-file to redirect all old URLs to their new version.

Read more...

 

Video: Speed Up Joomla with mod_deflate

Speed up your Joomla!TM website using http compression by mod_deflate and save more dan 50% of your bandwidth.

Read more...

 

Hiding PHP Notices in Joomla!

So now and then, you will notice strange error messages on your Joomla!TM site. These messages tell you something about PHP Notice or PHP Warning or even PHP Error. So what do these messages mean? And how to get rid of them?

Read more...

 

So what's happening with Joomla! 1.6?

Joomla! version 1.5 was released almost a year ago. So what's happening with Joomla! 1.6? How much work is already done? Developers who are interested in Joomla! 1.6 can take a sneak preview at the next version of Joomla!TM by checking out the sources with Subversion (SVN).

Read more...

 

Using the Yireo Google Optimizer plugin

Installing and enabling the plugin

Install the plugin package through the Joomla!TM Installer.

Before you can use the plugin you need to activate the plugin. Within the Joomla! Administrator browse to Plugin Manager and enable the plugin "System - Google Optimizer".

Plugin settings

Within the System - Google Optimizer settings you can change the following:

  • Google Account ID: Here you can enter your Google Account ID (starting with "UA-") globally. This setting can be overridden by the plugin-tags (see below).
  • Google Experiment ID: Here you can enter the tracking ID of the Google Experiment you have created. This setting can be overridden by the plugin-tags (see below).
  • Remove tags: While the plugin itself can be enabled or disabled through the Plugin Manager, this setting determines whether the Google Optimizer scripts are inserted or not. If you enable the plugin through the Plugin Manager and this setting to "Yes", all plugin-tags will be filtered from your content. The plugin-tags are not removed from your content however - that's something you will need to do yourself.

Setting the Google Account ID globally is probably a very wise thing to do. Most people use one Google Account for managing one website. But for one website you might configure many Google Experiments. So setting the Google Experiment ID globally is perhaps less useful.

Defining the pages

Google Website Optimizer requires you to add JavaScript to your webpages. This plugin makes entering the right JavaScript-code in your Joomla! content a lot easier by using simple tags.

For the Google Website Optimizer to optimize anything at all you will need to define three kinds of pages:

  • Original page: Visitors perhaps arrive on this landing page, and you want to know how many people go from here to the specified destination.
  • Variation page: If the same content from the original page is also available anywhere else, it might be useful to track these other pages as well. Note that you will need to define sections to make this useful (see below).
  • Conversion page: This is the destination where you expect visitors to go. This could be another article or perhaps a VirtueMart checkout page.
In the following chapters you will learn how to add plugin-tags to your content to define these pages.

Step 1 - Insert a control-script

This Joomla! plugin uses a very short syntax to define where JavaScript-code should be inserted. You could define as original page a certain Joomla! article, so you wil need to insert a control-script plus a tracking-script in this article.

Example 1

Just open up the article and add the following somewhere on the page:

{go type=control}
Here go stands for google optimizer while type=control defines that the control-script should be inserted.

Example 2

A more complex example redefines the Google Account ID (account) as well as the Google Experiment ID (tracker).

{go type=control account=UA-0000000-1 tracker=00000000}

NOTE: Because a control-script is always accompanied by a tracker-script, a tracker-script is automatically appended.

Step 2 - Insert a conversion-script

Next to a control-page you will definitely also need a conversion-page. Open up the content for your conversion-page and add the following:

{go type=conversion}
Again, the tag allows us to define the account and the experiment tracker, but you can leave them out if the global plugin-settings have been properly configured.

Step 3 - Insert a tracking-script

The same that applied to the types control and conversion also applies to tracking.

{go type=tracking}

Step 4 - Check pages with Google

Now the pages have been defined, you probably want to re-check the pages within the Google Website Optimizer to make sure the JavaScript is loaded properly. Within the Google Website Optimizer panel, browse to your experiment and click on Re-check pages.

Step 5 - Using sections

When defining multiple pages using tracking-scripts you will need to make clear which content is the same over multiple pages. The section-tag allows you to define identical content identified by a certain ID:

{go section="ID"}CONTENT{/go}
This tag is different from the other tags, because it requires not only a section parameter, but also an ending tag ({/go}.

{go section="Example 1"}
This is some content
spread out over multiple lines
which need to tracked
by Google Website Optimizer
{/go}
NOTE: Make sure both the section-ID (in this case "Example 1") and the content (in this case "My Google content") are exactly the same in all places.

About the syntax

Here are some legal examples of the plugin-code:

{go type=control}
{go type="control"}
{go type='control'}
{go type="control" tracker="0123456789"}
{go type="tracking" tracker="0123456789"}
{go type="conversion" tracker="0123456789"}
{go section="Example 1"}My Content{/go}

And here are some wrong you should not use:

{go type=control
{go section=Section without quotes}My section{/go}
{go section=Section without end tag}My section

Using the plugin for VirtueMart

The content of products is normally not handled by plugins. For this plugin to work with product descriptions as will, you will need to activate the setting "Enable content mambots / plugins in descriptions?" within the VirtueMart configuration (Global > Frontend Features).

Alternatively you can add the plugin code to the VirtueMart theme-file "checkout.thankyou.tpl.php" instead.

Using the plugin in other extensions

If the content of other extensions is handled by plugins, adding the plugin-tags to the content is sufficient. If this is not the case, adding the plugin-tags to the proper webpage could involve theme changes, output overrides or even core-hacks.

 

Payments Methods

Payment Methods