I got a script from propellerAds to add to my site. The script is to be added before </body>. Please how do I add this?
I got a code to insert Ads directly into newsfeed by editing core file. The code is to show Ads after 5 posts. Is this code right and if yes, where should I insert it in the newsfeed.php.
$postcount = 0;
foreach ($posts as $post) {
$postcount++;
// Code to display the post
echo ossnpluginview('post/view', $post);
// After every 5 posts, insert the ad
if ($post_count % 5 == 0) {
echo '<div class="ads">';
echo 'INSERT ADS CODE HERE'; // Replace this with your actual ad code (e.g., Google Adsense or Media.net code)
echo '</div>';
}
}
@Arsealan Shah thanks for the reply. I will try that. I can’t use Michael’s component cause I provided wrong url on my first registration. He won’t give me a second chance.
Add in page.php file in your theme find this file in your theme or search for ads component here by Michael
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)