It probably wouldn't be *that* hard... I'll look into it when I get some time.digitalpoint, would it be tough to add an option for ad positions in xenforo pages?
This add on is going to make me lazy...
Actually, you shouldn't change the code... the +6 is within the second parameter of substr(), not the third (there is no third, so it takes the string all the way to the end). The +6 is so the STARTING point is 6 characters past where "#post-" STARTS...Tip: You can make this addon work for boards with more than one million posts by increasing the red number in View.php:
strpos($this->_params['unreadLink'],'#post-')+ 6 )
Its very interesting how this is done. I used jquery to add the ad code for the actual post#1234, but with the Adsense code starting at DOM, it was a big tricky. Digitalpoints solution is better.
i still couldn't see showing ads randomly.It's based on the first unread post in the thread, so if you have already read all the posts on the page, it will fallback to the first post.
We use essential cookies to make this site work, and optional cookies to enhance your experience.