• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Show some fields in Directory for Registered Users

Show some fields in Directory for Registered Users 10 years 4 months ago #29830

  • mojtabapordel
  • mojtabapordel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 6
Hi
I have a form for registering users. In this form, I get some information from users like: Name, Email, Telephone Number, Job, etc.
Now I want to show my website users in a directory, So I used the "Submissions Directory" feature of RSForm Pro.
In this directory, I don't want to show users email and telephone publicly. Just Registered users should see these fields.
I hid these fields in directory by unchecked theme in "Show in Listing" column in "Directory Fields" Section.
Now how can I set the directory to show theme for logged in users?
Or in other situation, How can I enable detail view just for logged in users to see the telephones and emails in detail view?

Thank you and sorry for bad English
Last Edit: 10 years 4 months ago by mojtabapordel.
The administrator has disabled public write access.

Show some fields in Directory for Registered Users 10 years 4 months ago #29848

  • mojtabapordel
  • mojtabapordel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 6
I need your help please
The administrator has disabled public write access.

Show some fields in Directory for Registered Users 10 years 4 months ago #29861

  • mojtabapordel
  • mojtabapordel's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 16
  • Thank you received: 6
Sorry for spam, but I need help please
The administrator has disabled public write access.

Show some fields in Directory for Registered Users 10 years 4 months ago #29874

  • alexp
  • alexp's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 2253
  • Thank you received: 180
So, let me get this right. The details part should only be visible for registered users ? Though there is no built-in feature for it, you could try to implement this via a template override - basically add a registered user condition. More on template overrides here:

https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core

For your scenario you would have to create one for the following layout:

components/com_rsform/views/directory/view.php

Instead of:
<?php echo $this->template; ?>

use:
<?php
$user = JFactory::getUser();
if($user->id > 0)
echo $this->template;
else
echo 'Log in to view more details';
?>
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: mojtabapordel
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!