Page 1 of 2

Login Welcome Page Conflicts? Watch this video.

PostPosted: March 27th, 2011, 5:13 am
by Jason Caldwell
VideoLogin Welcome Page not working as expected?
Please take a look at this video.

Please click here to download/view the attached MP4 video file:
http://www.s2member.com/wp-content/uplo ... flicts.mp4


Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 4th, 2011, 3:24 pm
by robertohoughton
Hi,

I can log initially after doing this... then I cant. I then go back into firebug and the value is still there!

How to I save the deleted value?

Thanks in advance,
Rob Houghton

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 4th, 2011, 6:29 pm
by Jason Caldwell
Thanks for the follow-up.
Where are you deleting the value at exactly? On your computer? If so, be sure to upload the files via FTP once you've saved changes. Otherwise, let me know where you're editing the file and we'll help you out.

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 5th, 2011, 6:30 pm
by robertohoughton
Thanks for the reply Jason,

I just followed exactly as in the video.

"If so, be sure to upload the files via FTP once you've saved changes."

I didnt see or hear anything about this in the video sorry.

Is there a tutorial or something on how to do this?

Rob Houghton

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 5th, 2011, 6:43 pm
by Eduan
Jason gives a short tutorial near the start of this video:
http://www.s2member.com/file-download-options-video/

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 7th, 2011, 5:30 am
by robertohoughton
Thanks Eduan but what he is talking about in this video makes zero sense to me... I dont understand any of it.

I just need my clients to be redirected to the login welcome page but cant get rid of the hidden value.

In firebug, I have gotten rid of the hidden value... do I then copy the edited HTML?

If so, where does this new HTML code go? Sorry I have no clue... I'm a total dunce at this.

Thanks,
Robbie

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 8th, 2011, 3:50 pm
by Jason Caldwell
Are you familiar with FTP?
http://filezilla-project.org/

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 9th, 2011, 7:52 am
by robertohoughton
Hi Jason,

I understood nothing from the videos.

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 9th, 2011, 5:02 pm
by Jason Caldwell
Thanks for the follow-up.
Well in order to edit files on your server, you will either need to use a file manager provided by your hosting company's server control panel, or you'll need to be familiar with FTP, so you can edit files locally on your computer and upload them to your server. http://filezilla-project.org/

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 14th, 2011, 2:15 pm
by robertohoughton
Thanks Jason. Do you know what the file is called and where to find it? You need to speak to me like I'm a 1 year old

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 14th, 2011, 2:57 pm
by robertohoughton
Jason I'm going mental here. Who would be the best person to help me do this? Should I contact a web developer or something?

Thanks,
Robbie

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 15th, 2011, 2:25 pm
by Cristián Lávaque
robertohoughton wrote:In firebug, I have gotten rid of the hidden value... do I then copy the edited HTML?


What you change in Firebug is just to test, doesn't affect the actual files in your server. Firebug does show you where the code you're editing actually is, so you can go with your FTP client, look for that file an edit it there, which then will change what happens in the website for everyone.

If you really have no idea how to do this, then I suggest you study a bit more about it or get a freelancer developer's help to achieve it. Try http://jobs.wordpress.net or http://elance.com

I hope that helps. :)

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 17th, 2011, 5:30 am
by robertohoughton
Thanks Cristian.

I cant open the php file in filezilla now. I right click, then click on open and nothing. Am I doing this wrong?

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 17th, 2011, 5:40 am
by robertohoughton
Is the file index.php?

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: November 17th, 2011, 10:19 am
by Jason Caldwell
This forum provides support for s2Member.
Please seek alternative sources for general Windows/FTP assistance.

Possible avenues to explore:
http://www.w3schools.com/
http://filezilla-project.org/contact.php

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 17th, 2011, 11:56 am
by sergiobet
Hi Jason,

I follow your instructions but nothing change, my login welcome page doesn't work.
I did eliminate every single entry with the redirect over wp-login.php and still not working.
I have even installed a redirect login page plugin but neither work.

Do you have any news about this problem?
Regards,
Sergio

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 18th, 2011, 11:13 am
by Jason Caldwell
sergiobet wrote:Hi Jason,

I follow your instructions but nothing change, my login welcome page doesn't work.
I did eliminate every single entry with the redirect over wp-login.php and still not working.
I have even installed a redirect login page plugin but neither work.

Do you have any news about this problem?
Regards,
Sergio
Thanks for the follow-up. In your case, what is the symptom exactly please?
What is happening that you can't explain?

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 18th, 2011, 11:52 am
by sergiobet
Always after login, the user gets redirected to the Dashboard, not the login welcome page.
Definitely is not working properly

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 18th, 2011, 11:56 am
by Jason Caldwell
Thank you.
sergiobet wrote:Always after login, the user gets redirected to the Dashboard, not the login welcome page.
Definitely is not working properly
And, where exactly in the Dashboard please? On the Profile page? Or elsewhere? Also, is the account you've tested with a Member? If so, at what Membership Level please?

It sounds like the User/Member who is testing has administrative rights?

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 18th, 2011, 12:17 pm
by sergiobet
In order to adapt the plugin to my needs, I have setup level 1 as a contributor, because I need them not be able to publish content without admin approval.
So if that is the reason, is there any workaround for this?

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 18th, 2011, 1:34 pm
by Jason Caldwell
sergiobet wrote:In order to adapt the plugin to my needs, I have setup level 1 as a contributor, because I need them not be able to publish content without admin approval.
So if that is the reason, is there any workaround for this?
I see. s2Member will NOT redirect anyone who has the edit_posts Capability.

Yes, there is a workaround.

Create this directory and file please:
/wp-content/mu-plugins/s2-hacks.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
Code: Select all
<?php
add_filter 
("ws_plugin__s2member_login_redirect", "s2_login_redirection"102);
function s2_login_redirection ($what_s2_says, $vars = array ())
    {
        return (!$vars["user"]->has_cap ("administrator")) ? true
            
: /* Else what s2Member says. */ $what_s2_says;
    }
?>
* Redirects everyone, except the administrator.

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 18th, 2011, 1:56 pm
by sergiobet
Ok, I'll do it later 'cause I'm away right now.
Will keep you posted, thank you very much for your help!

Sergio

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 18th, 2011, 6:59 pm
by sergiobet
Sorry my friend but didn't work.
Still going to the dashboard

Any suggestion?

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 19th, 2011, 4:33 am
by Cristián Lávaque
Could you post here the code exactly as you have it in the s2hacks.php file? Also, are you testing with your admin account or the contributor one?

Re: Login Welcome Page Conflicts? Watch this video.

PostPosted: December 19th, 2011, 9:14 am
by sergiobet
My fault, sorry!
I'm accessing as contributor, but I did create the folder over the wrong instalation.
But, I did correct that and try again and received the following message:

Fatal error: Call to a member function has_cap() on a non-object in /home/sergiob3/public_html/dtfc/wp-content/mu-plugins/s2-hacks.php on line 5

Here is the code:

<?php
add_filter ("ws_plugin__s2member_login_redirect", "s2_login_redirection");
function s2_login_redirection ($what_s2_says, $vars = array ())
{
return (!$vars["user"]->has_cap ("administrator")) ? true
: /* Else what s2Member says. */ $what_s2_says;
}
?>