https://www.icyphoenix.com/viewtopic.php?f=2&t=9599
-----------------------------------
mort
Sat 25 Jun, 2016 09:52

Bugs In Album Plugin
-----------------------------------
Bugs in -> album/adm/*.php

[color=red][b]Number 1:[/b][/color]

[b]Here ->[/b] http://www.icyphoenix.com/viewtopic.php?p=60550#p60550

[color=red][b]Number 2:[/b][/color]

Template->make_filename(): Error - template file not found: album_nuffimage_box.tpl

Line: 45 - [b]album_nuffimage_box.php[/b]

There's a problem with this path and I can't see where the VARS are to modify it

[code linenumbers=false]$template->set_filenames(array('nuffimage_box' => 'album_nuffimage_box.tpl'));[/code]

It works with this but it's hardly a fix!  :mrgreen: 

[code linenumbers=false]$template->set_filenames(array('nuffimage_box' => '../../plugins/album/templates/default/album_nuffimage_box.tpl'));[/code]

[color=red][b]Number 3:[/b][/color]

On edit / Submit the path Click Here to return to the [b][i]Admin Index[/i][/b] is wrong and looks for the Admin-Index in the Album directory. :(

 [img]http://www.icyphoenix.com/files/images/8840/capture_1.jpg[/img]


-----------------------------------
Informpro
Sun 26 Jun, 2016 15:26

Re: [Bugs] In Album Plugin
-----------------------------------
Oh, that's my bad. We have a constant for the templates I think...


-----------------------------------
mort
Mon 27 Jun, 2016 02:08

Re: [Bugs] In Album Plugin
-----------------------------------
And a lot of these problems were posted and patched when [color=red][b][i]AndyGpy[/i][/b] [/color] had these same problems - And it's disappointing that these errors were not fixed then. Although some of the paths have been re-written differently again! :(

http://www.icyphoenix.com/viewtopic.php?p=60270#p60270

http://www.icyphoenix.com/viewtopic.php?p=60274#p60274

Anyway, I've fixed my copy with the exception of the path to [b]album_nuffimage_box.tpl[/b] because it appears that the CONSTANTS for that path are not being parsed in [b]album_nuffimage_box.php[/b] and needs to be added.


-----------------------------------
Mighty Gorgon
Sat 30 Jul, 2016 22:40

Re: [Bugs] In Album Plugin
-----------------------------------
Thanks for your fixes, I'm going to update GIT and the album plugin in download.

Just for your records, the proper fix for getting tpl file is:
[codeblock]$class_plugins->get_tpl_file(ALBUM_TPL_PATH, 'album_nuffimage_box.tpl')[/codeblock]


