88 pointsSerious WPMU DEV-sterI'm new here
skishopmatt
Member
—
19th February 2011 (1 year ago)
Hi all -
I have been searching all over with no luck on a few things that seems like they would be simple, but I'm stuck.
Trying to make a custom landing page after log in that gives users options to destination. This landing page would be on our TLD.
1) Link to their own blog (theirname.tld.com) (what I really need is the function to display their subdomain's name, I can code it to work from there)
2) Command to use to display a message on our TLD that is specific to a supporter (vs just logged in)
I have been searching all over with no luck on a few things that seems like they would be simple, but I'm stuck.
Trying to make a custom landing page after log in that gives users options to destination. This landing page would be on our TLD.
1) Link to their own blog (theirname.tld.com) (what I really need is the function to display their subdomain's name, I can code it to work from there)
2) Command to use to display a message on our TLD that is specific to a supporter (vs just logged in)
Question, if a user has more than one blog, is there a trick to display just their primary blog's name? My goal is to have a bar on the top nav that says something like:
Your Profile | Dashboard | Edit My Website | View My Website
and the "edit/view my website" will link them to their primary website if they have multiples.
Responses (3)
Sales & Support Lead — 20th February 2011 (1 year ago) #
Hiya Matt,
Just make up a page with everything you want in WordPress - then use our login redirect plugin to redirect your users to this page automatically:
http://premium.wpmudev.org/project/logout-redirect
If you're wanting to embed something into your theme template, try something like this:
Yep, use a similar to above, but include 'is_supporter'
Hope this helps. Thanks!
Member — 20th February 2011 (1 year ago) #
Exactly what I was looking for, thanks!
Question, if a user has more than one blog, is there a trick to display just their primary blog's name? My goal is to have a bar on the top nav that says something like:
Your Profile | Dashboard | Edit My Website | View My Website
and the "edit/view my website" will link them to their primary website if they have multiples.
Thanks so much!
Sales & Support Lead — 20th February 2011 (1 year ago) #
Hiya,
You'll want to use the get_userinfo function here:
http://codex.wordpress.org/Function_Reference/get_userdata
Use the 'primary_blog' value from the user meta.
Thanks!
Become a member