Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
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

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
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: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
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.

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
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.
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: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
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
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
For what it's worth, I can't totally guarantee it wasn't like that before upgrade, but I think I would have noticed.

Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
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

Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
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
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Got it, Thanks!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 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.0
(Preview build 20230217)