Allow the use of a wildcard in the "Preventing ads showing in these templates"

bzcomputers

Well-known member
Most ad providers have it in their Terms of Service to not allow ads on pages on "non-content" pages. On XenForo that would include every page associated with a user account.

To prevent ads from showing on these pages we currently have the option under Ads Manager [ General] to "Prevent ads showing in these templates". This works great but could be improved by allowing a wildcard (similar to what you allow for censoring words).

Currently in order to comply with the no ads on "non-content" pages requirement by most ad providers you will need to list all templates that begin with "account_", "conversation_", "login_", and "register_". Currently this could require 40+ lines just to cover all those sections depending on the options currently enabled on your site.

account_alerts
account_avatar
account_banner
account_bookmarks
account_connected
account_connected_associate
account_details
account_email
account_following
account_ignored
account_preferences
account_privacy
account_reactions
account_security
account_signature
account_two_step
account_username
account_upgrades
account_upgrades_purchase
conversation_add
conversation_edit
conversation_invite
conversation_leave
conversation_list
conversation_reply
conversation_view
login
login_password_confirm
login_two_step
register_complete
register_confirm
register_connected_account
register_form

These could all be covered by just this:
account*
conversation*
login*
register*

With this wildcard ability in place your site would remain compliant with any ad provider's TOS if in the future you turned on additional account options like: associated accounts, two-step verification, account upgrades, etc. for which you may not have initially listed the templates for since you were not using those site options at the time.
 
Last edited:
Upvote 3
Top