Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
Askancy Posted April 2, 2023 Posted April 2, 2023 What should a user care how many users clicked on that link? This item should be admin's choice if: - Show it in public - Show it only to certain groups - Remove it completely from everyone {{if $forum->redirect_on}} <span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span> {{endif}}
Randy Calvert Posted April 3, 2023 Posted April 3, 2023 Why not simply change that language string to a space if it really bothers you that much?
Askancy Posted April 3, 2023 Author Posted April 3, 2023 2 hours ago, Randy Calvert said: Why not simply change that language string to a space if it really bothers you that much? Simply because it is not the correct way to act. As you see I posted a suggestion, because this "function" is completely useless, especially seen by guests/users. I solved momentarily like this: {{if \IPS\Member::loggedIn()->member_id AND \IPS\Member::loggedIn()->isAdmin()}} {{if $forum->redirect_on}} <span class='ipsType_light ipsType_medium'>({lang="redirect_hits" pluralize="$forum->redirect_hits"})</span> {{endif}} {{endif}}
DawPi Posted April 3, 2023 Posted April 3, 2023 (edited) If you want to solve it in that way then use: {{if \IPS\Member::loggedIn()->isAdmin()}} Edited April 3, 2023 by DawPi
Recommended Posts