joit
Active Member
Hi,
I want to display some content just for certain user groups in an article. This worked great for guest user groups but it doesn't seam to work for others:
Any ideas?
Thanks
Hannes
I want to display some content just for certain user groups in an article. This worked great for guest user groups but it doesn't seam to work for others:
PHP:
{source}
<?php
$user = JFactory::getUser();
if ($user->get('vendor', 0))
{
// vendor
echo '<p>
jkhgjfdkhg
</p>';
}
?>
{/source}
Any ideas?
Thanks
Hannes