<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1 dir=RTL>

<p class=MsoNormal dir=LTR><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Will said:<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>&gt;&gt; You'll most
likely need to use some PHP in your block contents to conditionally check on
role / group membership.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Thanks for your reply
Will. But how do I programmatically refer to individual links within a block? I
haven't seen any code like that anywhere.<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal dir=LTR><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'>Moses<o:p></o:p></span></font></p>

<p class=MsoNormal dir=LTR><font size=2 color=navy face=Arial><span
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center dir=LTR style='text-align:center'><font
size=3 face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal dir=LTR><b><font size=2 face=Tahoma><span style='font-size:
10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
support-bounces@drupal.org [mailto:support-bounces@drupal.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>William Smith<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, March 20, 2009 5:59
PM<br>
<b><span style='font-weight:bold'>To:</span></b> support@drupal.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [support] Links
Available &quot;Conditionally&quot; Within the Same Block</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal dir=LTR><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal dir=LTR><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>2009/3/20 Moses Elias &lt;<a
href="mailto:iom@netvision.net.il">iom@netvision.net.il</a>&gt;<o:p></o:p></span></font></p>

<div link=blue vlink=purple>

<div>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>I have a block in a sidebar with 3 menu items.
Call them A, B, and C. </span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>1) A is available to authenticated users.
&nbsp;It allows them to create new groups once they are authenticated. Creating
a group automatically promotes the creator to being a group member and a group
admin.</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>2) B is available to authenticated users, who are
members of or have created one group at least. It allows them to post to a
group.</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>3) C is available to authenticated users, who are
members of or have created one group at least. It allows them to invite users
to the group.</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>How do I conditionally give authenticated users
access to links on the basis of their roles within the same block (and not
separate blocks)?</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>What I have found so far is that either the
entire block is visible or invisible. What I want instead is that some of the
links should be present under certain conditions while at other times not.</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>Moses</span></font><o:p></o:p></p>

<p dir=LTR><font size=2 color=navy face=Arial><span style='font-size:10.0pt;
font-family:Arial;color:navy'>&nbsp;</span></font><o:p></o:p></p>

</div>

</div>

<p class=MsoNormal dir=LTR><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a>
]<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal dir=LTR><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>