Guest redirect from member.php

Would like to know how to redirect guests frm member.php to index page instead of join form...?

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 29 Apr 2010

I don't understand this one either. What is it your trying to do?

When a guest first arrives at the site, they are on the index page already. If they go directly to member.php, then they are asked to logon.

So i am not understanding something here.

https://www.deanbassett.com
Quote · 29 Apr 2010

I want to install a wall mod on the member.php page and I would like to make it the main focus of the site.

When a member logs in, I want him to enter at member.php (which I was able to accomplish with your mod)

When a member comes to the site and he is already logged in, I want him to enter the site at member.php, not index.php (mydomain.com)

When a guest enters the site, I want him to enter at index.php (since he won't have access to member.php) and I want him redirected to index.php instead of the join form if he does try and enter the member.php page.

 

The front page is boring. Let's face it, Facebook figured out the trick with the wall. I want to apply that theory to my site. There is a new wall mod out that seems very advanced and I want to try and use it to get my members talking to each other. The only way I see that happening is if I can find ways to keep putting it in their face every time they come to the site. Just like Facebook, the mod will work best on the account page and not the homepage

 

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 30 Apr 2010

Ok i get it. I'll see if i can figure that out. So basically we just need to get the domain to go to member.php by default instead of index.php. That should be able to be done with the .htaccess file. Then member.php will just need to be rigged to send those that are not logged in to index.php.

I will look into this.

https://www.deanbassett.com
Quote · 30 Apr 2010

"The front page is boring. Let's face it, Facebook figured out the trick with the wall."

No, your site is boring.

If you want to copy facebook, then do it, but don't slate every other boonex community just because you don't have the content to make your site interesting.

Quote · 30 Apr 2010

 

 

"The front page is boring. Let's face it, Facebook figured out the trick with the wall."

 

No, your site is boring.

If you want to copy facebook, then do it, but don't slate every other boonex community just because you don't have the content to make your site interesting.

 

Excuse me? Who spun your tassles?

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 30 Apr 2010

 

Ok i get it. I'll see if i can figure that out. So basically we just need to get the domain to go to member.php by default instead of index.php. That should be able to be done with the .htaccess file. Then member.php will just need to be rigged to send those that are not logged in to index.php.

I will look into this.

 

 

 

Thanks Deano...

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 30 Apr 2010

Your comment.

I know MY index page isn't boring, because I and other members make the content interesting.

Quote · 30 Apr 2010

I believe i got it. Testing now. Will post code in a min.

https://www.deanbassett.com
Quote · 30 Apr 2010

Ok. Member.php line 616 Add the lines in green. Comment out the lines in Red.

$member['ID']        = process_pass_data($_POST['ID']);
$member['Password'] = process_pass_data($_POST['Password']);

$bAjxMode = ( isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest' ) ? true : false;

if ( !( $_POST['ID'] && $_POST['Password'] ) && ( $_COOKIE['memberID'] && $_COOKIE['memberPassword'] ) )
{
//if ( !( $logged['member'] = member_auth( 0, false ) ) )
//    login_form( _t( "_LOGIN_OBSOLETE" ), 0, $bAjxMode );

if ( !( $logged['member'] = member_auth( 0, false ) ) ) {
$sUrlRelocate = $site['url'] . 'index.php';
header('Location: ' . $sUrlRelocate);
}

}
else
{
if ( !isset($_POST['ID']) && !isset($_POST['Password']) )
{

// this is dynamic page -  send headers to do not cache this page
send_headers_page_changed();

//login_form('', 0, $bAjxMode);
$sUrlRelocate = $site['url'] . 'index.php';
header('Location: ' . $sUrlRelocate);


} else {


Now in the .htaccess file add this at the end. Must be the last rule. Just before the closing </IfModule>

RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www\.yourdomain.com/member.php [QSA,L]


Replace yourdomain\.com with your actual domain. The \ must be in front of the .

Also if your site does not use the www prefix. Then remove the www\. in front of the domain.

https://www.deanbassett.com
Quote · 30 Apr 2010

You are amazing! I wish I had the skill to just crank stuff like this out at the drop of a hat. Thanks a TON my friend. Wink It works perfectly!

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 30 Apr 2010

Yet there is so many areas in dolphin i can't figure out if my life depended on it. Somtimes following the boonex teams logic does nothing but give me a headache.

https://www.deanbassett.com
Quote · 30 Apr 2010

Have fatal error:

Warning: Cannot modify header information - headers already sent by (output started at /home/plazavip/public_html/acostadas.com/member.php:2) in/home/****/public_html/acostadas.com/inc/design.inc.php on line 147

Warning: Cannot modify header information - headers already sent by (output started at /home/plazavip/public_html/acostadas.com/member.php:2) in/home/****/public_html/acostadas.com/inc/design.inc.php on line 148

Warning: Cannot modify header information - headers already sent by (output started at /home/plazavip/public_html/acostadas.com/member.php:2) in/home/****/public_html/acostadas.com/inc/design.inc.php on line 149

Warning: Cannot modify header information - headers already sent by (output started at /home/plazavip/public_html/acostadas.com/member.php:2) in/home/****/public_html/acostadas.com/inc/design.inc.php on line 150

Quote · 22 Feb 2012

And did this occur just after you tried to modify member.php?

If so, the solution is obvious. Replace the file with a clean copy from the original dolphin zip file you used to install dolphin. Either you did something wrong or your editor messed up the end of the file leaving white space after the closing php tag which is the normal cause of headers already sent messages.

However. When doing source code changes, and the changes cause this kind of problem, then the first thing to do is remove those changes.

https://www.deanbassett.com
Quote · 22 Feb 2012

Deano92964 thank you very much for your help, and although not really noticeable, but if there was a blank space in file member.php at the end.

The error occurred when trying to make the user to enter the program redirects to index.php but I worked and leave everything as it was quice original realize leaving the space blank. Thanks again for your help.

Quote · 22 Feb 2012
 
 
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.