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 Remove login/logout and register links in Kunena

More
16 years 8 months ago - 16 years 8 months ago #25748 by sozzled
This forum is asked the question many times: how can I remove the login, logout, register and lost password links in Kunena? This is of particular interest to those who have alternative ways of managing these functions but who still want to keep the other features in the Kunena "profilebox". B)

The solution lies in modifying the file ../components/com_kunena/template/default/plugin/profilebox/profilebox.php. To save people the trouble, I am including the modified [K 1.5.4] source code here .

Attachment profilebox.txt not found

The effects of the changes are shown in the two images that follow:

(a) before login:


(b) after login:
Last edit: 16 years 8 months ago by sozzled.

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

More
16 years 8 months ago #26895 by David Boggitt
Hi,

Will this code be the same for version 1.5.5 and could I please beg the developers to add the option to disable this line (but keep the 'Welcome' line) in the admin side.

Many thanks,

Dave.

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

More
16 years 2 weeks ago - 16 years 2 weeks ago #45597 by fishing_in_israel
sozzled wrote:

This forum is asked the question many times: how can I remove the login, logout, register and lost password links in Kunena? This is of particular interest to those who have alternative ways of managing these functions but who still want to keep the other features in the Kunena "profilebox". B)

The solution lies in modifying the file ../components/com_kunena/template/default/plugin/profilebox/profilebox.php. To save people the trouble, I am including the modified [K 1.5.4] source code here .

Attachment profilebox.txt not found

The effects of the changes are shown in the two images that follow:

(a) before login:


(b) after login:


This looks like the solution to my needs :)
Is it compatible with Kunena 1.5.11 ?

I just edited the file: components/com_kunena/template/default/plugin/profilebox/profilebox.php like so:

Overwrite (lines 194 to 200):

<br/> <?php echo _PROFILEBOX_PLEASE; ?>

<a href = "<?php echo $loginlink;?>"><?php echo _PROFILEBOX_LOGIN; ?></a> <?php echo _PROFILEBOX_OR; ?> <a href = "<?php echo $registerlink;?>"><?php echo _PROFILEBOX_REGISTER; ?></a>.

&nbsp;&nbsp;

<a href = "<?php echo $lostpasslink;?>"><?php echo _PROFILEBOX_LOST_PASSWORD; ?></a>


with:

<br/> <?php echo _PROFILEBOX_PLEASE; ?> <?php echo _PROFILEBOX_LOGIN; ?> <?php echo _PROFILEBOX_OR; ?> <?php echo _PROFILEBOX_REGISTER; ?>.

Basically it removes the hyperlinks.

And to remove to 'Logout' link:
Remove from line 139:
| <a href = "<?php echo $logoutlink;?>"><?php echo _PROFILEBOX_LOGOUT; ?></a>

I tested it on a local install just to make sure it works.

Could someone more knowledgeable than me confirm that this is OK.....
Last edit: 16 years 2 weeks ago by fishing_in_israel. Reason: typo

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

More
15 years 10 months ago #50851 by Hinson
I have a similar but different question. I don't want to remove the links, but I do want to change the wording from "Please Login or Register" to Please Login or Register to view forum contents.

I'm doing this in hopes that more 'guests' will be encouraged to register without having to allow them access to the contents of the forum.

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

More
15 years 10 months ago - 15 years 10 months ago #50852 by Hinson
Another question: I just realized that I neglected to check the 'subscribe' box and it cannot be done via 'edit.' Is there any way to set the default to subscribe and have the poster UNcheck if s/he doesn't want email notifications?
Last edit: 15 years 10 months ago by sozzled. Reason: Changed subject to improve search relevance

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

More
15 years 10 months ago #50861 by sozzled
Hinson wrote:

I have a similar but different question. I don't want to remove the links, but I do want to change the wording from "Please Login or Register" to Please Login or Register to view forum contents.

I'm doing this in hopes that more 'guests' will be encouraged to register without having to allow them access to the contents of the forum.

Yes, that's a good way of rephrasing what I wrote 10 months ago. The idea is still similar (even if other things have changed between K 1.5.4 and K 1.5.12): you need to edit ../components/com_kunena/template/default/plugin/profilebox/profilebox.php and remove the hyperlinks surrounding the text strings that translate as "login" and "register".

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

Time to create page: 0.298 seconds