Probably worth adding https://xenforo.com/community/threads/responsive-adsense.54891/page-15#post-993822 too.Brogan updated Responsive AdSense with a new update entry:
List of templates to prevent advertisements being displayed on in XenForo 1.5
Read the rest of this update entry...
I've just checked with Google Webmaster Tools and in Search Appearance > Structured Data it is showing me a lot of threads, each with the same error:
Missing: name (fn)
Upon investigation, this appears to be from the Google Adsense advertisement in the first post of each thread.
I believe I posted the solution in the post you quoted. I can't remember any more though as I no longer use the "guest" advertisement post.Have you resolved this error? "Missing: name (fn)"
Google is reporting 17,994 pages with that error on my forum.
Hi with this code:
Code:<xen:if is="!{$visitor.is_admin} OR {$visitor.is_moderator}"> <xen:if is="!in_array({$contentTemplate}, array('message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'search_results', 'register_form', 'register_facebook', 'register_twitter', 'register_google', 'login', 'error_with_login', 'contact', 'thread_create'))"> adsense code </xen:if> </xen:if>
The adsense still appears for admin and moderators user.
Any ideas?
Thanks fr you support.
<xen:if is="{xen:helper ismemberof, $visitor, 1, 2, 4}">
<xen:if is="!in_array({$contentTemplate}, array('message_page', 'error', 'search_form', 'search_form_post', 'search_form_profile_post', 'search_results', 'register_form', 'register_facebook', 'register_twitter', 'register_google', 'login', 'login_two_step', 'error_with_login', 'contact'))">
Adsense Code
</xen:if>
</xen:if>
My understanding is that the asynchronous code allows your page content to continue loading whilst the ad content loads in the backgroud (and displays once completed). It helps to avoid the situation where your pages "stall" or only partly load because they are stopped waiting for ad content to be served.Are there actually any benefits using one over the other?
<xen:if is="{$message.usergroup} == 1">
Ad code here
</xen:if>
as it is JavaScript based, the advertisements will not change on the fly as the browser window is resized. Instead, a page refresh is required.
We use essential cookies to make this site work, and optional cookies to enhance your experience.