PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Back To Members Welcome Page

s2Member Plugin. A Membership plugin for WordPress®.

Back To Members Welcome Page

Postby wesleysoccer » April 26th, 2011, 10:20 pm

I have create a nice client area for a photography site thanks to the client portal video...I'm trying to add a back to welcome page link so clients can get back to their http://www.example.com/%%current_user_login%% (home page) - What is the best solution for getting them back...I have a custom sidebar for the clients...

Using the free version and 3.1 wordpress..thanks so much for all the suppport.
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » April 26th, 2011, 10:37 pm

Hey. :)

You could try the S2MEMBER_CURRENT_USER_LOGIN constant. WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants -> S2MEMBER_CURRENT_USER_LOGIN

Code: Select all
http://example.com/<?php echo S2MEMBER_CURRENT_USER_LOGIN?>
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Back To Members Welcome Page

Postby wesleysoccer » April 26th, 2011, 10:53 pm

Are you asking me to use this code in my sidebar?
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » April 26th, 2011, 11:11 pm

That will give you the URL you want for the users, use that in an HTML anchor tag to link it. You could add that where it says "Additional XHTML/PHP Code?" in your Pro Login Widget.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Back To Members Welcome Page

Postby wesleysoccer » April 26th, 2011, 11:15 pm

I dont have a pro widget?
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » April 26th, 2011, 11:21 pm

Sorry, I thought you did. You can still use it in your sidebar in a widget.

Actually, instead of the PHP code, try the shortcode so you don't need to enable PHP for your widgets.

Code: Select all
<a href="http://example.com/[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]">Your custom homepage</a>
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Back To Members Welcome Page

Postby wesleysoccer » April 26th, 2011, 11:28 pm

thanks it work! :)
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » April 26th, 2011, 11:54 pm

:)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Back To Members Welcome Page

Postby wesleysoccer » May 7th, 2011, 9:25 pm

Yes, the above worked great! This is just to link back to the welcome page when clients are at different page...but I need a gallery viewing page that is custom by user login username. I want to create a different page for each client - example: example.com/gallery and change the slug to example.com/galleryusername , something like this <a href="http://example.com/gallery[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]">Your custom homepage</a> - when I try this it sends me to my members option page...

any thoughts and thanks so much for your time.
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » May 7th, 2011, 10:57 pm

Does a page /gallery/username exist for each member? The page has to exist. If so, how did you protect it?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Back To Members Welcome Page

Postby wesleysoccer » May 7th, 2011, 11:07 pm

Maybe my questions is how can I create another page that is protected by the S2MEMBER_CURRENT_USER_LOGIN ?

I want the link to be the same for all users but recognize which page to direct to based on current_user_login,,,thanks again.

And for your above questionL..I created a page /galleryjohndoe and tried to link this page but I would change the username for each page created? When I turn of the members options page I was able to link to this using the example.com/galleryS2MEMBER_CURRENT_USER_LOGIN.
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » May 8th, 2011, 11:16 am

Then as you created the home page for each user, you'd repeat that for their galleries.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Back To Members Welcome Page

Postby wesleysoccer » May 8th, 2011, 11:26 am

I would like to do this with just one login username and password...when they arrive at their homepage example.com/current_login_user (works great) and their homepage link in sidebar works great but unable to create a link that can be used for all clients but directing them to their user specific gallery? Can you send me an idea on how this link will look?
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » May 8th, 2011, 7:48 pm

You could have 500 pages protected with the custom capability and the person would not need another account.

Like I said, the same way you automated the creation of the custom homepage for the user, and giving it the custom capability, is how you'd create and protect your their gallery pages.

If you need help customizing this, I suggest you seek a freelance developer at a website like http://jobs.wordpress.net.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Back To Members Welcome Page

Postby wesleysoccer » May 9th, 2011, 3:28 pm

Thanks for all the help...

Getting to the client portal by username is working great...The issue I;m having is that all clients will have the same sidebar (link information) but different gallery pages...I just want a generic link that goes to different clients gallery pages...the below link works great unless I have the members option page set up...For example: (I have the members option page off)

url: http://www.vinitasalomeblog.com/demo/proofingryanmuntz/

I use this link in my sidebar so it will just target different client galleries
<a href="http://vinitasalomeblog.com/demo/proofing[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]"target="">Client Proofing</a>

This link only works when members option - When I set a page to members option page the above client proofing link will not work...ugh.
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » May 9th, 2011, 6:43 pm

OK, I think I understand what you mean now. Maybe it's similar to the problem you had with the user's homepage before.

Why not have the user gallery under the user's directory? E.g. /user/username/gallery
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Back To Members Welcome Page

Postby wesleysoccer » May 9th, 2011, 7:49 pm

Not sure what happen but it's working now...It's what i did before...

<a href="http://www.example.com/proofing[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]"target="">Client Proofing</a>

This it what I have in the sidebar...now it can be there for all users....When you create a page for a new client just make the page slug: /proofingusername

Not sure why it was not working before...but it's all protected and per username...love S2member...thanks so much for all your time and effort...sorry....I just needed to get this...I will have a happy client...less work for her...thanks. :)
User avatar
wesleysoccer
Registered User
Registered User
 
Posts: 83
Joined: January 31, 2011

Re: Back To Members Welcome Page

Postby Cristián Lávaque » May 9th, 2011, 8:22 pm

I'm glad you solved it! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron