Home » Extensions » Modalizer
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

Modalizer will help you create modal popup window links. Modalizer can also convert any existing link in your website to modal popup window link.

If you use Modalizer, please post a rating and a review at the Joomla! Extensions Directory.

Description

Modalizer will help you create modal popup window links. Modalizer can also convert any existing link in your website to modal popup window link.

Modal popup windows are fancy popup boxes also known as Lightboxes.

You can choose from many Modal types:

  • Joomla! Core (SqueezeBox)
  • ColorBox
  • FancyBox
  • LyteBox
  • ShadowBox

There are several ways Modalizer can covert links:

  • By class names (all links with defined class names)
  • By filetypes (all links to given filetypes)
  • By url (match URLs via regular expressions)
  • By target="_blank" (all links with a target. Internal and/or external)
  • Via the special Modal tags {modal ...}...{/modal}

Mootools / jQuery Compatibility

Modalizer uses the modal scripts that either load the Joomla core mootools script or a jquery script.. Some templates and extensions use there own javascript library which can cause conflicts. There is an option in the Modalizer plugin to not load its javascript libraries, which might help resolving these conflicts.

Custom Styling

There are several styling options in the Modalizer plugin settings. You can customize other elements via css.

It's best to overrule styles by adding definitions to your templates stylesheet, so your custom styles don't get overwritten when updating Modalizer in the future.

Modal types

Modalizer currently supports these Modal types:

For commercial websites: please check out the different websites to see if you may use the script.

You can choose one of these modal types in the Modalizer system plugin settings. You can not use more than one type simultaneously on your website.

Modal Type Settings

Depending on what modal type you have selected, you can have any of these settings:

SettingDescriptionJoomla! Core (SqueezeBox)ColorBoxFancyboxLyteBoxShadowBox
Style Defines the styling of the modal window. There are a number of presets to choose from. no yes no no no
Title Position Defines where (and if) the title should be displayed. no no yes no no
Animation Defines if and how the modal popup window should animate when opening/closing. no no yes yes yes
Outer Border Defines whether or not to show an outside border around the modal popup window. no no no yes no
Auto Group You can group certain filetypes automatically to create series / galleries. The modal window will get navigation arrows to go to next/previous link in the group (only works on images). no yes yes yes yes
Default Window Sizes Defines how the modal popup window is sized. You can define this separately for external sites and images (depending on the modal type). You can overrule the width and height via the modal tags. yes yes yes yes yes

Tag Syntax

Basic Syntax

Modalizer supports a special easy syntax to make new custom links in your page that open a modal popup window.

{modal url=[url of page]|[other parameters]}Link text{/modal}

Like:

{modal url=index.php?option=com_content&view=article&id=454}Lorum Ipsum{/modal}

Lorum Ipsum

