Hide ASK form field

kram
kram
  • kram
  • 14 months ago
Hello,

Is it possible to hide the ASK form field in /templates/default/open_questions.php

I would like to dissplay a message that only registred users can ask!
I have tried the following with no luck.

<?php if($User->id):?>
Show this to registered users
<?php else:?>
Please register to view this content
<?php endif;?>

and

<?php $user =& JFactory::getUser();
if($User->id):?>
Show this to registered users
<?php else:?>
Please register to view this content
<?php endif;?>

any help would be great.

Access to viewing replies is restricted.
Showing 4 of 4 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai