Keyword

Show Anchor Link if not Logged-In

  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 8 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:
<?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')) ): ?>
with this one:
<?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.

More
8 years 8 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 8 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

Please Log in or Create an account to join the conversation.

More
8 years 8 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?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 8 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

Please Log in or Create an account to join the conversation.

More
8 years 7 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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Franz Wohlkönig
  • Franz Wohlkönig's Avatar Topic Author
  • Offline
  • Platinum Member
More
8 years 7 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.


Powered by Kunena Forum