latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: adam chen

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 15 topics - 1 through 15 (of 15 total)
Topic Count Last Reply
Serious S2Member Bug! Fix it plzlol

By:  adam chen in: Community Forum

voices: 5
replies: 10

3 years, 9 months ago  Eduan

Problem with your Client Portal System

By:  adam chen in: Community Forum

voices: 3
replies: 5

4 years, 9 months ago  David Welch

redirect a user to the membership option page

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 9 months ago  adam chen

Redirect user to membership option per login

By:  adam chen in: Community Forum

voices: 1
replies: 0

4 years, 10 months ago  adam chen

Secured File Folder really safe?

By:  adam chen in: Community Forum

voices: 3
replies: 6

4 years, 10 months ago  adam chen

Client Portal–>redirect user

By:  adam chen in: Community Forum

voices: 1
replies: 1

4 years, 10 months ago  adam chen

Page Accecss Restriction – bug??

By:  Vincent Newton in: Community Forum

voices: 4
replies: 7

4 years, 10 months ago  adam chen

Redirect user to the login page

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 10 months ago  adam chen

How to redirect a user to register

By:  adam chen in: Community Forum

voices: 3
replies: 7

4 years, 10 months ago  adam chen

Post content does not show up

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 10 months ago  David Welch

In Register Page, Tab works werid

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 10 months ago  adam chen

Locked down on myself, unlock?

By:  adam chen in: Community Forum

voices: 2
replies: 1

4 years, 10 months ago  Eduan

Security Badge Short Code Fails

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 11 months ago  adam chen

[Partial Protect Post Content]edit!

By:  adam chen in: Community Forum

voices: 1
replies: 0

4 years, 11 months ago  adam chen

Viewing 15 topics - 1 through 15 (of 15 total)

Topics I've Started

Viewing 14 topics - 1 through 14 (of 14 total)
Topic Count Last Reply
Serious S2Member Bug! Fix it plzlol

By:  adam chen in: Community Forum

voices: 5
replies: 10

3 years, 9 months ago  Eduan

Problem with your Client Portal System

By:  adam chen in: Community Forum

voices: 3
replies: 5

4 years, 9 months ago  David Welch

redirect a user to the membership option page

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 9 months ago  adam chen

Redirect user to membership option per login

By:  adam chen in: Community Forum

voices: 1
replies: 0

4 years, 10 months ago  adam chen

Secured File Folder really safe?

By:  adam chen in: Community Forum

voices: 3
replies: 6

4 years, 10 months ago  adam chen

Client Portal–>redirect user

By:  adam chen in: Community Forum

voices: 1
replies: 1

4 years, 10 months ago  adam chen

Redirect user to the login page

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 10 months ago  adam chen

How to redirect a user to register

By:  adam chen in: Community Forum

voices: 3
replies: 7

4 years, 10 months ago  adam chen

Post content does not show up

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 10 months ago  David Welch

In Register Page, Tab works werid

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 10 months ago  adam chen

Locked down on myself, unlock?

By:  adam chen in: Community Forum

voices: 2
replies: 1

4 years, 10 months ago  Eduan

Security Badge Short Code Fails

By:  adam chen in: Community Forum

voices: 2
replies: 2

4 years, 11 months ago  adam chen

[Partial Protect Post Content]edit!

By:  adam chen in: Community Forum

voices: 1
replies: 0

4 years, 11 months ago  adam chen

Viewing 14 topics - 1 through 14 (of 14 total)

My Latest Replies (From Various Topics)

Viewing 22 replies - 1 through 22 (of 22 total)
Author Replies
Author Replies
Posted: Friday Mar 16th, 2012 at 5:35 pm #8426
adam chen
Username: adam1987

Hi, David:

Thanks for the reply, I made up one according to your template:
*But I am kinda lost on what to put on the first part?which is the code below
“//put a function here to get whatever name…”

However, what I did is here, is that correct?
What I intent to do:
1. The user will has a single client specific page LINK created (the link will be able to access through a specific short code) once the user name is registered. However the PAGE itself is NOT exist yet, so that why there is 404 page after login, because login-welcome-page is setup as “http://mysite.com/%%current_user_login%%/”.
I need to maintain this address inside the login-welcome-page to let the client portal runs.

2.The code you gave me seem will achieve the purpose but I don’t really get the meaning of the first part. please help thanks again!

