Keyword

Restrict K2 Items Full Text - 2 years after

More
11 years 10 months ago #106453 by Alex
Hi,

Building a website for my children school. Basically, I need to restrict K2 Items Full Text to certain User Groups (Joomla Core or Community Builder, it's the same), so anyone can see introtext, but only registered users can see full text.

I found this thread but a) it's outdated and b) attached hack is no more downloadable. :(

Any idea of a workaround / hack? I can edit a PHP file but NOT yeat a pro of K2 (so, if you mention template, pls explain).

Joomla 2.5.8
Latest K2
Latest Community Builder (if you need it)

Pls, I really need this!! :huh:

Thanks in advance,

Alex

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

More
11 years 10 months ago #106454 by william white
Replied by william white on topic Re: Restrict K2 Items Full Text - 2 years after
In the k2 template override file item.php place the fulltext block within the if an else. Put your message after the else

$user =& JFactory::getUser();

if (!$user->guest) {
display fulltext
} else {
display message to registar to readmore
}

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

More
11 years 10 months ago #106455 by Gregwh

Alex wrote: Hi,

Building a website for my children school. Basically, I need to restrict K2 Items Full Text to certain User Groups (Joomla Core or Community Builder, it's the same), so anyone can see introtext, but only registered users can see full text.

I found this thread but a) it's outdated and b) attached hack is no more downloadable. :(

Any idea of a workaround / hack? I can edit a PHP file but NOT yeat a pro of K2 (so, if you mention template, pls explain).

Joomla 2.5.8
Latest K2
Latest Community Builder (if you need it)

Pls, I really need this!! :huh:

Thanks in advance,

Alex



There are extensions you can download/buy at Joomla.org to accomplish this.

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

  • Caroline Bolingbroke
  • Caroline Bolingbroke's Avatar
  • Offline
  • New Member
More
11 years 10 months ago - 11 years 10 months ago #106456 by Caroline Bolingbroke
Replied by Caroline Bolingbroke on topic Re: Restrict K2 Items Full Text - 2 years after
Hi Alex, I am doing this on my site too. I've tried a couple of extensions but found the best one for this to be Nice Content Access by Trinitronic which I've found works fine in my K2 items. It is a paid-for extension but not too expensive and the support offered by the owner Michael is fantastic. Hope I'm not out of turn posting this on the forum, as I'm a new user but it should fit your needs perfectly.
trinitronic.com/joomla/nice-content-access
Good luck!
Caroline

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


Powered by Kunena Forum