-
Okay so in order to personalize the user experience after login or if logged in, I’m displaying their UP card with this shortcode:
[userpro template=view header_only=true]
At the moment I’m using a simple plugin that displays widgets according to different filters (one of them is “if user is logged in”) but when I’ll have more time maybe I’ll be able to make use ofis_user_logged_in()
Anyway to get to the point, the member directory template cards or EMD template cards look nicer in my opinion and since the docs haven’t been updated in a while with new shortcodes etc, I was wondering if it’s possible to use those separately?
Don’t worry about updating the docs, you’ll do it when you have time, personally I’m just glad this all-in-one plugin is finally working flawlessly for me.A conditional check for “is user logged in” would be ideal for UserPro.
Are there new, undocumented short codes we should know about?
If that feature’s not available, I’ll do what you do and try a conditional widget. Thanks for the idea!
Hi Guys, why do you not use the following short code.
[userpro_loggedin] BLA BLA …. [/userpro_loggedin]
This short code work ONLY if user is logged in, then if not you get nothing (blank).
BLA… 🙂 is anything: another short code or a text.Well:
example 1): Show user’s card when he/she is logged in otherwise show the login form.
[userpro_loggedin]
[userpro template=card card_width=120pix ]
[/userpro_loggedin]
[userpro template=login ]
Note: I use this example in widget text to show the user’s card or login formexample 2): Show a welcome text only if he/she is logged in
[userpro_loggedin] Welcome back! Happy to see you again! [/userpro_loggedin]Hope it help you.
Raf
You must be logged in to reply to this topic.