FIXED Bugs In Album Plugin


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

Number 1:

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

Number 2:

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

Line: 45 - album_nuffimage_box.php

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

Code: [Download] [Hide] [Select]
$template->set_filenames(array('nuffimage_box' => 'album_nuffimage_box.tpl'));


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

Code: [Download] [Hide] [Select]
$template->set_filenames(array('nuffimage_box' => '../../plugins/album/templates/default/album_nuffimage_box.tpl'));


Number 3:

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

capture_1

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

Profile PM  
Subject: Re: [Bugs] In Album Plugin
And a lot of these problems were posted and patched when AndyGpy 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 album_nuffimage_box.tpl because it appears that the CONSTANTS for that path are not being parsed in album_nuffimage_box.php and needs to be added.

Profile PM  
Subject: 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:
Code: [Download] [Hide] [Select]
$class_plugins->get_tpl_file(ALBUM_TPL_PATH, 'album_nuffimage_box.tpl')


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.8041s (PHP: 3% SQL: 97%)
SQL queries: 32 - Debug Off - GZIP Enabled