- Posts: 80
- Thank you received: 1
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] 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
Question profile link should not display in forum stats
17 years 2 weeks ago #14216
by emeyer
profile link should not display in forum stats was created by emeyer
HI I am very happy with Kunena 1.09 and Joomla 1.5, expeically the integraoitn with Community Builder which works wonderfully.
My first little site is set up not to display user profiles unless they are registered, and also to display forum stats. However there is a link to the most recent user profile in the forum stats, which is therefore a broken link unless the user is logged in.
Is there a way to stop a broken link to the user profile for visitors in the forum stats section? it is generating broken link reports from Google.
My first little site is set up not to display user profiles unless they are registered, and also to display forum stats. However there is a link to the most recent user profile in the forum stats, which is therefore a broken link unless the user is logged in.
Is there a way to stop a broken link to the user profile for visitors in the forum stats section? it is generating broken link reports from Google.
Please Log in or Create an account to join the conversation.
17 years 2 weeks ago #14221
by emeyer
Replied by emeyer on topic Re:profile link should not display in forum stats
More information: I enabled profile viewing in Community builder for unregistered users, and the profle stats link is still broken, because the link is trying to return a Kunena forum link instead of a community builder link.
It is a larger problem to stop profile viewing by unregistered browsers, because all the forum posts also have links to the profiles which still work for unregistered viewers, even if profile browsing is restricted in community builder. I think this is not such a big problem by restricting details for users in the public profile view, but the link to the user in forum stats is still a problem.
It is a larger problem to stop profile viewing by unregistered browsers, because all the forum posts also have links to the profiles which still work for unregistered viewers, even if profile browsing is restricted in community builder. I think this is not such a big problem by restricting details for users in the public profile view, but the link to the user in forum stats is still a problem.
Please Log in or Create an account to join the conversation.
17 years 2 weeks ago - 17 years 2 weeks ago #14226
by emeyer
Replied by emeyer on topic Re:profile link should not display in forum stats
The broken link could be a relic templating issue from an upgrade. My template had the following in template/default/plugin/stats/frontstats.php:
I changed it to
and the link works, now I have enabled cb browsing of profiles in the frontend. I guess there should be a check in lib/kunena.link.class.php if profile browsing is enabled, and if not, to display a message that the user needs to be logged in to view profiles. Otherwise it presents the general 'unauthorized to view resource' message.
I was able to get this working by editing frontstats.php from
Code:
<?php echo _STAT_LATEST_MEMBERS; ?>:<b> <a href = "<?php echo sefRelToAbs(KUNENA_PROFILE_LINK_SUFFIX.''.$lastestmemberid)?>" title = "<?php echo _STAT_PROFILE_INFO; ?> <?php echo $lastestmember;?>"><?php echo $lastestmember; ?></a> </b>
Code:
<?php echo _STAT_LATEST_MEMBERS; ?>:<b> <?php echo CKunenaLink::GetProfileLink($fbConfig, $lastestmemberid, $lastestmember); ?></b>
and the link works, now I have enabled cb browsing of profiles in the frontend. I guess there should be a check in lib/kunena.link.class.php if profile browsing is enabled, and if not, to display a message that the user needs to be logged in to view profiles. Otherwise it presents the general 'unauthorized to view resource' message.
I was able to get this working by editing frontstats.php from
Last edit: 17 years 2 weeks ago by emeyer.
Please Log in or Create an account to join the conversation.
17 years 1 week ago - 17 years 1 week ago #14301
by Matias
Replied by Matias on topic Re:profile link should not display in forum stats
Nice catch! Will fix that soon.
Last edit: 17 years 1 week ago by Matias.
Please Log in or Create an account to join the conversation.
17 years 1 week ago #14586
by emeyer
Replied by emeyer on topic Re:profile link should not display in forum stats
The same problem occurs in recentposts.php
It's more complicated if the post is by a guest, there is no logic in place not to display the link if the userid is not a registered one. I just set "$showname=o;" at the top of recentposts.php as a temporary workaround.
It's more complicated if the post is by a guest, there is no logic in place not to display the link if the userid is not a registered one. I just set "$showname=o;" at the top of recentposts.php as a temporary workaround.
Please Log in or Create an account to join the conversation.
17 years 1 week ago #14608
by Matias
Replied by Matias on topic Re:profile link should not display in forum stats
We have just made test release from 1.0.10, but if there will be other bug fixes as well, I will fix this one, too.
If you find more of those, please report them in here.
If you find more of those, please report them in here.
Please Log in or Create an account to join the conversation.
Time to create page: 0.239 seconds