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
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
(a) before login:
(b) after login:
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
- David Boggitt
-
- Offline
- New Member
-
- Posts: 3
- Thank you received: 0
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.
- fishing_in_israel
-
- Offline
- New Member
-
- Posts: 6
- Thank you received: 0
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".
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 .
The effects of the changes are shown in the two images that follow:Attachment profilebox.txt not found
(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>.
<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.....
Please Log in or Create an account to join the conversation.
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.
Please Log in or Create an account to join the conversation.
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".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.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.