0
Hi,
On your demo page, a default message is shown on the comment section to a guest informing them that only a registered user can write a comment.
However, on my site no such a message shows up on the comment section. Please help me add the message for guests.
thanks,
On your demo page, a default message is shown on the comment section to a guest informing them that only a registered user can write a comment.
However, on my site no such a message shows up on the comment section. Please help me add the message for guests.
thanks,
Responses (10)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0open /components/com_muscol/views/album/ympl/default.php
try to search for this piece of code:
switch($this->params->get('commentsystem')){
some line below, you'll find this:
if($user->id){
well, what yo have to do is to add an "else" sentence after this IF is closed (do you know some PHP?). so, find the "}" closing bracket, and add this:
else{echo "Register to post comments";}
or any code you like
do you understand? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Just some additional info:
To make it show that there are no messages yet and look like this on empty set:
Comments (0)
----------------------------------------------------------------------------------------
Write Comments
----------------------------------------------------------------------------------------
You must be logged in to post a comment. Please register if you
do not have an account yet.
change the code for the else part to something like this:
From:
To:
And for the section above it to show there are 0 comments so far, you need to change the code few lines above, just below the default switch from:
To:
default:
The following inner foreach loop structure would still be fine with this change.
The code enclosure directive does not seem to escape the character well. Germi, I'll Email you the code segments if you could please delete this post and repost it with the update that include the codes. Thanks. -
Accepted Answer
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »