- Posts: 4
- Thank you received: 0
Kunena 6.3.0 released
The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3
This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.
The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.
Question Prevent View of Messages
I want to prevent guests from viewing the messages but also keep them to see the category and the message title. Actually, a guest should see only the titles. How do I do this?
Thanks..
Please Log in or Create an account to join the conversation.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
www.medikalforum.net
I think I have to change the "view.php" in kunena and insert something like that:
$user =& JFactory::getUser();
if ($user->get('guest')) {
echo "You should register to see the content of this message";
}
else {
....(the code that is present in kunena)......
The problem is that I could not find where to place this piece of code.
Actually, another way may be this:
When you view a message as "guest", you can also see the "forum tools" on the right. If you click on "post new topic" as "guest", you get a message that you should register. I want exactly this to happen in my case.
Thanks for interest..
Please Log in or Create an account to join the conversation.
there is a more ways to do this, just a quick two.
1). open the file kunena.php line 579, in this way the Guest can't see the page of the message.
change this/components/com_kunena/
2). open the file message.php line 100, in this way the Guest see all post except the content.
changr this/components/com_kunena/template/default_ex/
Hope this helps.
Regards
Please Log in or Create an account to join the conversation.
Actually, another way may be this:
When you view a message as "guest", you can also see the "forum tools" on the right. If you click on "post new topic" as "guest", you get a message that you should register. I want exactly this to happen in my case.
Hi again,
for this try the file in attachment and let me know if work.
Regards
Please Log in or Create an account to join the conversation.
I have tried your first simple suggestion and it worked. The problem now is that when onmouseover the message title, the content can be viewed. I get rid of this by changing flat.php line 236:
<?php echo CKunenaLink::GetThreadLink('view', $leaf->catid, $leaf->id, kunena_htmlspecialchars(stripslashes($leaf->subject)), kunena_htmlspecialchars(stripslashes($messagetext[$leaf->id])) , 'follow', 'fb-topic-title fbm');?>
to
<?php echo CKunenaLink::GetThreadLink('view', $leaf->catid, $leaf->id, kunena_htmlspecialchars(stripslashes($leaf->subject)), kunena_htmlspecialchars(stripslashes($leaf->subject)), 'follow', 'fb-topic-title fbm');?>
Now, when onmouseover the message title, it shows message title.
Should I make any other changes?
Please Log in or Create an account to join the conversation.
Glad to help you.
I think no. That's all. Remember, this is a hack and next time when you upgrade Kunena, need to do again.
Regards
Please Log in or Create an account to join the conversation.
David
Please Log in or Create an account to join the conversation.