<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I would like to show a link on a group node if a
user is a member and another link if they are not. I looked through og.module
and found the $subscription variable. I tried both the following without any
success:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><?php if($subscription == 'active') :
?><BR>already a member!<BR><?php else: ?><BR>Join Today!<BR><?php
endif; ?></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><?php if($subscription) : ?><BR>already a
member!<BR><?php else: ?><BR>Join Today!<BR><?php endif;
?></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But I'm getting "Join Today" showing whether the
user is a member or not. I imagine this means the $subscription variable isn't
available in this context.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>does anyone know how to find out if a user is a
member of an OG group?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Neil</FONT></DIV></BODY></HTML>