How to use the EMD or Member Directory template separately – UserPro Forums https://forum.userproplugin.com/forums/topic/how-to-use-the-emd-or-member-directory-template-separately/feed/ Wed, 08 May 2024 23:37:58 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/how-to-use-the-emd-or-member-directory-template-separately/#post-37331 <![CDATA[How to use the EMD or Member Directory template separately]]> https://forum.userproplugin.com/forums/topic/how-to-use-the-emd-or-member-directory-template-separately/#post-37331 Thu, 15 May 2014 07:55:49 +0000 vrfx 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 of is_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.

]]>
https://forum.userproplugin.com/forums/topic/how-to-use-the-emd-or-member-directory-template-separately/#post-37961 <![CDATA[Reply To: How to use the EMD or Member Directory template separately]]> https://forum.userproplugin.com/forums/topic/how-to-use-the-emd-or-member-directory-template-separately/#post-37961 Tue, 20 May 2014 22:15:17 +0000 Matthew Jenkins 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!

]]>
https://forum.userproplugin.com/forums/topic/how-to-use-the-emd-or-member-directory-template-separately/#post-40888 <![CDATA[Reply To: How to use the EMD or Member Directory template separately]]> https://forum.userproplugin.com/forums/topic/how-to-use-the-emd-or-member-directory-template-separately/#post-40888 Sat, 14 Jun 2014 17:02:12 +0000 rafsar 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 form

example 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

]]>