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 Login Module 1.7.2: Redirect to current page?

More
14 years 2 months ago #119509 by flosen
Hello.
I've got a question: When logging in with Kunena login Module, user will be redirected to start page. Is it possible that he will be redirected to the current page?
I only found hints for the old 1.5 version... Does anybody know the required changes in kunena.login.php?

Flo

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

More
14 years 2 months ago #119514 by sozzled
G'day, flosen, and welcome to Kunena?

What version of Kunena and Kunena Login module are you using? Your configuration report and a screenshot of your Kunena Login settings will answer this question.

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

More
14 years 2 months ago - 14 years 1 month ago #119519 by flosen
Thank you!
I use the current versions (both 1.7.2).
This message contains confidential information

Database collation check: The collation of your table fields are correct

Legacy mode: Disabled | Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 60 seconds | Max execution memory: 128M | Max file upload: 10M

Kunena menu details:
Warning: Spoiler!

Joomla default template details : ja_purity_ii | author: JoomlArt.com | version: 1.2.0 | creationdate: August 2011

Kunena default template details : Blue Eagle (default) | author: Kunena Team | version: 1.7.0 | creationdate: 2011-08-29

Kunena version detailled: Installed version: 1.7.2 | Build: 5215 | Version name: Omega | Kunena detailled configuration:

Warning: Spoiler!

Third-party components: UddeIm 2.6

Third-party SEF components: None

Plugins: System - Mootools Upgrade: Disabled | System - Mootools12: Disabled | Kunena Search 1.7.2 | Kunena Discuss 1.7.2

Modules: Kunena Login 1.7.2

Last edit: 14 years 1 month ago by sozzled. Reason: Reveal K 1.7 configuration report in message

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

More
14 years 2 months ago #119522 by sozzled
Thank you. Your Kunena Login configuration (screenshot) shows:

German: URL-Weiterleitung beim Anmelden = News
English: Login Redirection Page = News

So, that explains why users always go to the home page - the "News" page - of your website when they login from the Kunena Login module.

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

More
14 years 2 months ago - 14 years 2 months ago #119524 by flosen
Okay. But there is no way to choose 'current site' or something. I only can choose my Menu-Links. I think that option is not included and must be 'hacked'.
in kunena.login.php I tried to build something from the Joomla login module (where this function works), but I didn't get it work. I want to use the Kunena-Login module because I want to see the Avatar, PM-link,... Of course I can try to manipulate the Joomla login module, but I hope, that someone has already done this with Kunena login module.
Last edit: 14 years 2 months ago by flosen.

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

More
14 years 2 months ago - 14 years 2 months ago #119551 by flosen
Ok I got it. I had to change the getReturnURL() in mod_kunenalogin/class.php
From
Code:
function getReturnURL() { $itemid = $this->params->get ( $this->type ); if ($itemid) { $menu = & JSite::getMenu (); $item = $menu->getItem ( $itemid ); $url = JRoute::_ ( $item->link . '&Itemid=' . $itemid, false ); } else { // stay on the same page $uri = JFactory::getURI (); $url = $uri->toString ( array ('path', 'query', 'fragment' ) ); }

to
Code:
function getReturnURL() { $uri = JFactory::getURI (); $url = $uri->toString ( array ('path', 'query', 'fragment' ) ); return base64_encode ( $url ); }

But what I don't understand: The function includes the option to stay on the same page, if no parameter is chosen in config. But in config I have to choose a link from my menu. So the if else function would be perfect, if you could choose 'nothing' in config, because than you can choose another fix page for logout.

Thanks, greetings Flo
p.s. Sorry for my english...
Last edit: 14 years 2 months ago by flosen.

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

Time to create page: 0.239 seconds