Kunena 7.0.6 & Kunena 6.4.12 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.6 [K 7.0.6] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0.

The Kunena team is also pleased to announce the twelfth version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

Question Hide BBCode [URL] for non registered users

More
16 years 1 month ago #45868 by sozzled
Replied by sozzled on topic Re: Guest Don't See Links
360236 wrote:

I am asking if there is something that can make it so if a Guest visits my website, and if they click on any post it will say "Please login to view this post" or "Please login to view this link".

So, are you saying that you don't want to hide (that is make invisible) these unspecified links. You just want to somehow "deactivate" them? Hey, I'm just replying to what you wrote, that's all. :S

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

More
16 years 1 month ago #45869 by sozzled
Replied by sozzled on topic Re: Guest Don't See Links
I've thought about your question some more: perhaps what you're asking is "Can I display a list of the topics on my forum, but not allow users to see what's been posted in those topics?" Is that really your question?

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

More
16 years 1 month ago #45871 by 360236
Replied by 360236 on topic Re: Guest Don't See Links
Yes, did my question not sound like that?

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

More
16 years 1 month ago - 16 years 1 month ago #45872 by sozzled
No, your question did not sound anything like that.

Anyway, the answer is that you can't do this without modifying the code; there are (at least) two files that need to be changed to include a test to see if the person viewing the topic is logged-in or not. If the person is not a user, then don't generate the hyperlink.

This will result in another problem, however: how you prevent users guessing the URLs of your half-and-half restricted topics. Eventually these guests will figure out how to access the restricted-but-unrestricted messages directly. You won't be able to outsmart these types without adding some ACL protection that doesn't exist in Joomla 1.5.

Personally, I think we're over-engineering a solution to a non-problem. The easiest way out of this intellectual quagmire is to restrict certain categories to registered, logged-in users (this is what most people do) but that also means that those categories and the topics in them are hidden from guests.

Not easy to solve but at least we've clarified the question. :)
Last edit: 16 years 1 month ago by sozzled.

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

  • C0n
  • C0n's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
15 years 8 months ago - 15 years 8 months ago #62585 by C0n

@quila wrote: Hi Milutin,

replace the file kunena.parser.php

components / com_kunena / lib /

with this one attached. This hack hide all link in the post from unregistered user.

File Attachment:

File Name: kunena-20091006.zip
File Size:10.55 KB


Kunena 1.5.6

etusha wrote

will be good if u add this hack at KUNENA 1.5.7 ( by default )


yes will be good but there is a problem if someone want to show link.
In that case we need to have possibility to choose in the configuration, but this is for K1.6 ;)


Thanks quila for this example code i took a look and studdied it for a bit and then compared it to the current kunena 1.5.12 code and relised how you were making it invisible to unregistered users.
Code:
$kunena_my = &JFactory::getUser(); if ($kunena_my->id==0) { // Hide between content from non registered users } else { // The code for the url tags to be displayed }
Last edit: 15 years 8 months ago by C0n.

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

  • C0n
  • C0n's Avatar
  • Offline
  • Premium Member
  • Premium Member
  • Only the strongest will survive
More
15 years 8 months ago - 15 years 8 months ago #62587 by C0n
Although i already found a bug with both sources :p that this will only work on url links that have been wrapped in url tags
Code:
[url][/url]
if its not been wrapped in url tags and it just uses www.domain.com then it is still visible to guest users :O ^_^ :silly:
Last edit: 15 years 8 months ago by C0n.

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

Time to create page: 0.371 seconds