Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
VaBeach_Guy Posted October 18, 2023 Posted October 18, 2023 Is there a way to prevent avatar/profile images from displaying for guests? I ask because there's a few avatars on my site that are of bikini clad women, nothing containing nudity or anything like that, but the Google AdSense system thinks they're 'porn' and I constantly get 'nasty grams' from them telling me that ad serving to particular pages is disabled due to sexual content. I dispute it for a manual review and they reverse the action. Not a real big deal, but annoying. If I can prevent AdSense from seeing the images, problem solved. But I'm not seeing any settings that might accomplish this. Is there a way to do this?
Jim M Posted October 18, 2023 Posted October 18, 2023 I'm afraid, hiding the profile photo (avatar) is not possible with default permissions and would require a customization. You can prevent guests from viewing the profile though: Module permissions can be restricted to groups. Profiles is a module under System. Can read more about module permissions in this guide:Â Â Â Â
Robert Angle Posted October 19, 2023 Posted October 19, 2023 You would have to edit the template code somewhere. I forget the current IPS template language at the moment, but it would basically be something like this.... If logged in --> display avatar. else --> display something else You can dig around in your templates and probably figure out the template code.
VaBeach_Guy Posted October 19, 2023 Author Posted October 19, 2023 20 hours ago, Jim M said: You can prevent guests from viewing the profile though: That was my initial thought when I began looking for a solution, and I know that years ago we could restrict guests from seeing profiles, but I can't find the setting for that anywhere, now. So I assume that it was done away with, unless I'm just missing it.Â
Jim M Posted October 19, 2023 Posted October 19, 2023 1 minute ago, VaBeach_Guy said: That was my initial thought when I began looking for a solution, and I know that years ago we could restrict guests from seeing profiles, but I can't find the setting for that anywhere, now. So I assume that it was done away with, unless I'm just missing it. You will want to read the rest of my post to see how to restrict guests from viewing profile. There is a guide I linked to which will detail how to disable permissions on modules 😉Â
VaBeach_Guy Posted October 19, 2023 Author Posted October 19, 2023 20 minutes ago, Jim M said: You will want to read the rest of my post to see how to restrict guests from viewing profile. There is a guide I linked to which will detail how to disable permissions on modules 😉 I did read it all and went into that area and didn't find the settings. Why didn't I find them? Because the area that I needed to go into was right in front of me and I didn't notice it lol. After looking 3 or 4 times, I finally noticed it. It did remove the permission for viewing profiles, but I'll have to dig into it deeper (as has been said), to do what I'd like to do. It's not a HUGE problem, just an annoyance. So if I can't do what I'd like to do, it's not a big deal. But I do wish it was a set option.
Adriano Faria Posted October 20, 2023 Posted October 20, 2023 18 hours ago, VaBeach_Guy said: It's not a HUGE problem, just an annoyance. So if I can't do what I'd like to do, it's not a big deal. But I do wish it was a set option. There's a plugin if you don't mind using 3rd-party: Â Â Â Â Â https://www.sosinvision.com.br/index.php?/file/294-guests-cant-view-profile-photo/
Recommended Posts