Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Butiks on December 28, 2024, 04:18:16 PM

Title: How to remove html tag A for all profile nicknames only for guests?
Post by: Butiks on December 28, 2024, 04:18:16 PM
How to display all nicknames for guests for a standard theme so that it is without the html tag A?

Now it displays to everyone like this:
<a href="https://forum.com/?action=profile;u=1" style="color: #FF0000;">Usernickname</a>
It should only display to guests like this:
<span style="color: #FF0000;">Usernickname</span>
Title: Re: How to remove html tag A for all profile nicknames only for guests?
Post by: Kindred on December 28, 2024, 05:51:44 PM
You would have to modify source files and template files

It is currently FAD...
Title: Re: How to remove html tag A for all profile nicknames only for guests?
Post by: Arantor on December 28, 2024, 06:53:50 PM
Better question: why?

If it's about privacy, remove the permission for guests to see profiles. SMF emits the correct status code to search engines to tell them not to attempt to index such links when requesting them, meaning that this is also not an SEO change.

If it's about bandwidth saving, waste of time, the gzipping the server will do will do better with longer strings.

So... why?