Controling the post LOGIN page

I want after JOIN or Login to present My_Page instead of member.php page. I tried to change it in Admin.inc.php section  HOWEVER it didn't change.

Where I can find the place where I can control it?

Thanks,

Yossi

Quote · 27 Jun 2008

If you are saying after signing in you want your member to land on their profile page instead of member page.

Then this code will work for profiles with permalinks on (ie yoursite.com/sally)

Open member.php in your main dolphin directory and find:

$_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 );
PageCode();

Add the following code:
$sUrlRelocate = getProfileLink($member['ID']);

Right before/above:
$_page_cont[$_ni]['url_relocate'] = htmlspecialchars( $sUrlRelocate );

Like:

$_page['name_index'] = 150;
$_page['css_name'] = '';

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = MsgBox( _t( '_Please Wait' ) );
$sUrlRelocate = getProfileLink($member['ID']);
$_page_cont[$_ni]['url_relocate'] = htmlspecialchars( $sUrlRelocate );
PageCode();

Save and reupload. Make sure you keep the original file just incase this don't work for you.

gameutopia

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 27 Jun 2008

Thanks...I've created a new page my_page.php and want to user to land on this page. I think there should be a way to control it without changing the code if after login he knows to land on member.php....do you know if the Admin.inc.php is the place??

Quote · 27 Jun 2008

You created a page called my_page.php and you want all members to land on this page after logging in instead of member.php? Sorry or am I misunderstanding you?

If that is the case same thing add the code to the same area I mentioned using my_page.php instead of get profile link. Notice the _Please Wait that is the message they see during login, and you are relocating them to x-page after successful verification of member/password. You will have to change the code slightly to reflect exactally where you want them to go.

If I am misunderstanding forgive me, and reply again.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 27 Jun 2008

Thanks, I add your line :

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = MsgBox( _t( '_Please Wait' ) );
$sUrlRelocate = my_page1($member['ID']);
$_page_cont[$_ni]['url_relocate'] = htmlspecialchars( $sUrlRelocate );
PageCode();

and received the following message:

Fatal error: Call to undefined function my_page1() in C:\webserver\ewp\member.php on line 546

I guess it should come from different place...what is the Admin.inc.php doing ???? do you know?

Quote · 28 Jun 2008

Ok yossi I'll go over this one more time. If I am mis-understanding you if you can be more specific what you are trying to do I'll do my best to help you out.

With that in mind if you want a member to land on their actual profile page as I originally mentioned such as yoursite.com/sally (sally being the registered member name) then add the code I provided in the first reply like so:

$_page['name_index'] = 150;
$_page['css_name'] = '';

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = MsgBox( _t( '_Please Wait' ) );
$sUrlRelocate = getProfileLink($member['ID']);
$_page_cont[$_ni]['url_relocate'] = htmlspecialchars( $sUrlRelocate );
PageCode();


Now example 2. Lets say after sally logs in I want the very first page she see or lands on to be mysite.com/news.php then I would do the following:


$_page['name_index'] = 150;
$_page['css_name'] = '';

$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = MsgBox( _t( '_Please Wait' ) );
$sUrlRelocate = '/news.php';
$_page_cont[$_ni]['url_relocate'] = htmlspecialchars( $sUrlRelocate );
PageCode();


Notice the line:
$sUrlRelocate = '/news.php';

Change that to whatever you want them to land on after logging in
$sUrlRelocate = '/articles.php';
$sUrlRelocate = '/blogs.php';
$sUrlRelocate = '/links.php';

Whatever you desire. No need to include any $member['ID'] stuff as you are just providing a page you want them to land on.

Forget about admin.inc you want to edit member.php in the main directory. Unless I am totally misunderstading you.

gameutopia

www.dialme.com

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 28 Jun 2008

Hope you got this squared away yossi. If not let me know or message me and I'll see what I can do to help.

Anyone else this is what the big sites do such as myspace, facebook, etc. Upon logging in this will make your members land on their profile page.

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 1 Jul 2008

Sorry, I was in business trip and couldn't login to give you feedback. First yes it's working and thanks for your message. I'm not sure if it'll affect other pages for example the my account link but I'll check it later.

I just prefer to do changes where you don't need to change code but to touch parameters.

I now facing some interesting error not sure from the line I've added how ever if you go to www.ewpfactors.com with IE I'm getting an error on line 48 undefine object..

Do you have a way to debug it??

Yossi

Quote · 4 Jul 2008

Hey yossi, simply remove the code if it is giving you erors. I did briefly look at your pages, and it seems you are using either front page extensions or some form of word documents to update and add content to your pages. I am not saying this is you sole problem. But things like these can easily cause errors as ms uses a language of there own that not all servers/hosts like.

I have no issues with the code. All you can do is remove it restoring to normal file and see if this does away with your error. I uses this on several sites running several different versions with no errors. If you have made any changes to anything else recently consider looking into this as well and undoing the changes depending on what you are after.

gameutopia

DialMe.com - Your One and Only Source For Boonex Dolphin Tutorials and Resources
Quote · 5 Jul 2008

As you can see from Andrey the error is because I don't have at least one item in my open page and the JS is looking for an entry...I hope there is a way to deal with it and not add a dummy HOME like I did...you can see it

Yossi

Quote · 10 Jul 2008

awesome guys.... this saved me a ton of looking around thx!

Quote · 15 Jan 2009

What if after JOIN and only after JOIN, I wanted members to be redirected to 'membership.php' so that the first page a brand new member would see was the upgrade membership page.

Quote · 5 Jul 2009
 
 
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.