Force www with .htaccess

Sometimes it is useful to force www in Joomla, especially when using Joomla + VirtueMart estore to avoid double login issues.  Insert these lines in your .htaccess file that resides in your websites root.  RewriteCond %{HTTP_HOST} !^$  RewriteCond %{HTTP_HOST} !^www\. [NC]  RewriteCond %{HTTPS}s ^on(s)|  RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]   Liked this tutorial?  Check out Like […]

Insert a module in a Joomla article

If you want to insert a module inside an article, you can do so by using these simple steps: 1. assign a module position to your module that is totally unused. The module position needs to be free. If necessary, create a new module position. 2. Call the module inside your article with the line […]

Change remind username / password view

If you want to change the way your Joomla site’s password resetting or username reminding view looks, you have to edit Joomla’s core files or create template overrides for those files. The file for remind username view: \components\com_user\views\remind\tmpl\default.php The file for reset password view: \components\com_user\views\reset\tmpl\default.php Both files look almost the same. To alter the looks […]

Design / edit / modify log in view in Joomla

When a user enters their credentials wrong in Joomla login module, they are redirected to index.php?option=com_user&view=login. Modify how the login view looks. This you can do in the file \components\com_user\views\login\tmpl\default.php Find the code that generates the log in fields: {code}<?php echo $this->loadTemplate($this->type); ?>{/code} Create a div around it so you can apply additional styles to […]

PHP code to get active menu item ID in Joomla

When you need to get your active menu item ID in Joomla to display some specific content for only that menu item or just to show the ID of the menu item, you’ll need to edit your index.php file in your templates folder (or use a third party plugin to add a PHP module somewhere […]

Display code (PHP, CSS etc) in Joomla article

When you want to display some code samples in your Joomla articles, you will have to install a third-party plugin for that. I recommend Syntax Highlighter (Joomler Syntax Highlighter in Joomla Extensions), which can be used in Joomla 1.5, 1.6, 1.7 and 2.5. After you have downloaded, installed and enabled the Syntax Highlighter plugin you […]

Joomla JCE editor settings to allow iframe and youtube video embedding in html

Iframe & YouTube video in Joomla JCE Editor

When using JCE Editor (let’s admit, we all do), you will find yourself in trouble sometimes, as JCE will be cleaning up your HTML code and clear iframe code, even if you have followed the steps in how to allow YouTube videos in Joomla articles which describes, how to configure Joomla to allow code inserted […]

Edit Feed Module Style in Joomla

Joomla feed module has its CSS classes coded into the module. The class on the module links is “feed-link” and feed link titles are presented as h4 and h5 and feed items are listed in an unordered list (ul/li).  The code that displays your mod_feed in a newsfeed module on your site comes from modules\mod_feed\tmpl\default.php. […]

Edit admin-created user notification e-mail in Joomla

Recently I set up a website where user registration was prohibited and all users were created by site admin only. Therefore we needed to edit the e-mails that are sent to our newly created Joomla site users to their inboxes. Here’s how to edit the admin created user notification e-mail sent to user, this has […]

Translate QContacts field labels

If you need a nice contact us page with a contact form including captcha to reduce spam, then QContacts might be for you. I used it and needed to translate the field labels to another language. It was a bit of searhing, but the label names for QContacts contact page (the one you create a […]