how can I do that?
Thanks for your replies and your help!
Happy New Year Rafa!
to replace homepage with login and after login homepage to be available for customer please do:
1.
#file
app/addons/my_changes/init.php
#content ```php
fn_register_hooks(
'get_route'
);
```
2.
#file
```php app/addons/my_changes/func.php ```
#content ```php
if (!defined('BOOTSTRAP')) { die('Access denied'); }
function fn_my_changes_get_route(&$req){
if(!isset($req['dispatch']) && AREA == 'C'){
$auth = & $_SESSION['auth'];
if($auth['user_id']==0){
$req['dispatch'] = 'auth.login_form';
$req['skip_dispatch'] = true;
}
}
}
```
You will need "My Changes" add-on to be active
I hope that helps,
---
Valentin
[color=#808080][size=2]part of hungryweb.net[/size][/color]
              PER-FECT!
YOU ROCK Vali !!
Thank you so much and happy new year!
) Thank you
[quote name='eComLabs' timestamp='1420447227' post='201621']
You can also check our free Login Redirect module
Thanks
[/quote]
Thanks eComLabs! That's a great addon!