Advertisement

How to hide users real name from Smart search results

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
miberts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Mar 25, 2024 6:49 am

How to hide users real name from Smart search results

Post by miberts » Sun Jun 23, 2024 12:06 pm

Hi there,

I have a big problem with my Joomla SmartSearch Plugin.
I am using the SmartSearch component on a Joomla 4.4.5 website together with Community Builder 2.9.2.

If I search by a users real name with the smartsearch function, his acticles will be found, althought, the users name is not shown in the article. Only his alias is shown.

The Community Builder is set, that the full name is never shown, when displaying users profile.

I hope for your soonest help as this could be a big issue in terms of data protection reguation.

Thanks in advance for your advise.

Best regards

Michael

Advertisement
webmasterab
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sun Sep 24, 2017 12:49 pm

Re: How to hide users real name from Smart search results

Post by webmasterab » Sun Jun 23, 2024 6:00 pm

I read your question but I don't understand what you mean.

You search with the smartsearch
What you were looking for will be found.
Only then... what I understand is that the author is listed with the alias in the articles found.
Did I get that right?

This could be a setting in the options of your articles, or it could be overridden by your menu settings.

Do you have an example link or a screenshot

miberts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Mar 25, 2024 6:49 am

Re: How to hide users real name from Smart search results

Post by miberts » Sun Jun 23, 2024 6:17 pm

Hi webmasterab,

thanks for your reply.
I do not want to post a public link in this forum. Is there any way to send private messages or have private information here?

Regarding your question:
I have an article, writen by full name "Max Smartsearch" with his alias "Max".
In the article only his alias is shown and not his full name.

When searching for "Max Smartsearch" his article will be found, which should not be the case, because nobody is considered to know his name and to find him under his full name at my website.
In both, article setting and menu setting, the authors name and link is set to HIDE.

I hope that this explanation is clear and that there is a good solution.

Best regards

Michael

webmasterab
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sun Sep 24, 2017 12:49 pm

Re: How to hide users real name from Smart search results

Post by webmasterab » Sun Jun 23, 2024 6:36 pm

You can set the 'finder' in the smart plugin not to index the author.
Check all the plugins that you can find under 'finder'.

Maybe that is a solution

miberts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Mar 25, 2024 6:49 am

Re: How to hide users real name from Smart search results

Post by miberts » Sun Jun 23, 2024 7:35 pm

Hi Webmasterab,

there is no such setting. Can you send a screenshot?

Best regard

Michael

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44246
Joined: Sat Apr 05, 2008 9:58 pm

Re: How to hide users real name from Smart search results

Post by Webdongle » Sun Jun 23, 2024 8:23 pm

You could create a template override?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

miberts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Mar 25, 2024 6:49 am

Re: How to hide users real name from Smart search results

Post by miberts » Mon Jun 24, 2024 10:19 am

Hi Webdongle,

thanks for your feedback.
How would I do that and how a template overwrite would affect the smartsearch function?

Best regards

Michael

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44246
Joined: Sat Apr 05, 2008 9:58 pm

Re: How to hide users real name from Smart search results

Post by Webdongle » Mon Jun 24, 2024 2:47 pm

https://docs.joomla.org/Help51:Template ... rrides_Tab

Search the documentation for more info
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

miberts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Mar 25, 2024 6:49 am

Re: How to hide users real name from Smart search results

Post by miberts » Mon Jun 24, 2024 2:59 pm

Webdongle wrote: Mon Jun 24, 2024 2:47 pm Search the documentation for more info
Thats not helpful and not answering my simple question.
How would a template change affect the smartsearch functionality?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44246
Joined: Sat Apr 05, 2008 9:58 pm

Re: How to hide users real name from Smart search results

Post by Webdongle » Mon Jun 24, 2024 5:02 pm

If you search the docs you will see that overrides override the actions of Components, Modules and Plugins.

With Overrides it is possible to change some of the information that is put/get to/from the database. As well as what is displayed on the screen.

By creating an override for Smart Search it should be possible to prevent various fields from displaying on the screen.

afaik there is no setting in the Component that does what you want. A template override is afaik the only way to achieve it.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

