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

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Removing profile links from main forum page...

More
16 years 5 months ago #33534 by Fran
About six months ago, on another thread that is now locked...

emeyer wrote:

Probably sh404sef could be faster, it's true. I don't have any benchmark data and haven't looked into the caching algorithm. I would guess it's a linear search. The sh404sef maintainer would probably be glad of assistance if he was contacted directly.

Here's another thought...current Google SEO documents state that pages should not contain more than a hundred links (some other pages on the Web suggest this information is out of date, but the Google docs state they were updated this year). So, reducing the number of links on densely linked pages probably improves ranking if there are very many. Also, this reduces any SEF processing!

So, on the categories and forum thread lists, I removed links to member profiles from the template, just putting the name without a link. This reduced the number of content links which need to be processed on each page by ~30% (the profile links are still available in the message threads). It's just a thought which may be useful to some.


Does anyone know how to remove the links to member profiles from the template, just putting the name without a link? I would appreciate help with this. THanks.

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

More
16 years 5 months ago #33550 by xillibit
Hello,

it's possible, open the file components\com_kunena\template\default_ex\listcat.php and at line 582 replace this :
Code:
echo CKunenaLink::GetProfileLink($fbConfig, $latestuserid, $latestname);

by this :
Code:
echo $latestname;

open too the file components\com_kunena\template\default_ex\flat.php and at line 441 replace this :
Code:
echo ' '._GEN_BY. ' '.CKunenaLink::GetProfileLink($fbConfig, $last_reply[$leaf->id]->userid, stripslashes($last_reply[$leaf->id]->name), 'nofollow', 'topic_latest_post_user'); ?>

with this :
Code:
echo ' '._GEN_BY. ' '.stripslashes($last_reply[$leaf->id]->name); ?>

I don't provide support by PM, because this can be useful for someone else.

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

More
16 years 4 months ago #34863 by RCheesley
I also wanted to remove from the top listing which was

components\com_kunena\template\default_ex\fb_pathway.php

Replace line 130 with
Code:
$fireonline .= $username . $divider;

Just working on the other locations - a switch in the back end to have no profiles would be eternally useful!

Ruth

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

More
16 years 4 months ago - 16 years 4 months ago #34866 by RCheesley
To remove links to profiles in "Who is Online", edit

components\com_kunena\template\default\plugin\who\whoisonline.php

Replace line 31 with
Code:
<?php echo $user->username; ?> &nbsp;

To remove link to user list & profile link for latest user on Forum Stats (when you click on the forum stats)

components\com_kunena\template\default\plugin\stats\stats.php

Replace line 76-77 with
Code:
<?php echo _STAT_TOTAL_USERS; ?>:<b> <?php echo $totalmembers; ?></b> &nbsp; <?php echo _STAT_LATEST_MEMBERS; ?>:<b> <?php echo $lastestmember; ?></b>

To remove links to user profiles on popular users,

components\com_kunena\template\default\plugin\stats\stats.php

Replace line 213 with
Code:
<?php echo $poster->username; ?>

You probably want to remove the users by profile hits section (as you're not using the profiles, so delete/comment out the bits between <b and f> (lines 240-295).

The process is quite similar for the front end stats which appear beneath the categories page. Simply change the following lines in

components\com_kunena\template\default\plugin\stats\frontstats.php

To remove link to members list
Line 68:
Code:
<?php echo _STAT_TOTAL_USERS; ?>:<b> <?php echo $totalmembers; ?></b> To remove link to latest member profile line 69: [code] &nbsp; <?php echo _STAT_LATEST_MEMBERS; ?>:<b> <?php echo $lastestmember; ?></b>

To remove the bottom link to User List delete on line 79:
Code:
&raquo; <a href="<?php echo $userlist;?>"><?php echo _STAT_USERLIST; ?></a>

To remove profile link from "currently browsing"

components\com_kunena\templates\default_ex\fb_layout.php
Replace line 130 with:
Code:
echo $user->username . $divider.' ';

Ruth
Last edit: 16 years 4 months ago by RCheesley.

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

More
16 years 4 months ago #34871 by RCheesley
Before I go insane, if someone could please advise me where to find the files responsible for the following I'd be most appreciative:

1. Recent discussions, the link to profile under the topic
2. Viewing a thread - remove the link to profiles on RHS by avatar
3. Remove profile button on above page to the right of PM icon
4. Remove the "My Profile" tab from the menu
5. Remove the link to profiles when viewing threads in a forum (appears after date posted, before number of views.

And yet another plea, give the option to turn OFF profiles.

This has taken me all blimmin night trying to figure out what files are involved where!

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

More
16 years 4 months ago #34875 by @quila
Fran wrote:

Does anyone know how to remove the links to member profiles from the template, just putting the name without a link? I would appreciate help with this. THanks.


Hello Fran

try to do in this way.
Open the file kunena.link.class.php

components / com_kunena / lib /

and comment the line 213 (Kunena 1.5.7) red color line

function GetProfileURL($userid)
{
$fbConfig =& CKunenaConfig::getInstance();
// Only create links for valid users
if ($userid > 0)
{
if($fbConfig->fb_profile == 'cb')
{
$kunenaProfile =& CKunenaCBProfile::getInstance();
return $kunenaProfile->getProfileURL($userid);
}
elseif ($fbConfig->fb_profile == 'jomsocial')
{
return CRoute::_('index.php?option=com_community&view=profile&userid='.$userid);
}
elseif ($fbConfig->fb_profile == 'aup')
{
$api_AUP = JPATH_SITE.DS.'components'.DS.'com_alphauserpoints'.DS.'helper.php';
if ( file_exists($api_AUP)) {
$useridAUP = AlphaUserPointsHelper::getAnyUserReferreID( $userid );
return JRoute::_(KUNENA_PROFILE_LINK_SUFFIX.$useridAUP);
}
}
else
{
//return JRoute::_(KUNENA_PROFILE_LINK_SUFFIX.$userid);
}
}
return '';
}


I think this will disable the profile link in whole forum

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

Time to create page: 0.230 seconds