1. davidunwin
  2. Support
  3. Wednesday, January 24 2018, 08:25 AM
We want to display a list of a number of our registered users (one of our teams)
However, we don't want people to be able to click on the link (name) to see their profile details.
Is it possible to disable the link that shows the profile (see screen shots)?
Attachments (2)
Accepted Answer
admin Accepted Answer
Admin
Hi,
found the problem, my override works in User List menu item (not module).

Now I have created an override also for modules by creating file in /templates/your-template-folder/html/mod_jsnusers/default.php (this file is based to /modules/mod_jsnusers/tmpl/default.php)

Please try to see if now all works as expected ;)
  1. more than a month ago
  2. Support
  3. # Permalink
admin Accepted Answer
Admin
Hi,
yes this is possible, but require a template override, follow these steps:
- Copy file from /components/com_jsn/views/list/tmpl/default_user.php to /templates/your-template-folder/html/com_jsn/list/default_user.php
- Open new file
- Delete link tags (line 38 and line 40)
  1. more than a month ago
  2. Support
  3. # 1
davidunwin Accepted Answer
I tried what you suggested, but no change.
Here is a screen shot of where I place the code and a txt version of the code.
Have I done something wrong??
Thanks
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi, you should remove line 38 and line 40, you have removed lines 37,38,39,40 and 41.
Basically you should remove only HTML a tag:
<a href="/<?php echo $this->user->getLink(array('back'=>1,'Itemid'=>$this->params->def('profile_menuid', ''))); ?>">
</a>


Now should see User List without name.
  1. more than a month ago
  2. Support
  3. # 3
davidunwin Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
Hi,
can you please post me a backend access to check this? if yes then you can use the form below the reply in "Site Details" tab
  1. more than a month ago
  2. Support
  3. # 5
davidunwin Accepted Answer
Here they are
  1. more than a month ago
  2. Support
  3. # 6
davidunwin Accepted Answer
Content Protected
  1. more than a month ago
  2. Support
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.