Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2008
Posts: 92
Likes: 1
M
Journeyman
Journeyman
M Offline
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
UBB.threads Developer
UBB.threads Developer
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)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2008
Posts: 92
Likes: 1
M
Journeyman
Journeyman
M Offline
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 wink


Today they call you "crazy".
Tomorrow they call you "ahead of your time".
Joined: Mar 2007
Posts: 307
Likes: 3
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 307
Likes: 3
Originally Posted by Gizmo
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
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
Originally Posted by ECNet
Care to share this hack?
If you open templates/default/post_side.tpl and post_top.tpl it will show this at the end:
Code
{if $smarty.section.post.iteration == 1 && $post_layout != "gallery"}{$island_insert}{/if}

Simply append additional lines
Code
{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.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2007
Posts: 307
Likes: 3
E
Enthusiast
Enthusiast
E Offline
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. thumbsupsmile

Joined: Jun 2006
Posts: 16,369
Likes: 126
UBB.threads Developer
UBB.threads Developer
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
1 member likes this: ECNet
Joined: Mar 2007
Posts: 307
Likes: 3
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 307
Likes: 3
You da Man!

Thanks!

Joined: Mar 2007
Posts: 307
Likes: 3
E
Enthusiast
Enthusiast
E Offline
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
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,369
Likes: 126
Do you have an ad blocker or ublock origin installed?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2007
Posts: 307
Likes: 3
E
Enthusiast
Enthusiast
E Offline
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 foods

They show fine in Chrome and Explorer/Edge (whatever it is).

Joined: Mar 2007
Posts: 307
Likes: 3
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 307
Likes: 3
It's just seems weird that it only blocks those ads and not the others


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Profile avatar storage settings
by SenecaFlyer - 12/05/2024 1:24 PM
Not allowing attachment over 2m
by ehill - 12/03/2024 3:16 PM
New Admin Here
by SenecaFlyer - 12/02/2024 4:14 PM
Who's Online Now
3 members (Ruben, Gizmo, SenecaFlyer), 798 guests, and 86 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)