I have this problem also, unsolved.
i got it fixed by rebuilding thread cache with Rebuild position and post counters. it fixed the paging links and there are no empty pages.
I have this problem also, unsolved.
I guess, once a month i encounter this problemi got it fixed by rebuilding thread cache with Rebuild position and post counters. it fixed the paging links and there are no empty pages.
Current feature, only works for unread post.The ads always seem to show up on the first post of each page - not the most recent towards the bottom....did I set something up wrong?
$html = (string)$this->_params['posts'][$postIdForAd]['messageHtml'];
$arrayParams = (array) $this->_params['posts'][$postIdForAd]['messageHtml'];
$html = reset($arrayParams);
$parser = new XenForo_BbCode_Parser(XenForo_BbCode_Formatter_Base::create('Base'));
$html= $parser->render($html);
if (! strstr( (string)$this->_params['posts'][$postIdForAd]['messageHtml'], '[bbcode][/bbcode]')) {
$html = (string)$this->_params['posts'][$postIdForAd]['messageHtml'];
}
I used this on my ads to switch when in responsive view:Quick question... can Xenforo tags and logic be used in the ad text? I want to switch advert size if I am in Responsive mode.
Cheers
if ($(window).width() > 800)
{
/* Forum Bottom */
google_ad_slot = "XXXXXXXXXX";
google_ad_width = 728;
google_ad_height = 90;
}
else
{
/* Forum Bottom Small */
google_ad_slot = "YYYYYYYYYY";
google_ad_width = 468;
google_ad_height = 60;
}
Is that not needed? i am having the same issues. When logged in there is no issue. When i log out and click on random threads i get the issue detailed above by you.A feedback to the feedback: the above workaround is not needed. the error with Bb Codes was coming from this:
When a Bb Code has no content the key 0 of $tag['children'][0] doesn't exist. So an error occurs.
I'm not sure sorry. The way the ads is inserted inside the message is a little brutal, may be an alternative solution could be found to avoid any problems.Is that not needed? i am having the same issues. When logged in there is no issue. When i log out and click on random threads i get the issue detailed above by you.
<xen:if is="!in_array({$forum.node_id}, array(54))">
Content here
</xen:if>
Do you have moderated posts or anything? Just trying to figure out what would throw pagination off like that internally...
Yes, that should be fix.Hi @digitalpoint , so basically guests that aren't logged-in, would always see an ad in and after the first post on every page? since they're not logged-in, it's impossible to know which comment they read last? this is what I get at least, and from my understating reading the first pages of this thread. Is that it or I"m doing something wrong? registered users see the ads in different places in the thread based on the newest comment, but guests aren't.
Thanks.
YepHi @digitalpoint , so basically guests that aren't logged-in, would always see an ad in and after the first post on every page? since they're not logged-in, it's impossible to know which comment they read last? this is what I get at least from reading the first pages of this thread. Is that it or I"m doing something wrong? registered users see the ads in different places in the thread based on the newest comment, but guests aren't.
Thanks.
We use essential cookies to make this site work, and optional cookies to enhance your experience.