|
Joined: Jun 2008
Posts: 92 Likes: 1
Journeyman
|
Journeyman
Joined: Jun 2008
Posts: 92 Likes: 1 |
I'm using version 7.7.1.
I have seen where some forums embed an ad in the flow of a thread. For example, I have seen them show an ad just below the starting post in a thread.
Does UBBT have this feature?'
I have been searching the control panel/docs and cannot find a mention of it.
Thanks in advance.
Today they call you "crazy". Tomorrow they call you "ahead of your time".
|
|
|
|
Joined: Jun 2006
Posts: 16,369 Likes: 126
|
Joined: Jun 2006
Posts: 16,369 Likes: 126 |
When editing a forum in the Control Panel under the "Custom Inserts" tab there is one stock option called "Custom Island Insert", this island takes a specified "Custom Island" and uses it to display an advertisement (or other important data). There are some unsupported code modifications to reuse this data multiple times in a thread (such as on here)
|
|
|
|
Joined: Jun 2008
Posts: 92 Likes: 1
Journeyman
|
Journeyman
Joined: Jun 2008
Posts: 92 Likes: 1 |
Thanks for the info. I am using custom islands now and they are working well. I just ran into an issue with Google AdSense that requires different ad placement, which is weird, but I'm looking for a solution... or another ad service. It's always something
Today they call you "crazy". Tomorrow they call you "ahead of your time".
|
|
|
|
Joined: Mar 2007
Posts: 307 Likes: 3
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 307 Likes: 3 |
When editing a forum in the Control Panel under the "Custom Inserts" tab there is one stock option called "Custom Island Insert", this island takes a specified "Custom Island" and uses it to display an advertisement (or other important data). There are some unsupported code modifications to reuse this data multiple times in a thread (such as on here) Care to share this hack?
|
|
|
|
Joined: Jun 2006
Posts: 16,369 Likes: 126
|
Joined: Jun 2006
Posts: 16,369 Likes: 126 |
If you open templates/default/post_side.tpl and post_top.tpl it will show this at the end: {if $smarty.section.post.iteration == 1 && $post_layout != "gallery"}{$island_insert}{/if} Simply append additional lines {if $smarty.section.post.iteration == 7 && $post_layout != "gallery"}{$island_insert}{/if} $smarty.section.post.iteration being the post id of how many posts you allow per page.
|
|
|
|
Joined: Mar 2007
Posts: 307 Likes: 3
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 307 Likes: 3 |
Thanks! Does the number 7 in the additional code mean it will include after 7 posts or after the 7th post? Will it work the same as the Forum Default in that logged in users won't see it but others will? Thanks for your time. smile
|
|
|
|
Joined: Jun 2006
Posts: 16,369 Likes: 126
|
Joined: Jun 2006
Posts: 16,369 Likes: 126 |
I think it's after the 7th item (post) is processed as the original is a 1 and displays after the first post
|
1 member likes this:
ECNet |
|
|
|
Joined: Mar 2007
Posts: 307 Likes: 3
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 307 Likes: 3 |
|
|
|
|
Joined: Mar 2007
Posts: 307 Likes: 3
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 307 Likes: 3 |
Just noticed Firefox seems to block the ads between posts. Have you noticed that?
|
|
|
|
Joined: Jun 2006
Posts: 16,369 Likes: 126
|
Joined: Jun 2006
Posts: 16,369 Likes: 126 |
Do you have an ad blocker or ublock origin installed?
|
|
|
|
Joined: Mar 2007
Posts: 307 Likes: 3
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 307 Likes: 3 |
Nothing installed. The Adsense header, footer and sidebar ads show in Firefox, but not the ads between posts. >> Favorite foodsThey show fine in Chrome and Explorer/Edge (whatever it is).
|
|
|
|
Joined: Mar 2007
Posts: 307 Likes: 3
Enthusiast
|
Enthusiast
Joined: Mar 2007
Posts: 307 Likes: 3 |
It's just seems weird that it only blocks those ads and not the others
|
|
|
|
|