The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Ads after first post

View previous topic View next topic 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.

Luffy
Manager
Manager

Male Posts : 4236
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

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.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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






Luffy
Manager
Manager

Male Posts : 4236
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Ads after first post

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

Topic Solved & Locked


Forum Rules: :Forumotion Staff: :Appeal A Warning: :FAQ: :Tips & Tricks: :Forgotten Password/Login Issues
You need one post to send a PM
When your topic has been solved, ensure you mark the topic solved
Never post your email in public


Derri
Administrator
Administrator

Male Posts : 8385
Reputation : 576
Language : English & Basic French
Location : Scotland, United Kingdom

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