Btw the page slug means I need to use page id? or simply the page’s link? my profile page link is simply http://www.abc.com/trial/profile, so I replace all the slug with profile, is that accurate? or should I replace it with page id?

Below is modification:

<?php
add_action('find the right hook','my_login_function');

function my_login_function($user_id){
	//put a function here to get whatever name or username or id or whatever you are using as the page title.
	$sql = "";
	$un = mysql_fetch_array(mysql_query($sql));
	$username = $un[''];
	
	//Check to see if there is a page with that title in the system.
	$sql = "SELECT ID FROM wp_posts WHERE post_title = '".$username."' AND post_status = 'publish' AND post_type = 'page' LIMIT 1";
	$count = mysql_num_rows(mysql_query($sql));
	
	if($count == 1){
		//Change the username to a slug like the page
		$page_slug = strtolower($profile);	
		$page_slug = str_replace(' ','-',$profile);
		wp_redirect(site_url($profile));
	}
	else {
		wp_redirect(site_url('id="http://mysite.com/trail1/profile/"')); //replace profile with your profile page slug
	}
}

?>
Posted: Friday Mar 16th, 2012 at 1:06 pm #8376
adam chen
Username: adam1987

Ok, Ram….so what now? lol

Posted: Wednesday Mar 14th, 2012 at 2:39 pm #8141
adam chen
Username: adam1987

Hi, Dave:

I totally get the setting, but the issue is that since I take a method to impliment “Client Portal” system which taught by S2member tutorial video, so therefore my Login Welcome Page link: (for example)
http://mysite.com/%%current_user_login%%/
Can not change, if I do, the client’s private page will not be directed correctly and the whole system will be meaningless to me.

I wonder if there is anyway to change the login welcome page but without affect the Client Portal System I setup with?

Btw, the Client Portal Utilize the user name as a access tha automatically direct to it once login, though, I would prefer direct to the profile page (a costume page I created just to display profile related to the viewing user) instead.

Please help me out, thanks!

  • This reply was modified 4 years, 9 months ago by  adam chen.
Posted: Wednesday Feb 22nd, 2012 at 12:35 pm #5968
adam chen
Username: adam1987

It raised my concern because what happened to PS3 site’s hacking while everyone’s info was stolen…yea.

Posted: Wednesday Feb 22nd, 2012 at 12:35 pm #5967
adam chen
Username: adam1987

Thanks, because I was wondering about the fact that all files in that folder is not really encrypted, are they? Can we do that to the folder with S2member ? because I am kind of unclear of “secured” term, I feel secured does not mean its encrypted, is that right?

Posted: Wednesday Feb 22nd, 2012 at 11:35 am #5951
adam chen
Username: adam1987

Hi Sam:

I am more looking into simply pdf, words, excel, or zip file.

Are they really that secured in term of access? I wonder can anyone break into the files just by cracking the site or the one has to break into the server?

THank YOu

Posted: Friday Feb 17th, 2012 at 11:47 am #5496
adam chen
Username: adam1987

nvm, I customized member option page as a dummy welcome page to full registered users lol

Posted: Wednesday Feb 15th, 2012 at 6:10 pm #5283
adam chen
Username: adam1987

yea, its a perfect answer and finally get me out of the deadly loop….back to the original setup lol

Thank you very much :) wish I coudld get you 10 starts :D

Posted: Wednesday Feb 15th, 2012 at 4:42 pm #5267
adam chen
Username: adam1987

Hi , David:

I got it, so its actaully secured when a unregistered user login the page? I just wondering, because I kinda put the profile in that login welcome page, will it be secure?

I konw unregister will not access the content as I use the php code to appear differnet content when the user is unregistered.
here:

[s2If !is_user_logged_in()]

*This Page will only show content when you are registered user.

Please <a title="Register" href="http://testsite.mblbc.com/trail1/wp-login.php?action=register">register </a> or <a title="Login Page" href="http://testsite.mblbc.com/trail1/wp-login.php">login</a> to view additional content. Thank You!

[/s2If]

so what you think? do you think its secure enough for a user to edit the profiles in the login welcome page? Becasue I saw s2member desciribe the page as it will never prevent unregistered user from access this page……so thats why all these mess came up.

Posted: Wednesday Feb 15th, 2012 at 2:07 pm #5236
adam chen
Username: adam1987

