Quote:
Originally Posted by y2ksw
Maybe:
($post[postcount] % $vboptions[maxposts]) == 1
makes the difference? I believe without extra parentesis it operates as if:
$post[postcount] % ($vboptions[maxposts] == 1)
The expression may fail due to a division by 0 and thus never execute ...
|
The conditional statement which I posted works in every other case. It is working for rotating banners through a simpler mt_rand () plugin. Though I like your solution better, due to tracking capabilities and better banners management.
Here's a sample link with banner (through mt_rand() plugin) between first and second post.
http://www.insurance-forums.net/foru...-t30355-3.html
Note the banner, on navbar is produced by your product but the one between first and second posts is the other plugin. If you have time to check, in that link, I left the placeholder between the banner and the Quick Register form. You will notice it is returning a blank.
I may be wrong so please correct if I am doing so, but my assumption is that the limitation that it should only be run on global_complete hook is maybe causing to stop displaying in postbit_legacy.
Thanks,
Val.