0 Members and 1 Guest are viewing this topic.

*

Pharg

  • *****
  • 2,886
    • OsDateFourm
  • osDate Version: osDateEvo v1.2
Small bug in userpicgallery.tpl fix
« on: November 29, 2017, 10:32:21 PM »
Hi all Members,

I came across a small bug in the albums viewing layout from the userpicgallery.tpl

On line 101 find this:
Code: [Select]
{if $cntr == $config.album_tnpics_cnt}
Change to:
Code: [Select]
{if $cntr == 0}
The reason this is a bug is that when you have album pics set to 10 or more it shows in rows of 5 and pushes the other pics below like pic attached.
The second pic attached is with the fix added.

I have attached both files already fixed for you, add them to the default and default-3-column templates


The same bug is also in the nickpage_userpicgallery.tpl
On line 45 find this:
Code: [Select]
{if $cntr == $config.album_tnpics_cnt}
Change to:
Code: [Select]
{if $cntr == 0}
Attached in profile view now shows the album like pic.
« Last Edit: November 29, 2017, 10:46:50 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.2 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35