jfb-skinning-profile-templates [Jcink.com Wiki]

Differences

This shows you the differences between the selected revision and the current version of the page.

jfb-skinning-profile-templates 2018/09/23 06:11 jfb-skinning-profile-templates 2018/09/23 06:13 current
Line 94: Line 94:
There are many more conditionals you can create, the possibilties are endless as long as you have the right variables. Here are some other examples: There are many more conditionals you can create, the possibilties are endless as long as you have the right variables. Here are some other examples:
-==== show a profile field only if user is in a specific group ====+==== Display profile field (specific group) ==== 
 + 
 +<code> 
 +<script> 
 +if("<!-- |field_1| -->" != "" && "<!-- |g_id| --> " == "4") {  
 +document.write('<a href="<!-- |field_1| -->">Test</a>');  
 +
 +</script> 
 +</code> 
 + 
 +Change the "4" (the root admin grup in this example) to only display field_1's contents to a group ID of your choice.
 
jfb-skinning-profile-templates.txt · Last modified: 2018/09/23 06:13 by jcink