Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: Mr. Jinx on July 10, 2008, 10:46:25 AM

Title: SMF 1.1.5 and Joomla 1.5.3 + ssi_login
Post by: Mr. Jinx on July 10, 2008, 10:46:25 AM
I'm using the php function "ssi_login" on one of my pages in joomla.
This seems to work, however the URL redirect feature just doesn't work!

For example, I include this code in joomla:

require_once("/path/SSI.php");
ssi_login('http://redirectpage');


There are many ways to do this: a custom module / in your template / using a php-code module like 'Jumi'. You can login just fine, but you will be directed to the forum, not the specified url.

Somehow it must loose the variable '$_SESSION['login_url']. This is where the redirection url is stored, but once you are logged in, it must be gone or something.

Any other ways to solve this?
Title: Re: SMF 2.0 RC1 and Joomla 1.5.14 + ssi_login
Post by: Mr. Jinx on October 25, 2009, 03:39:07 PM
I found a solution for my previous question by adding:
$_SESSION['login_url']=$scripturl;
To Boardindex.template.php, just under de global section.

However, now that I've upgraded to SMF 2.0 RC1.2 the problem is back :(

If I test the ssi_login redirection function by editting 'ssi_examples.php' it works just fine.
I just can't get it to work from within a joomla module. It will always lose the login_url variable.
Can someone help me with this one?
Title: Re: SMF 1.1.5 and Joomla 1.5.3 + ssi_login
Post by: Mr. Jinx on October 31, 2009, 09:57:54 AM
This has been solved in http://www.simplemachines.org/community/index.php?topic=344773.msg2335189#msg2335189