Ads after first post

Go down

Solved Ads after first post

Post by Luffy on May 22nd 2014, 12:23 am

Hello i would like to add an ad box after the first post of every thread.
I want it to be shown only after the first box. Not after every post. Is it possible?

Thanks.
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Ads after first post

Post by Ange Tuteur on May 22nd 2014, 12:35 am

Hi Marios,

You should be able to insert an element after the first post. Try this :

Modules > javascript codes management > create a new script

Title : what you wish
Placement : in the topics
Paste the code below and submit :
Code:
$(function() {
    $('.post:first').after('<div id="myContainer">Your content here</div>');
});

Replace Your content here by your own HTML or words. You can style the element with the id #myContainer, you can also change the id if you wish.
avatar
Ange Tuteur
Forumaster

Male Posts : 13202
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Ads after first post

Post by Luffy on May 22nd 2014, 12:37 am

Works! Thank you Ange! You are awesome! <3

SOLVED
avatar
Luffy
Manager
Manager

Male Posts : 5511
Reputation : 607
Language : Greek, English
Location : Greece

https://www.crossroadz.net

Back to top Go down

Solved Re: Ads after first post

Post by Derri on May 22nd 2014, 12:39 am

Topic Solved & Locked
avatar
Derri
Helper
Helper

Male Posts : 8713
Reputation : 629
Language : English & Basic French
Location : Scotland, United Kingdom

Back to top Go down

Back to top


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