MosPasswort - protect content with a password Plugin

With this Mambot you can protect several contentitems with a password. To see the Content, the visitors dont have to register, they only need to know the password.
Just type {password} in the Content you want to protect. Then the global password from the Mambot-settings is used.
Also a password can be given in the contentas a parameter. For multiple passwords you can repeat the Mambot-Code. The global password is working, too. Ex:
Code:

{password test}{password 22} I see it!

This Content can be watched with the global password, with 'test' and with '22'.


*Note* The version for Joomla 1.0 won't be updated any more.

Updated: now using JText and language files.
Added: Option to store success in session (BETA)

Report

byMolly on June 14, 2009
Had this simple plugin up and running within minutes on Joomla 1.5.11 and it did exactly what I wanted. I now have password protected content. Well done to the developer, keep up the good work.

Regards
Installed with ease, added the {password content}
navigated to the protected page, and true enough it comes up with a prompt for a password.
Thank you for this simple to use and effective add-on. I am looking forward to future more enhanced versions which I hope you will develop.
It works well on my site which is currently running 1.5.10
I have tested this plugin on my website and found I had to make a change in the code as somebody else has already described.

Once I changed the code it worked perfectly on my JOOMLA 1.5.9 installation. Not all servers have the up to date PHP5 running so you will have to change this as a matter of course I think.

I have done this already so you can visit my website at sol22.com to find the fixed files for J1.5.9 along with instructions in english. I would respectfully advise the developer to change their BOT asap to accomodate all us PHP4 users.

Thanks very much to the developer for this excellent simple content protection tool, it now works as designed.

Very good, please keep up the good work and please keep it free!

many thanks
byRamil Valitov on January 28, 2009
Very very useful plugin!
1) Works great... but only under PHP5. For PHP4 users you must modify file mospasswort.php located in "plugins/content" directory: change line #37:

$mosConfig_lang = &JFactory::getLanguage()->getBackwardLang();

to

$mosTemp=&JFactory::getLanguage();
$mosConfig_lang = $mosTemp->getBackwardLang();

After that code works fine in both PHP4 and PHP5, so it's advisable for the author to implement this changes in the original package.

2) multilingual approach is hard-coded in the source file mospasswort.php. Instead of that, it's better to allow the user enter desired language-specific words in properties of the plugin at Joomla administrator panel. By doing this, it's possible to use JoomFish! or other extensions to display multilingual web-sites.

Once again, it's a great plugin!
Owner's reply

1) removed completely, since I'm using language files now
2) --> no need to add translation in Backend

bysaleen98r on January 27, 2009
This is an easy and simple module to set up and use. Initially, it will not make sense because most instructions are in German.

Here's quick config for Joomla 1.5 for non-German users:
1. Make sure to download the one for Joomla 1.5v. There's one that runs natively.
2. Install.
3. You must enable it in Plugin Manager, under parameters. (1 of 2)
4. You must enable it, under details. (2 of 2)
5. Change the field passwort - XXXXXXXX
bywallytbull on January 23, 2009
Works well. Easy to implement. Very practical. You do have to re-enter the password if the page is refreshed. That could be a plus or negative in different circumstances. It would be nice to have a parameter to not require re-login for nnn seconds.
Excellent extension. I was looking for a simple way to password protect different pages on my site, and this is perfeeect. Just install, put the piece of code into a content area, and that's it! Beautiful job developers, thank you!
It's so simple, at first I could not figure out how to use it.

So here's what you do.

Suppose you have the following content on a page. But you want to protect it.

Like the following "I am in love with Joomla"

Once you activate the mambot you type {password I am in love with Joomla}

Presto. It's protected by the password you set in the mambot.

Simple but works nicely!
I had to edit the mambot settings with a new global password before it would work for me. Then, the global password didn't seem to work at all, but if I specify a password in the content, that does work.
It installed just fine (no errors). It looks really easy to use, but when I enter something like "{password} hidden text" it just displays the hidden text without asking for a password (doesn't work). Joomla 1.0.15.
byteddyboy on February 8, 2008
It does what it says. A useful extension to give site privileges to certain users, especially given Joomla's weakness in this area.
I'm looking for a way to hide pricing information from users until they have signed up for my autoresponder and received the password. This would allow me to do this but it won't work on my site.
Owner's reply

I'm sorry. Do you use OpenSEF or another SEF-Addon? There are sometimes Problems and I dn't know why.

bymag112 on September 16, 2007
I have been looking for that.

Easy to use and it gives the necessary security for some information. Maybe it is very easy to hack but the "normal" user will not see the information!

The description above is not good. Please go to the authors website and copy it's code area! Maybe the programmer will change the syntax from the german {passwort} to english {password}
Owner's reply

Thanks, I copied the description. Also the texts are now in English and German. The syntax is now {password} !!!!! You have to change it in the contentitems