{modal url=http://maps.google.com/maps?hl=en&ll=58,6&spn=0,50&cid=5560360924256306806&output=embed|width=600|height=400}Google Maps{/modal}

Google Maps

Linking an image

To make an image link to a modal page, simply surround your image with the {modal} tags:

{modal url=http://maps.google.com/maps?hl=en&ll=58,6&spn=0,50&cid=5560360924256306806&output=embed}hyperlink{/modal}

Will result in:

hyperlink

Tag Parameters

There are a number of parameters you can set in the tag:

ParameterDescriptionJoomla! Core (SqueezeBox)ColorBoxFancyboxLyteBoxShadowBox
url The url to open in the modal popup window yes yes yes yes yes
title The title to display with the modal popup window no yes yes yes yes
width The width in pixels of the modal popup window yes no no yes yes
height The height in pixels of the modal popup window yes no no yes yes
group A group name to make sets (only works on images) no yes yes yes yes
class Extra classname(s) to add to the link for styling purposes yes yes yes yes yes

Modalizing menu links

You can also use the {modal} tags in menu items to make them open in a modal popup window.

Simply surround the title with {modal}...{/modal}.
You can also add the extra parameters. If you define a url in the tag, it will overrule the menu items own url.

Template

Modalizer uses the component subtemplate to open your pages. This subtemplate is also used by the print pages, for instance.

The component subtemplate is a component.php file in your templates folder. If your template doesn't have that file, the system template is used (pretty much no styling at all).

You can set Modalizer up to use a different subtemplate, if you want (see the Modalizer system plugin settings).

If you want to customize the popup page styles, you'll have to change or create the subtemplate.

Creating a subtemplate

If your template doesn't have a component.php file, or if you want to use a different subtemplate for your popups (like a popup.php), you will have to make a subtemplate.

This is pretty simple with modt templates:

  1. Go to your templates folder, make a copy of the index.php and name it component.php (or something else if you are going to change the Modalizer subtemplate setting).
  2. Open the file and strip everything out from between the <body> tags that you don't want. Typically the only stuff you need there is:
    <body>
        <jdoc:include type="message" />
        <jdoc:include type="component" />
    </body>
  3. Optionally add an extra stylesheet to the <head> or replace the main one with a different one:
    <link rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template?>/css/component.css" type="text/css" />
  4. Now you can create the component.css in the css folder and add your desired styles there.

Note: Some templates are not very straightforward and work with includes and sometimes complete frameworks. Making an extra subtemplate for these templates is pretty complicated. In those cases you might be better off asking the template developers to create one for you.

For more info on changing the component.php, see: Customizing the print pop-up (Joomla Docs)

Specs

Specifications

Modalizer is a Joomla extension compatible with Joomla 1.5, Joomla 1.7 and Joomla 2.5.

The extension consists of:

  • a system plugin

Requirements

Modalizer will only work correctly if your setup meets these requirements:

  • Up-to-date version of Joomla!
  • PHP 5.3+
  • PHP mbstring (Multibyte String) functions should be enabled
  • MySQL 5+

Using PHP 5.2 (or lower)?
PHP 5.2 is old and support for it has stopped with the release of PHP 5.2.16 (16-Dec-2010). This means that PHP 5.2 cannot be considered stable or secure anymore.
If your host will not or cannot provide you with an up-to-date version of PHP, then you have reason enough to look for a decent host.
PHP 5.2 mainly has problems with installation of the zip packages. The extensions might work without problems for you once installed, but I can not give any guarantees on that.
>> For more detailed information, read: No more php 5.2 support - move on to php 5.3

I can not provide support for setups that do not meet the above requirements.

The core Joomla files should of course not be altered in any way.

Installation

The easiest way to install/update is via the NoNumber! Extension Manager.

If you have problems installing Modalizer, please try the manual installation process as described here:
docs.joomla.org/Installing_an_extension

Otherwise, please report this on the forum or let me know via the contact form.

Updating

If you want to update to the latest version, you do not have to uninstall first.

The easiest way to install/update is via the NoNumber! Extension Manager.

You can also update simply by installing the package via the Joomla core installation process.

Downgrading

If for some reason you need to downgrade, it is best to uninstall the extension first.

Also, you will have to uninstall the NoNumber! Framework plugin (system) (and the NoNumber Elements plugin if you have it installed).

After that you can simply install the older version zip file.

Please note that I cannot not provide support on older versions!

Open Source License

Modalizer is an Open Source Joomla extension. It is in compliance with the GNU/GPL license:
Licence: GNU/GPL GNU General Public License, version 2

Joomla is also Open Source.

Support

Need more help?

Before requesting help, make sure your installation and setup meet the requirements (see the Specs) and your extensions are up-to-date.

If you need more help, please take a look in the NoNumber! Forum.
If you can't find your answer there, please post your question. I am very willing to help!

You can also contact me via the contact form or via chat (if I'm online).

Changelog

Changelog

+ = Added ! = Removed ^ = Changed # = Fixed

09-Jan-2012 : v2.6.3
^ Updated translations: ru-RU
^ Cleaned up more code
# Fixed issue with modal tags not working in menu items with menu image

07-Nov-2011 : v2.6.2
^ Updated translations: lt-LT, th-TH
^ Cleaned code syntax (no longer guaranteed support for php 5.2.x and lower)
# Fixed issue with redirect script making page reload when not using iframe mode

16-Oct-2011 : v2.6.1
+ Added translations: sl-SI
+ Added option to disable close on click outside the modal window for some types
^ Updated Colorbox to v1.3.18
^ Updated Lytebox to v5.2
# Fixed issue with urls with anchor references
# Fixed security issue in !NoNumber! Framework plugin

08-Oct-2011 : v2.6.0
^ Improved installer
^ Moved translation language files to main package (no more language packs)
^ Cleaned up some code (like no more use of DS)
# Fixed issue with activation by multiple urls not working correctly (Joomla 1.7)

16-Sep-2011 : v2.5.0
+ Added style selection for Lytebox
^ Updated Lytebox to v5.1
^ Changed !NoNumber! Elements plugin to !NoNumber! Framework
^ Moved common language strings to !NoNumber! Framework files
# Fixed issue with area tags sometimes getting broken

05-Jul-2011 : v2.4.0
+ Joomla 1.7 compatible!
^ Updated jquery script to version 1.6.1
^ Improved loading of jquery scripts when jquery main script is not to be loaded
# Fixed issue with an unhandled language string
# Fixed issue with tags not working in menu items if syntax word is changed

18-Jun-2011 : v2.3.3
+ Added option to redirect modal pages when not opened in a modal window
^ Updated !ColorBox to v1.3.17
^ Changed layout of settings
^ Changed use of elements
# Fixed issue with links not working when having multiple classnames
# Fixed issues with classnames being lost on some types of modal links
# Fixed issue with width/height for external links not working

29-Mar-2011 : v2.3.2
# Fixed issue plugin being executed on raw format pages
# Fixed some language string issues

17-Mar-2011 : v2.3.1
^ Changed language files to be J1.6 ready
^ Updated !ColorBox to v1.3.16
# Fixed issue with tags being interpreted in frontend editor fields with very large contents

15-Jan-2011 : v2.3.0
^ Changed extension icon / logo
^ Moved iframe options to main settings (instead of in Advanced Settings)
^ Updated !ColorBox to v1.3.15
^ Updated !FancyBox to v1.3.4
^ Now removes all close window links/buttons in the modal popup window
# Fixed issue with links with onclick actions
# Fixed issue with links in popup with anchors
# Fixed issue with links in popup with target to _self
# Fixed issue with !FancyBox failing on some setups

13-Dec-2010 : v2.2.1
# Fixed issue with modal scripts also being loaded in popups (causing double modals)
# Fixed issues with document being called to early
# Fixed some issues with loading of language strings
# Cleaned up some code

25-Nov-2010 : v2.2.0
+ Added checks to see if !NoNumber! Elements plugin is installed/enabled
^ Fixed and updated all language strings

16-Nov-2010 : v2.1.0
+ Added option to define the outside border width for Fancybox
# Fixed issue with incompatibility with Mootools Upgrade plugin
# Fixed issue with tag not working in 3rd party menus with extra spans in links

18-Oct-2010 : v2.0.0
^ Completely rewritten
^ Changed and updated available modal types
+ Added ability to modalize by filetypes
+ Added ability to modalize by url (regex)
+ Added ability to use syntax tags in menu items
+ Added ability to disable on selection of components
^ Improved handling of links within modal popup windows.
! Removed a lot of overkill settings making it all simpler
! Dropped the use of own mootools script (less chance of conflicts)
^ Changed the update check
+ Added Commercial License Code support
^ Changed installation procedure (automatic installer/updater)

29-Oct-2008 : v1.2.3

Commercial License

Modalizer is completely free and you DON'T need a Commercial License Code to use it.

However, if you use my extensions on websites that you make money from, I would appreciate it if you purchase a License Code.
The License Code will remove the license message from the extensions administrator screens.

Note: If you don't want to pay for the License Code and want to continue to use the extension for free, please do. You will just have to ignore the license message in the administrator.

Note: If you have donated before and feel you should get some reduction on the price, please contact me about it... we'll sort it out :)

more information...

 

 

Here you can see the difference between the use of the extensions without and with Commercial License Code.

WITHOUT Commercial License CodeWITH Commercial License Code
Full version download yes YES yes YES
Full functionality yes YES yes YES
Message in administrator license_invalid license_valid
Encrypted no NO no NO
Free updates yes YES yes YES
Free support yes YES yes YES
Free RSS news subscription yes YES yes YES
Free holiday to Barbados no NO no NO

Download

Downloads

Modalizer is compatible with Joomla 1.5, Joomla 1.7 and Joomla 2.5

NOTE: Modalizer needs PHP 5.3+. Please see the specs for more requirements.

  • Are you going to use this extension on a commercial website? Please consider buying a License Code

More downloads...

Please clear your browsers cache after updating an extension.

NOTE: Joomla 1.6 is no longer supported. Joomla 1.6 reached end-of-life in August 2011. If you have a site running on Joomla 1.6 you are urged to upgrade to Joomla! 2.5. Modalizer will probably still work on Joomla 1.6, but any issues specific to Joomla 1.6 will not be fixed.

Tip!

Are you using multiple NoNumber! extensions?
Install the NoNumber! Extension Manager to easily keep them up-to-date.

Languages

This extension comes with the following languages:

  • [pt-BR] Brazilian Portuguese
  • [ca-ES] Catalan
  • [nl-NL] Dutch
  • [en-GB] English
  • [de-DE] German
  • [el-GR] Greek
  • [it-IT] Italian
  • [ja-JP] Japanese
  • [lt-LT] Lithuanian
  • [nb-NO] Norwegian
  • [ro-RO] Romanian
  • [ru-RU] Russian
  • [sl-SI] Slovenian
  • [es-ES] Spanish
  • [th-TH] Thai
  • [uk-UA] Ukrainian

No language pack for your language?

I welcome you to help out and get involved with translations for NoNumber! extensions.

I am using Transifex for the translations of all NoNumber! extensions. So I kindly ask you to join Transifex.

There is a translation team/group set up especially for Joomla projects: OpenTranslators.

To join, see the different steps on the right under: Translator Guide: http://opentranslators.org/en/how-to

You can find all the NoNumber! projects here: https://www.transifex.net/projects/tag/nonumber/

All language files will be updated and packed with every new release of the individual extensions.

OpenTranslators

 
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support