I have a field that I want to hide from guests (search engines) on my postbit. My plugin puts the field in place in the postbit, but I cannot get the conditional correct to display it only to members of the site. Can someone offer advice?
Here is what I have so far:
I want this field answer to display only to members of the site. I know the template conditional would be:Code:if (!empty($post["field{$this->registry->options['grow_comp_profile_field']}"])) { $template_hook['postbit_my_comp'] .= '<dt>' . $vbphrase['grow_comp'] . '</dt> <dd>' . $post["field{$this->registry->options['grow_comp_profile_field']}"] . '</dd>'; }
But this will not work in php. Any help would be appreciated!Code:<vb:if condition="$show['member']">xxx</vb:if>
Also, if anyone has a list of conditionals that work in php for vb4, that would be great too.
Thanks,
Bruce


LinkBack URL
About LinkBacks





Reply With Quote