Announcement

Collapse
No announcement yet.

Ad after every sixth post

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Ad after every sixth post

    Hello
    I want to put an ad after every 6 post, to be shown only if the split page has 9 posts.
    This code:
    Code:
    <vb:if condition="$post[postcount] % $vboptions[maxposts] == 6 AND $GLOBALS[threadinfo][replycount] > 8">

    works OK, but only for first page.
    If i split my pages on every 20 posts and the thread has 27 posts, the ad will be shown on second page. But on second split page are only 7 posts - i don't want to show it.


    Please, help with code.

  • #2
    You start a request at vbulletin.org as there is the place for those modifications
    No private support, only PM me when I ask for it. Support in the forums only.

    Comment


    • #3
      Ok, no problem.
      Definitely, we have a different opinion what is modification and what is not...
      I think, this is a basic knowledge
      Thank you, you are very helpful.

      Comment


      • #4
        Originally posted by kodbg View Post
        Ok, no problem.
        Definitely, we have a different opinion what is modification and what is not...
        I think, this is a basic knowledge
        Thank you, you are very helpful.
        A modification is everything that doesn't come from the original code anymore. That has nothing to do with basic knowledge.
        No private support, only PM me when I ask for it. Support in the forums only.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        X