webmasterab
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sun Sep 24, 2017 12:49 pm

Re: How to hide users real name from Smart search results

Post by webmasterab » Mon Jun 24, 2024 8:56 pm

miberts wrote: Sun Jun 23, 2024 7:35 pm Hi Webmasterab,

there is no such setting. Can you send a screenshot?

Best regard

Michael
I now read @webdongel's response and I think that solution is better.
The settings in the plugin concern indexing.
And not about whether or not to show it.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44246
Joined: Sat Apr 05, 2008 9:58 pm

Re: How to hide users real name from Smart search results

Post by Webdongle » Tue Jun 25, 2024 12:07 am

I would suggest creating a child Template and trying an override on that.
I'm looking for the place to edit. It looks like the smart search output files use a variable that calls a layout file.
Will report back if I find it

Addendum
Found https://docs.joomla.org/Customising_the ... sults_page
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

miberts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Mar 25, 2024 6:49 am

Re: How to hide users real name from Smart search results

Post by miberts » Tue Jun 25, 2024 6:55 am

Hi there,

I have checked the source code of the concerned pages and the users full name is coming from the following script in the head area:

Code: Select all

<script type="application/json" class="joomla-script-options new">{"highlight":[{"class":"js-highlight","highLight":["USERS FULL NAME"]}],"joomla.jtext":{"JLIB_JS_AJAX_ERROR_OTHER":"Beim Abrufen von JSON-Daten wurde ein HTTP-Statuscode %s zur\u00fcckgegeben.","JLIB_JS_AJAX_ERROR_PARSE":"Ein Parsing-Fehler trat bei der Verarbeitung der folgenden JSON-Daten auf:<br \/><code style='color:inherit;white-space:pre-wrap;padding:0;margin:0;border:0;background:inherit;'>%s<\/code>","ERROR":"Fehler","MESSAGE":"Nachricht","NOTICE":"Hinweis","WARNING":"Warnung","JCLOSE":"Schlie\u00dfen","JOK":"OK","JOPEN":"\u00d6ffnen"},"finder-search":{"url":"\/index.php?option=com_finder&amp;task=suggestions.suggest&amp;format=json&amp;tmpl=component&amp;Itemid=733"},"system.paths":{"root":"","rootFull":"https:\/\/www.mysite.de\/","base":"","baseFull":"https:\/\/www.mysite.de\/"},"csrf.token":"7a95b0b60d5c4800afd35593b3feeb1b","system.keepalive":{"interval":3540000,"uri":"\/index.php?option=com_ajax&amp;format=json"}}</script>
Can I hide this line by changing the template? That would solve my issue.

Thanks in advance for your help.

Best regards

Michael

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44246
Joined: Sat Apr 05, 2008 9:58 pm

Re: How to hide users real name from Smart search results

Post by Webdongle » Tue Jun 25, 2024 7:15 am

Which file is that in?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

miberts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Mar 25, 2024 6:49 am

Re: How to hide users real name from Smart search results

Post by miberts » Tue Jun 25, 2024 8:02 am

This is in the sourcecode of the public article page.

miberts
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Mon Mar 25, 2024 6:49 am

Re: How to hide users real name from Smart search results

Post by miberts » Tue Jun 25, 2024 8:15 am

I am sorry, in fact this code came from my search of the users full name to highlight the search term.
If I open the same page but not through the search function, the users full name can not be found in the sourcecode.

Nevertheless Smartsearch will find the articles, when searching for his/her full name.
Is this a problem that can be solved by a template adjustment?

My site is using a Yootheme Pro template.

Thanks for your advise.

Best regards

Michael

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44246
Joined: Sat Apr 05, 2008 9:58 pm

Re: How to hide users real name from Smart search results

Post by Webdongle » Tue Jun 25, 2024 1:57 pm

You can edit the search filter to search (or not search) by the filter edit screen. But the display is controlled by the files. I have looked through the override files and it looks like the code for the Author is a variable fetching something from further in Joomla.

Editing overrides has become less flexible than it used to be,
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

Advertisement

Post Reply

Return to “Administration Joomla! 4.x”