credits for user teseoin core file
oc-includes/osclass/controller/login.phpLocate this block (line 48 on Osclass 3.3.2):
$url_redirect = osc_get_http_referer();
$page_redirect = '';
if(osc_rewrite_enabled()) {
and replace it with the following to redirect to dashboard:
$url_redirect = osc_user_dashboard_url();
$page_redirect = '';
if(osc_rewrite_enabled()) {
or redirect to user profile:
$url_redirect = osc_user_profile_url();
$page_redirect = '';
if(osc_rewrite_enabled()) {
Remember that being a core file, you'll need to redo this modification every time you upgrade Osclass.
FOR FACEBOOK CONNECT PLUGINIf you are using the facebook plugin for login and want to redirect you need to modify the file user-login.php in your theme folder
locate:
<?php osc_current_web_theme_path('header.php') ; ?>
and add the following line after:
<?php if($_GET["state"]!=''){ header('Location: /index.php?page=user&action=profile' ); } ?>
this is a bit odd solution but it works for me, if someone knows better pls let me know