Previous Thread
Next Thread
Print Thread
Hop To
[FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum #263077 08/15/2019 4:33 PM
Joined: Mar 2007
Posts: 244
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: Mar 2007
Posts: 244
Just noticed that the Custom Insert in the Gallery Forum Threads is appearing twice, after First and Second Post.

Example: https://www.electrical-contractor.net/forums/ubbthreads.php/galleries/195236/how-about-some-emt.html

Any ideas?

Bill

Re: [FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum [Re: ECNet] #263080 08/15/2019 6:23 PM
Joined: Jun 2006
Posts: 15,842
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,842
Has someone modified your templates/default/post_side.tpl or templates/default/post_top.tpl files? There should only be one instance of
Code
{if $smarty.section.post.iteration == 1}{$island_insert}{/if}


In either file (towards the bottom); do you have any second instance of {$island_insert} in either file?

Edit: We were able to reproduce this on UBBDev here; it appears to only affect Gallery Forums, this will be fixed in v7.7.4. Thank you for reporting smile

Last edited by Gizmo; 08/15/2019 6:34 PM.

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.
Need to Upgrade?
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!
Re: [FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum [Re: Gizmo] #263082 08/15/2019 6:41 PM
Joined: Mar 2007
Posts: 244
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: Mar 2007
Posts: 244
No, files are as they were when upgraded about 10 days ago.

Only 1 instance in either file.

BTW, it's only happening in the Gallery Forum threads as far as I can see.

Re: [FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum [Re: Gizmo] #263083 08/15/2019 6:45 PM
Joined: Jun 2006
Posts: 15,842
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,842
Originally Posted by Gizmo
Edit: We were able to reproduce this on UBBDev here; it appears to only affect Gallery Forums, this will be fixed in v7.7.4. Thank you for reporting smile

Not sure if you caught my edit before your reply; this should be patched in the next release.


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.
Need to Upgrade?
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!
Re: [FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum [Re: Gizmo] #263084 08/15/2019 6:46 PM
Joined: Apr 2004
Posts: 1,517
isaac Online Splat
UBB.threads Developer
Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,517
Originally Posted by Gizmo
Edit: We were able to reproduce this on UBBDev here; it appears to only affect Gallery Forums, this will be fixed in v7.7.4. Thank you for reporting smile


Thank you ECNet for reporting this.


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: [FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum [Re: ECNet] #263085 08/15/2019 6:47 PM
Joined: Mar 2007
Posts: 244
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: Mar 2007
Posts: 244
For what it's worth, I can't totally guarantee it wasn't like that before upgrade, but I think I would have noticed.

Re: [FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum [Re: isaac] #263086 08/15/2019 6:49 PM
Joined: Mar 2007
Posts: 244
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: Mar 2007
Posts: 244
Originally Posted by isaac
Originally Posted by Gizmo
Edit: We were able to reproduce this on UBBDev here; it appears to only affect Gallery Forums, this will be fixed in v7.7.4. Thank you for reporting smile


Thank you ECNet for reporting this.

Okay than, scratch my last comment... smile

Re: [FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum [Re: ECNet] #263087 08/15/2019 9:45 PM
Joined: Apr 2004
Posts: 1,517
isaac Online Splat
UBB.threads Developer
Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,517
As you've pointed out, it looks as though this bug has existed for nearly a decade, but no one before you has reported it. Big thank you!


A simple fix for this is -

IN templates/default/post_side.tpl
AND templates/default/post_top.tpl
FIND TOWARDS THE BOTTOM:
Code
{if $smarty.section.post.iteration == 1}{$island_insert}{/if}


REPLACE WITH
Code
{if $smarty.section.post.iteration == 1 && $post_layout != "gallery"}{$island_insert}{/if}


NOTES:
The problem is that the special template for the gallery forums has its own $island_insert line which places the island right after the topic post. Then the gallery forum continues to generate replies using your forums default post layout. There isnt a need to call the $island_insert once again for gallery forums.

If the $island_insert is removed from the gallery post, then the $island_insert would not appear after the OP, but instead after first REPLY, which is not something we want.

This simple check should correct that.


Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: [FIXED for 7.7.4] 2 Custom Inserts in Gallery Forum [Re: isaac] #263095 08/18/2019 11:13 AM
Joined: Mar 2007
Posts: 244
ECNet Offline OP
Enthusiast
OP Offline
Enthusiast
Joined: Mar 2007
Posts: 244
Got it, Thanks!


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
ubb.threads 7.7.3 install error on create tables
by andrewjs18 - 09/17/2019 3:39 AM
Horizontal Image Attachment
by ECNet - 09/11/2019 12:17 PM
user profile, after I click Update nothing happens
by PianoWorld - 09/10/2019 12:38 PM
Inline Image Embeds
by ECNet - 09/03/2019 2:38 PM
Who's Online Now
1 registered members (isaac), 67 guests, and 370 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.3