inherit
256235
0
Oct 24, 2024 15:19:07 GMT -8
Reignman
32
August 2018
reignman
|
Post by Reignman on Aug 19, 2021 16:25:24 GMT -8
Forum URL: purplepainforums.comOur forum is ad free, we have a custom domain, ad.txt in place, the whole 9 yards, and we've begun talking with some advertisers about placing ads on our forum. So my question is, is it possible to place ads mid page, like after every 5th post, or can we only place them at the top or bottom? We use a sidebar plugin so I'm sure we can place them there too, but we would like to place them mid page, so if that's possible, what section of the admin panel should I be looking at?
|
|
#e61919
Support Manager
154778
0
1
Nov 26, 2024 12:07:55 GMT -8
Michael
19,618
May 2010
wiseowl
|
Post by Michael on Aug 19, 2021 16:55:15 GMT -8
Hi,
It would be possible to place ads mid-page. Admin>Themes>Layout Templates>Thread would be my guess on where you would want to start.
You might want to consider posting in one of the coding help boards.
|
|
inherit
256235
0
Oct 24, 2024 15:19:07 GMT -8
Reignman
32
August 2018
reignman
|
Post by Reignman on Aug 19, 2021 17:39:17 GMT -8
It would be possible to place ads mid-page. Excellent, thanks for the speedy response Michael. I wanted to find that bit out first, before I started wasting people's time for code help haha. I'll go see what I can figure out or find first.
|
|
inherit
Head of the Emu Preservation
Head of the Emu Farmers Association
13398
0
Jul 12, 2020 14:15:37 GMT -8
Joshua Farrell
7,966
September 2003
dentist
|
Post by Joshua Farrell on Aug 20, 2021 12:20:14 GMT -8
It would be possible to place ads mid-page. Excellent, thanks for the speedy response Michael. I wanted to find that bit out first, before I started wasting people's time for code help haha. I'll go see what I can figure out or find first. At one point I had asked for something similar, but after the first post. One of the former support admins had pulled up code for me to use at that time. It can be adapted for the same purpose of what you are asking for. The link to the post that has the coding that was given to me, is: support.proboards.com/post/6279022The code above imitates the general in thread post, as if someone had responded. It has all of the areas of a general post in it. If you follow the instructions that was given in that post, anything you put into the following: {if $[post.index] == 0} {/if} Will show up under the post number that is represented in that if statement. In this case, that if statement tells us it will show up at the opening post. The opening post, being post 0. So here is basic coding that will get it done, that strips out everything else, but the area for an advertisement: {if $[post.index] == 0} <tr id="post-0" class="item post"> <td class="unblocked"> <div class="content-head ui-helper-clearfix"> </div> <div class="message">HTML CODING OR TEXT! LOOK EVERYONE!</div> </td> </tr> {/if} Follow David's instructions on placement. Once it has been pasted in, the number "0", can be adjusted to be any post number you want that to show up under. In the case of being after the 5th post, you need to specify the number 4. This is because the very first post inside a thread (the thread creation post, and the first post of every page inside the thread), is labeled as post "0". I am assuming you can also specify more than 1 location in that coding, but I am not fluent in the specifics on how to do that. Probably something simple enough to do.
|
|
inherit
256235
0
Oct 24, 2024 15:19:07 GMT -8
Reignman
32
August 2018
reignman
|
Post by Reignman on Aug 21, 2021 14:30:44 GMT -8
Holy wow, that worked brilliantly Joshua Farrell! Thanks for the find. I tried searching for something but came up empty, so you saved me a ton of time. I'll have to go give David Clark a thumbs up too for his excellent code. Hotdog! That made my day, and it'll help get Funkytown off my back xD. You have no idea what it's like getting her on your back ooof.
|
|
inherit
Head of the Emu Preservation
Head of the Emu Farmers Association
13398
0
Jul 12, 2020 14:15:37 GMT -8
Joshua Farrell
7,966
September 2003
dentist
|
Post by Joshua Farrell on Aug 21, 2021 16:34:30 GMT -8
Holy wow, that worked brilliantly Joshua Farrell! Thanks for the find. I tried searching for something but came up empty, so you saved me a ton of time. I'll have to go give David Clark a thumbs up too for his excellent code. Hotdog! That made my day, and it'll help get Funkytown off my back xD. You have no idea what it's like getting her on your back ooof. Glad that I can help.
|
|