hi all,
i'd like to show you a posibillity to allow "adding comments" without a login before.
first i have to say: i don't know whether this will work on your system too as well as i don't know whether this might causes somewhere else some issues. but at least i can tell you it worked fine at all times i tried it on my system.
ok, just to be sure nothing bad will happen to your joomla or lyftenbloggie installation, backup the following files:
Joomla\components\com_lyftenbloggie\models\comments.php
Joomla\components\com_lyftenbloggie\helpers\helper.php
this are the files we're going to change.
open Joomla\components\com_lyftenbloggie\models\comments.php in some editor (e.g. notepad)
go down to row ~ 245. where you should be seeing:
if($user->guest){
JError::raiseNotice('SOME_ERROR_CODE', JText::_('YOU NEED TO BE LOGGED IN TO COMMENT'));
$error = true;
}
change this into:
// if($user->guest){
// JError::raiseNotice('SOME_ERROR_CODE', JText::_('YOU NEED TO BE LOGGED IN TO COMMENT'));
// $error = true;
// }
or delete it. but i think it's the better way just to set it as comment...
now save the file!
ok. now we're going to the next file. open Joomla\components\com_lyftenbloggie\helpers\helper.php in an editor (e.g. notepad) and go to row ~ 617. there you sould be looking at:
}
}else{
if(!$user->guest) {
?>
<div class="post-comment"><a href="#" onclick="showHiddenDiv('entryComment');return false;" id="entryComment"><?php echo JText::_('LEAVE A COMMENT'); ?></a></div>
we need to change if(!$user->guest) { into:
if($user->guest) {
or just deleted the ! .
now save this file and try your comments. from now on your guests should be able to leave comments without a registration or login before.
this was all i've done on my system and it worked fine so far. if something went wrong on your's just delete the files we've changed and replace them with the backup's you hopfully made before we've changed them.
i hope this post was helpful and it'll work on all of your systems.
Sven @ www.abblen.de