to show the button. This button allows people just to post a message in a general forum. But now I have a modified Universal Forum block called Better Universal Forum block. This one shows messages only to people who have permission to that particular forum.
So I have a General Forum and now I have a hidden forum called Paid Members. Only paid members can see this one.
So my question is how would I make an image (button) only visible to the paid members of the site?
This is what I have at the moment. It allows the block to show but not the button.
Code:
if (in_array(4,5,8,9, $groupids)) {
$content = "<A HREF=\"http://www.stcloudscoots.com/modules.php?name=Forums&file=posting&mode=newtopic&f=4\"><IMG SRC=\"/images/paidpost.gif\" ALT=\"Paid Members New Post\"></A><BR>";
}
if (!in_array(4, $groupids)) {
if (!in_array(5, $groupids)) {
if (!in_array(8, $groupids)) {
if (!in_array(9, $groupids)) {
$content .= "<A HREF=\"http://www.stcloudscoots.com/modules.php?name=Forums&file=posting&mode=newtopic&f=4\"><IMG SRC=\"/images/paidpost.gif\" ALT=\"Paid Members New Post\"></A><BR>";
} } } }
Ok adding the . in before the = worked. But the only thing is that it is not hiding. Anyone can still see the button. How can I get this (at this point STUPID) thing to hide.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum