Practical Joomla!’s RSS Feeds

How To Make Joomla! Allow Users With The Same Mail Address

 The Joomla! CMS is created to allow multiple users to add content to the website. This is no problem if you actually have users logging into the system and adding their content, but imagine the following all too common scenario:

You have multiple content writers sending you their content, and you want to post their content using their name. The writers should not be able to add content themselves, but it is done by you.

The way Joomla! works, is that each user name has to have its own unique mail address, which is logical, but not very practical when they do not add their writings themselves. What you want is having multiple users sharing one mail address, so you do not have to set up mail addresses for all these users, which are not being used anyway.

There is a workaround to have Joomla! allow multiple users using the same mail address, but it requires a bit of changing code: 

  • Fire up your favorite FTP application – I use CuteFTP – and go to your web server
  • In your Joomla! install folder, go to folder libraries/joomla/database/table
  • Download file user.php to your desktop (or a location you prefer) and create a safety copy of the original file (user-original.php or something similar)
  • Open file user.php using Notepad and do a search for the phrase 'check for existing email'
  • You will find the following code:

       // check for existing email
      $query = 'SELECT id'
       . ' FROM #__users '
       . ' WHERE email = '. $this->_db->Quote($this->email)
       . ' AND id != '. (int) $this->id
       ;
      $this->_db->setQuery( $query );
      $xid = intval( $this->_db->loadResult() );
      if ($xid && $xid != intval( $this->id )) {
       $this->setError( JText::_( 'WARNREG_EMAIL_INUSE' ) );
       return false;
      }

  • Delete all of these lines (nothing more, nothing less) and save the file
  • Upload file user.php to the server to the same location you retrieved it from – folder libraries/joomla/database/table – and overwrite the original file

Now Joomla! will allow multiple users using the same mail address!

Beware: when you update your Joomla! install, user.php will be overwritten and these changes will have to be done manually again!

Bookmark and Share
_____________________________________________________________________________________________

Robin Roelofsen

"I think complexity is mostly sort of crummy stuff that is there because it's too expensive to change the interface."
Jaron Lanier

How To Manually Upgrade Joomla!

When I created my main Joomla! site, I installed Joomla! using Fantastico, as described in this post.

However, I set that site up in a temporary folder while my original site was still running on HTML. When I finished the Joomla! site, I backed up the site (using JoomlaPack, now changing names to Akeeba Backup), deleted

Read the post at How To Manually Upgrade Joomla!

How To Prevent Visitors From Running Into Operation Aborted Errors

Sometimes visitors to your Joomla! site using Internet Explorer have trouble loading pages, getting an error saying:

'Internet Explorer cannot open the Internet site http://www.\<your site>/<your page>.html. Operation aborted'

 

I had this same problem happening on my site. I could not see the error myself as I am using IE 8, but visitors using a lower IE version

Read the post at How To Prevent Visitors From Running Into Operation Aborted Errors

Resetting Joomla! Article Hits Counters to Zero

When you have been busy setting up a Joomla! site, checking all the pages multiple times, and you want to release the site officially, you will find that you either have to live with all the article hits counters set to the number of times you visited these articles, or you have to reset the

Read the post at Resetting Joomla! Article Hits Counters to Zero

Changing the Mail Subject Line for JForms

An issue that had been bugging me for a while now was the fact that JForms, I guess the best form creation plugin around for Joomla!, sends out all mail messages sent through the forms with:

subject line 'New entry added' to the administrator (me)
subject line 'Your entry has been received' for the confirmation mail to the

Read the post at Changing The Mail Subject Line For JForms

What To Do When Images Disappear In Joomla!

Today I ran into an issue on one of my Joomla! sites that had me baffled…

When I went to my site and into one of the categories, everything looked as it should. However, when I refreshed the page using IE's Refresh button, all images on that page disappeared and did not return until I cleared

Read the post at What To Do When Images Disappear In Joomla!

Setting Up Joomla! 1.5 Using Fantastico

So you want to set up a new site, and you have decided it’s gonna be a Joomla! site? There are two ways to go about this, depending on your preference and your host’s possibilities: setting up Joomla! using the download from joomla.org or setting up Joomla! using your host’s cpanel interface

Read the post at Setting Up Joomla! 1.5 Using Fantastico

Thinking About Using Joomla!?

You want to set up a new site, or convert an existing site to a better, more manageable system, and you think Joomla! might be a good solution to your needs? Well… let me tell you a little bit about Joomla! first.

 

What is Joomla!?

Joomla! is the most popular Open Source Content Management System in the world

Read the post at Thinking About Using Joomla!?

Not Another Joomla! Blog?!

Oh no, not another blog on Joomla! I can hear you think, and you are partially right: there are a myriad of Joomla! blogs on the Internet. So what makes this blog different? It might be best if I introduce myself and tell you why on God’s green earth I started the Practical Joomla!

Read the post at Not Another Joomla! Blog?!