hi david, thanks again for your help.
First, I think I am not going to use Membership Option Page at all for now.
But is one more issue emerged.
Because there is a need for private area for the page for each user, so I setup the Login welcome page as the abc.com/%%current_user_login%%
But since its manually crated each area, so it turn out to be blank, and another funny issue is that: if I had a user with custom capability of useradam, then if 2nd user named useradam2, the blank page’s address will apear like abc.com/useradam, instead of abc.com/useradam2. I wonder if there is way to walk around it so that if the user does not have a user private page crated yet, it went back to home page, or if you could kindly hint me way to get the s2member to create that private page with corresponding custom capability filled once the user is created?

Thank a lot, you are the most helpful person in s2member community I ever met!

Posted: Wednesday Feb 15th, 2012 at 10:57 am #5226
adam chen
Username: adam1987

Anyone knows how to let login welcome page show register form if the one is not registered and got in the login welcome page?

Posted: Wednesday Feb 15th, 2012 at 10:54 am #5225
adam chen
Username: adam1987

Hi, David ( and whoever may care):

I think there is another issue:
When I actually get in the login Welcome page directly, it will not redirect me to the register page if I am not a registered user.
Also when I registered as a new user, after login, it also redirect me to the register screen….thats not right….
I wonder how could I fix that with that brilliant hook David wrote?

Anyone?

Thanks ahead!

  • This reply was modified 4 years, 10 months ago by  adam chen.
Posted: Tuesday Feb 14th, 2012 at 1:20 pm #5050
adam chen
Username: adam1987

Dummy issue…the text was white lol

Posted: Tuesday Feb 14th, 2012 at 10:08 am #5031
adam chen
Username: adam1987

But still it seem did not fix the issue of the login problem that brutal force restriction lock down only the ip? So does that mean that if two pc using same ISP but one is in ethernet and other is wireless, they all still have the same ip? Does that really true so that why what happened to me?

Anyone has idea about it, thanks.

Posted: Tuesday Feb 14th, 2012 at 10:04 am #5030
adam chen
Username: adam1987

wow, interesting way to explore it, thanks!
I am going to have a try of this hack later :D

Posted: Tuesday Feb 14th, 2012 at 9:57 am #5029
adam chen
Username: adam1987

Problem……….now

  • This reply was modified 4 years, 10 months ago by  adam chen.
Posted: Tuesday Feb 14th, 2012 at 9:48 am #5028
adam chen
Username: adam1987

Hi David:

Thanks for the helpful hint agian!

I will try it out though I doubt I am able to manipulate tabindex since its a recapthca plugin rather than direct code implimentation.

However, I will see what I can do and post here again, but if you do konw how to deal with this situation, kindly post it will be really apreciated :)

Stay tuned

Posted: Monday Feb 13th, 2012 at 8:53 pm #4974
adam chen
Username: adam1987

But, I did use two different computer—same network to access two different account, yet one is in ethernet one is using wireless.
So, does that still be the IP address issue? Just wondering.

  • This reply was modified 4 years, 10 months ago by  adam chen.
Posted: Monday Feb 13th, 2012 at 8:36 pm #4972
adam chen
Username: adam1987

oh~ thanks, let me see if it wokrs good, will reply you tomorrow, thanks for your kind help :)

Posted: Monday Feb 13th, 2012 at 8:35 pm #4971
adam chen
Username: adam1987

Hi Eduan:

So, is it a configuration issue? But there is only 1 selection though, how could the lock suddenly apply to all users once my admin account is over tried? Also, what is someone just want to mess with the system, over try intentionally, our site will be compromised just like that isnt it?

Posted: Monday Feb 13th, 2012 at 11:47 am #4935
adam chen
Username: adam1987

Hi David:

I tried, but seem its not really work.

I did exactly the steps, but seem its not only not working, but also the original php code simply appear on the top of the page.

Is there something wrong or should I do some extra steps to apply the s2-hacks.php?

Posted: Wednesday Feb 8th, 2012 at 3:39 pm #4492
adam chen
Username: adam1987

Hi, Eduan:

Sure.
I paste the code:

[s2Member-Security-Badge v="1" /]

into the page of Login Welcome Page (default page to show the user profile), in the page there are only two short codes:

[s2Member-Profile /]
[s2Member-Security-Badge v="1" /]

Thanks

Viewing 22 replies - 1 through 22 (of 22 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.