Support > cpg1.5 plugin contributions
Download complete album als ZIP
Finswimmer:
@fersauce:
I am sorry the replacing line is incomplete.
Try it with: $param['{ALBUM_NAME}'] = $album_name . ' <a href=zip.php?aid='.$aid.'>Download album as ZIP-Archive';
Notice the last ' in front of ;
@André: Although you have addey me to the Contributor group I cannnot change the attachement nor edit my first post.
Αndré:
--- Quote from: Finswimmer on January 26, 2012, 09:59:25 am ---@André: Although you have addey me to the Contributor group I cannnot change the attachement nor edit my first post.
--- End quote ---
I just re-checked the permissions. It seems that the additional privileges for "Contributors" are just granted in the contribution boards. However, it's very easy to convert this mod to a plugin by using the plugin hook
--- Code: ---$param = CPGPluginAPI::filter('theme_thumbnails_title', $param);
--- End code ---
Don't hesitate to ask for help while creating the plugin.
fersauce:
Great! it's OK
I love you!
thank you
Finswimmer:
@Andre:
The plugin is working so far with i18n for the "download" string.
But my zip.php is now in plugins/albumdownload/ (before it was in coppermine_root_dir).
So now php complains at
require('include/init.inc.php');
include('include/archive.php');
which is the very first part of zip.php (as seen on zipdownload.php)
switching it to:
require('../../include/init.inc.php');
include('../../include/archive.php');
results in:
PHP Warning: require_once(include/inspekt.php): failed to open stream: No such file or directory in /var/www/vhosts/default/htdocs/fotos/include/init.inc.php on line 45
PHP Fatal error: require_once(): Failed opening required 'include/inspekt.php' (include_path='.:') in /var/www/vhosts/default/htdocs/fotos/include/init.inc.php on line 45
It tries to access include/inspekt.php from within plugins/albumdownloads, which cannot work...
How can I solve this?
Thank you!
Tobi
Αndré:
Remove
--- Code: --- require('../../include/init.inc.php');
--- End code ---
and access the file via
--- Code: ---index.php?file=albumdownload/zip
--- End code ---
That way the file runs in cpg's context and init.inc.php has already been included.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version