BuddyDev

Search

How can I display ads between buddypress activity

  • Inactive
    Level: Enlightened
    Posts: 28
    Kikismedia on #33523

    Is there a way I can display ads after 5 activity post

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #33525

    Do you plan to use ads like google ads, then there is no solution(due to their policy). But if you plan to put banners, then there are solutions.

    You may want to take a look at this
    https://buddydev.com/inject-content-into-buddypress-activity-stream-after-a-certain-number-of-activities/

    Regards
    Brajesh

  • Inactive
    Level: Enlightened
    Posts: 28
    Kikismedia on #33526

    I plan to put banner and text ads so I’m not using AdSense

  • Inactive
    Level: Enlightened
    Posts: 28
    Kikismedia on #33528

    I have gone through the code snippet it’s wonderful, but if I don’t want the banner to repeat how can I achieve that

  • Keymaster
    (BuddyDev Team)
    Posts: 21785
    Brajesh Singh on #33535

    You will most probably want to keep all the banners as array entry and use a random value in the range to avoid a specif c pattern/repetition.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved