Mutt
Well-known member
me tooIf anyone can figure out how to get it to appear after the first post on every page (instead of just the first page), let me know.
me tooIf anyone can figure out how to get it to appear after the first post on every page (instead of just the first page), let me know.
Any guidance for header ad placement?
<div style="float: right; margin-top:5px; margin-right: 30px;">
GOOGLE ADSENSE CODE GOES HERE
</div>
<xen:include template="adsense_header" />
<div id="header">
Anyone?how can i show it after last post on each page, before the quick reply box.
Anyone?
Paul,Add it to the thread_view template just before:
<xen:hook name="thread_view_qr_before" params="{xen:array 'thread={$thread}'}" />
<xen:include template="share_page">
<xen:set var="$url">{xen:link 'canonical:threads', $thread}</xen:set>
</xen:include>
<center><script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://www.quantnet.com/openx/www/delivery/ajs.php':'http://www.quantnet.com/openx/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=1");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script>
<?php $rd = rand() ?>
<noscript><a href='http://www.quantnet.com/openx/www/delivery/ck.php?n=af6d3de8&cb=<?php $rd = rand() ?>' target='_blank'><img src='http://www.quantnet.com/openx/www/delivery/avw.php?zoneid=1&cb=<?php $rd = rand() ?>&n=af6d3de8' border='0' alt='' /></a></noscript></center>
this is amazing but how can i display ads in the first post im using this condition in the template message but the ads appear into the conversation i need a condition to verify that make the ads appear only in the showthread page
edit = nvm had to move it all in "pm" there was loads of them after each msg
cheers tho
Is there a way to get this to show after the first page on all page's (not just the first page)
i wish i can help is it possible to make it appear as the last post in a thread in every page
me too
Any fix for that, Paul?That's the Facebook iframe causing that.
Try the following conditional: <xen:if is="{$post.position} % {$xenOptions.messagesPerPage} == 0">...</xen:if>
Source: http://xenforo.com/community/thread...er-first-post-on-every-page.9629/#post-132221
A commonly-requested feature is the ability to identify visitors who have arrived on your site from a search engine result page, in order to target appropriate advertising etc. to them. XenForo now exposes this information in the session and visitor objects, allowing you to customize your templates and add-ons in any way you see fit. This information remains available for the duration of the visitor's browsing session.
<xen:if is="{$visitor.from_search}">
<!-- content to display to visitors referred by a search engine -->
</xen:if>
The URL of the page from which a visitor landed is now available as 'referer' within the session and visitor objects, wherever they came from.
Any idea how to put adsense in the PAGE_CONTAINER where the adverts only show to guests/unregistered?
We use essential cookies to make this site work, and optional cookies to enhance your experience.