Page 1 of 1
Back To Members Welcome Page
Posted:
April 26th, 2011, 10:20 pm
by wesleysoccer
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.
Re: Back To Members Welcome Page
Posted:
April 26th, 2011, 10:37 pm
by Cristián Lávaque
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; ?>
Re: Back To Members Welcome Page
Posted:
April 26th, 2011, 10:53 pm
by wesleysoccer
Are you asking me to use this code in my sidebar?
Re: Back To Members Welcome Page
Posted:
April 26th, 2011, 11:11 pm
by Cristián Lávaque
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.
Re: Back To Members Welcome Page
Posted:
April 26th, 2011, 11:15 pm
by wesleysoccer
I dont have a pro widget?
Re: Back To Members Welcome Page
Posted:
April 26th, 2011, 11:21 pm
by Cristián Lávaque
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>
Re: Back To Members Welcome Page
Posted:
April 26th, 2011, 11:28 pm
by wesleysoccer
thanks it work!
Re: Back To Members Welcome Page
Posted:
April 26th, 2011, 11:54 pm
by Cristián Lávaque
Re: Back To Members Welcome Page
Posted:
May 7th, 2011, 9:25 pm
by wesleysoccer
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.
Re: Back To Members Welcome Page
Posted:
May 7th, 2011, 10:57 pm
by Cristián Lávaque
Does a page /gallery/username exist for each member? The page has to exist. If so, how did you protect it?
Re: Back To Members Welcome Page
Posted:
May 7th, 2011, 11:07 pm
by wesleysoccer
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.
Re: Back To Members Welcome Page
Posted:
May 8th, 2011, 11:16 am
by Cristián Lávaque
Then as you created the home page for each user, you'd repeat that for their galleries.
Re: Back To Members Welcome Page
Posted:
May 8th, 2011, 11:26 am
by wesleysoccer
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?
Re: Back To Members Welcome Page
Posted:
May 8th, 2011, 7:48 pm
by Cristián Lávaque
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.
Re: Back To Members Welcome Page
Posted:
May 9th, 2011, 3:28 pm
by wesleysoccer
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.
Re: Back To Members Welcome Page
Posted:
May 9th, 2011, 6:43 pm
by Cristián Lávaque
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
Re: Back To Members Welcome Page
Posted:
May 9th, 2011, 7:49 pm
by wesleysoccer
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.
Re: Back To Members Welcome Page
Posted:
May 9th, 2011, 8:22 pm
by Cristián Lávaque
I'm glad you solved it!