-
Author
-
October 7, 2015 at 13:24 #81253dintanParticipant
I have some content which I wish to make available to ONLY logged in users. So I used the CONTENT BY USER TYPE in Visual Composer. However, the content remains hidden even for logged in users. Kindly refer to my attachment.
I have searched the forum and below are some links I found, which none of them answer to my question:
https://archived.seventhqueen.com/forums/search?bbp_search=content%20by%20user%20type –> not answered
https://archived.seventhqueen.com/forums/topic/member-directory-page-about-me-text-does-not-display –> page not found
https://archived.seventhqueen.com/forums/topic/user-type-can-see-certain-user-type –> page not found
Thank you.
Attachments:
You must be logged in to view attached files.October 7, 2015 at 14:07 #81264sharmstrModeratorGo to /wp-content/k-elements/shortcodes/shortcodes.php and change the following line (around 1280) from this
COPY CODEif ( is_user_logged_in() && $a['type'] == 'user')
to this
COPY CODEif ( is_user_logged_in() && $a['type'] == '')
I’ll alert the developers to this.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
October 7, 2015 at 14:14 #81265sharmstrModeratorActually, I see that this has been fixed in the next update of k-elements. Instead of changing line 1280, change lines 1276 to 1278 from this
COPY CODE$a = shortcode_atts( array( 'type' => '', ), $atts );
to this
COPY CODE$a = shortcode_atts( array( 'type' => 'user', ), $atts );
I apologize for my confusion.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
October 7, 2015 at 16:02 #81301sharmstrModeratorAwesome. Again, sorry for the wrong info in the first response. Hadn’t had my coffee yet 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
October 7, 2015 at 19:35 #81363AndreiModeratorThis was already pushed into the K-Elements plugin for the next update. Thanks
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Plugins questions’ is closed to new topics and replies.