- Posts: 529
COMMUNITY FORUM
Show Anchor Link if not Logged-In
- Franz Wohlkönig
-
Topic Author
- Offline
- Platinum Member
Less
More
9 years 9 months ago #146234
by Franz Wohlkönig
Show Anchor Link if not Logged-In was created by Franz Wohlkönig
Hi,
Anchor Link to Comment and Comment Count in Item is shown only to Registered Users.
i changed in item.php this part:
with this one:
Please can you explain, why Anchor Link is by default shown only to Registered? I know, there are Reasons, but i don't get which.
Regards
Anchor Link to Comment and Comment Count in Item is shown only to Registered Users.
i changed in item.php this part:
<?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' && !$this->user->guest) || ($this->item->params->get('comments') == '1')) ): ?>
<?php if($this->item->params->get('itemCommentsAnchor') && $this->item->params->get('itemComments') && ( ($this->item->params->get('comments') == '2' )) ): ?>
Please can you explain, why Anchor Link is by default shown only to Registered? I know, there are Reasons, but i don't get which.
Regards
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
9 years 9 months ago #146240
by Lefteris
Replied by Lefteris on topic Show Anchor Link if not Logged-In
Hi,
No, that's not the case. The anchor will be displayed if user can see the comments. Check the K2 parameters. If you want to have comments enabled for everyone just make sure to enable antispam protection provided by K2.
No, that's not the case. The anchor will be displayed if user can see the comments. Check the K2 parameters. If you want to have comments enabled for everyone just make sure to enable antispam protection provided by K2.
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
-
Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 529
9 years 9 months ago #146244
by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Show Anchor Link if not Logged-In
Hi Lefteris,
thanks for Info, so its a misbehavior of my php/css/templates-Settings. Its all about showing Anchor-Link for Comments for Everybody, not about Comments itself.
Regards
thanks for Info, so its a misbehavior of my php/css/templates-Settings. Its all about showing Anchor-Link for Comments for Everybody, not about Comments itself.
Regards
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
9 years 9 months ago #146253
by Lefteris
Replied by Lefteris on topic Show Anchor Link if not Logged-In
Is there a link to the page with the issue? Are comments set only for registered users or not?
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
-
Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 529
9 years 9 months ago #146263
by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Show Anchor Link if not Logged-In
Hi Lefteris,
i've learned, that setting Comments to registered Users the Link to Comments and Comments-Counter are only showed, if a User is Logged-in. I thought, they are different Things and i can show "at the End of Article there ar xx Comments" but at same time only comments by Registered.
So now with the modifiaction in my 1st Post all is fine.
Regards
i've learned, that setting Comments to registered Users the Link to Comments and Comments-Counter are only showed, if a User is Logged-in. I thought, they are different Things and i can show "at the End of Article there ar xx Comments" but at same time only comments by Registered.
So now with the modifiaction in my 1st Post all is fine.
Regards
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
9 years 9 months ago #146277
by Lefteris
Replied by Lefteris on topic Show Anchor Link if not Logged-In
Your modification is fine. Just make sure to apply it to a template override and not in the core files. Otherwise you will lose your changes when an update is out.
Please Log in or Create an account to join the conversation.
- Franz Wohlkönig
-
Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 529
9 years 9 months ago #146294
by Franz Wohlkönig
Replied by Franz Wohlkönig on topic Show Anchor Link if not Logged-In
Using Overrides is so normal that i forgot to wrote it*g
Please Log in or Create an account to join the conversation.