Need: "If ($user_role == x) { $value =y}" – UserPro Forums https://forum.userproplugin.com/forums/topic/need-if-user_role-x-value-y/feed/ Mon, 29 Apr 2024 06:44:24 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/need-if-user_role-x-value-y/#post-43761 <![CDATA[Need: "If ($user_role == x) { $value =y}"]]> https://forum.userproplugin.com/forums/topic/need-if-user_role-x-value-y/#post-43761 Fri, 31 Oct 2014 13:11:03 +0000 kiewee i edited the fields-functions around line 616 like this…

But now i want to show the audio files only userrole x …

i’ve tested:

As admin i see my user_role, but the code stopped when i logged in as another.

(sorry my bad english)

kris

]]>
https://forum.userproplugin.com/forums/topic/need-if-user_role-x-value-y/#post-43784 <![CDATA[Reply To: Need: "If ($user_role == x) { $value =y}"]]> https://forum.userproplugin.com/forums/topic/need-if-user_role-x-value-y/#post-43784 Sat, 01 Nov 2014 17:35:55 +0000 kiewee No idea? 🙁

]]>
https://forum.userproplugin.com/forums/topic/need-if-user_role-x-value-y/#post-43798 <![CDATA[Reply To: Need: "If ($user_role == x) { $value =y}"]]> https://forum.userproplugin.com/forums/topic/need-if-user_role-x-value-y/#post-43798 Sun, 02 Nov 2014 07:57:17 +0000 kiewee $value = do_shortcode('[userpro_private restrict_to_roles=subscriber,administrator][audio src="'.$file.'"][/userpro_private]');

]]>