Choose from our various pricing plans. There is a package for everyone!


How to add Advertisements after the first post in a thread

View previous topic View next topic Go down

Tutorial How to add Advertisements after the first post in a thread

Post by Mati™ on Fri Nov 14, 2014 11:54 pm

How to add Advertisements after the first post in a thread

This tutorial will explain how to insert ads after the first post in a thread. This is a great way to put ads on your site, and it forces users to see the ads.

Go to Administration Panel Modules HTML & JAVASCRIPT Javascript codes management -> Create a new javascript

Title: Announcementpost
Placement: In the topics
Paste the code below and save :
Code:
$(function(){$('.post:first').after('<div id="Ads" style="border-radius: 3px; background: #eee;  border: 1px solid #ccc; font-size: 13px; margin-bottom: 10px;  padding: 10px; margin-top: 10px; text-align:center;">Your advertising code goes here.</div>')});

Just replace "Your advertising code goes here." with your text or image. Now you will have ads after the first post of a thread or after every x posts!
This tutorial was written by Mati™, For FM Focus!
avatar
Mati™
Administrator
Administrator

Age : 31
Posts : 2112
Join date : 2011-10-20
Forum Version : PhpBB3
Reputation : 147

View user profile http://fmfocus.forumotion.net/forum

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum