-
February 23, 2022, 02:00 PM
#1
Master
Possible to add {if !$isLogin} to banners plugin?
I wanted to make a smart move to make people wanna create accounts on my site by removing google ads when they are logged in.
Is it possible to add this to the plugin?
I tried to add {if !$isLogin} bu that just became text
Last edited by Peter Jonsson; February 23, 2022 at 02:09 PM.
-
February 23, 2022, 04:01 PM
#2
Guru
I was thinking exactly the same thing a few days ago.
Maybe under membership services can have the option of remove google ads, and then have it connected to the banners plugin where in each banner you can click an option to enable/disable the banner so it relates to the membership service.
I would deffo use that
Last edited by Chris Brown; February 23, 2022 at 06:03 PM.
-
February 23, 2022, 05:10 PM
#3
Senior Member
Try to do it at the template level! That is, wrap the output of the block in {if !$isLogin} banner {/if}
Then the patterns under the login will not see ads! But I would actually remove the ads for the membership plan, it's cooler! That's if you use it!
And by the way! At the template level, it is better to implement the function of hiding ads, in this case, you will not lose edits when updating!
-
February 23, 2022, 08:07 PM
#4
Master
Ye, i can do it thru teamplate but i dont have ads on all pages and it's annoying to modify the template, would rather have it done by the plugin.