Recipes - MetaMod 1.5

Include HTML directly in MetaMod
(4 votes, average 4.25 out of 5)
Recipes - MetaMod 1.5 - General

MetaMods are able to output raw HTML code. If you are using the basic time/date or GeoIP parameters from the MetaMod, then you can use these to control whether or not the raw HTML will be displayed – this saves having to create a Custom HTML module just for the purpose of outputting a bit of HTML.

See Recipe
 
Page Redirection
(11 votes, average 3.91 out of 5)
Recipes - MetaMod 1.5 - General

MetaMods have a lot of data at their disposal. The rules based on this data are not restricted to just selecting modules – you can make Joomla perform other actions as well. In this recipe we demonstrate how to make Joomla redirect to a different page if the rules succeed.

See Recipe
 
Control modules based on JoomFish or front-end language
(9 votes, average 3.89 out of 5)
Recipes - MetaMod 1.5 - Component-specific

Joomla is capable of being set up in various languages. These recipes demonstrate how to display different modules depending on the “front-end language” as chosen by the administrator, or by the user via a language selector (e.g. via JoomFish). They also demonstrate how to display different modules based on the language set up in the user’s browser, so as to target your users with modules in their own language.

See Recipe
 
Number of days since first registration
(4 votes, average 5.00 out of 5)
Recipes - MetaMod 1.5 - General

This recipe can easily be customised to show people new modules based on how many days they have been registered. You may want to progress your registered users through a rolling programme of advertising / instruction etc. e.g. for the first week after they register show one module, then another for the next week, and another after that.

See Recipe
 
Control modules on JReviews pages
(6 votes, average 3.83 out of 5)
Recipes - MetaMod 1.5 - Component-specific

In the first example, we return different modules depending on whether jReviews (see ReviewsForJoomla.com) is on its “base” page or looking at a “category”. We can choose the modules according to category as seen below. Note that if you have SEO urls turned on, jReviews acts slightly differently to when they are not turned on, so the code below tests for both cases. It's not the most elegant way to handle it, but shows you how to handle the situation.

Other recipes on this page allow you to switch modules on or off depending on whether or not the displayed item is “featured” or not.

See Recipe
 
Control modules on Community Builder pages
(5 votes, average 4.00 out of 5)
Recipes - MetaMod 1.5 - Component-specific

In this example we choose modules based on the zipcode that the logged-in user has entered with their address in their profile. You can select based on their state, country or anything else in their profile.

See Recipe
 
Control modules based on article category
(15 votes, average 4.40 out of 5)
Recipes - MetaMod 1.5 - General

With these recipes you can make modules appear/disappear when an article from a specific section or category is shown. They even detect section/category blog/list pages and will show the module on those pages if the section/category matches.

See Recipes
 
Select modules based on the group of the user
(14 votes, average 3.71 out of 5)
Recipes - MetaMod 1.5 - General

Use these recipes to make module selections based on the user group of the logged-in (or not logged-in) user. This can be particularly useful for hiding various modules for users who have already logged in.

See Recipes
 
Change Joomla module based on browser detection
(9 votes, average 3.89 out of 5)
Recipes - MetaMod 1.5 - General

Don’t tear your hair out if you can’t make one of your modules display correctly on Internet Explorer. Just design an alternative (simplified) version of the module, and use the following rules to display different modules for IE browsers. You can just as easily detect other browsers such as the iPhone and present different information just for them – or hide modules to suit the smaller browser.

See Recipes
 
Select modules randomly
(7 votes, average 5.00 out of 5)
Recipes - MetaMod 1.5 - General

It’s easy to randomise your modules in Joomla – just set up MetaMod with the following PHP rule, and customise the “return” numbers to match the ids of the modules you want to use. Add more as appropriate.

See Recipe
 
Control modules by IP address
(5 votes, average 3.20 out of 5)
Recipes - MetaMod 1.5 - General

In company intranet systems you may be able to identify certain groups of users by the IP address of the client. These MetaMod recipes allow you to to detect an individual or range of IP addresses, and change modules based on this information.

See Recipes
 
Show a module once per session
(6 votes, average 4.33 out of 5)
Recipes - MetaMod 1.5 - General

Use this rules to show a module only the first time that a user views a certain page. On subsequent page views you can either display an alternative module, or no module at all. (See also: Show a module just once for any user [with cookies])

See Recipes
 
Show a module when a particular user is logged in
(4 votes, average 4.50 out of 5)
Recipes - MetaMod 1.5 - General

Let’s say you want everyone to know when a particular person is logged in to the system (e.g. for technical support). This recipe allows you to display a module for as long as this person is logged in to the system!

See Recipe
 
GeoIP country examples
(4 votes, average 4.00 out of 5)
Recipes - MetaMod 1.5 - GeoIP

Use MetaMod’s GeoIP facilities to target modules to viewers from different countries/states/cities (accuracy of state and city location varies by country, but country accuracy is very high). You can even combine country rules with date/time rules to target different countries at different times of the day...

See Recipes
 
Date and Time rules
(15 votes, average 4.73 out of 5)
Recipes - MetaMod 1.5 - General

MetaMod has great support for dates and times. You can make simple rules that publish and unpublish modules at certain dates and times, but that’s just the beginning. Rules like these are great for displaying certain modules during “shopping hours”, radio programme broadcasts, sports seasons etc.

See Recipes
 
Show modules on all pages except front page
(16 votes, average 4.38 out of 5)
Recipes - MetaMod 1.5 - Component-specific

It’s very common to want to put modules on all pages except the front page. This recipe allows you to target the front page (or any given page) and either exclude a module from that page or include it on that page.

See Recipe
 
<< Start < Prev 1 2 Next > End >>

Page 2 of 2