Support > cpg1.6 plugin contributions

Picture Download Link

(1/2) > >>

ron4mac:
This is a CPG1.5.x version plugin that has been updated for CGP1.6.x
Original thread: http://forum.coppermine-gallery.net/index.php/topic,65849.0.html

zuckelpart:
I made a translation for Estonian users (attached).

allvip:
1) In debug \plugins\pic_download_link\picture.php from line 69 to 72:
I assume mysql_ should be cpg_db_
Anyway the debug notice is gone.

2. mysqli_close(); I don't know what coppermine uses for it or is fine this way.

3. \plugins\pic_download_link\configuration.php (not text on plugin page, plugin configuration or displayimage.php)


--- Code: ---    Notice line 18: Undefined variable: pic_link
    Notice line 19: Undefined variable: pic_link
    Notice line 19: Undefined variable: pic_link
    Notice line 20: Undefined variable: pic_link
    Notice line 21: Undefined variable: pic_link
    Notice line 29: Undefined variable: pic_link

--- End code ---

allvip:
FIXED

1) init.inc.php on line 18


--- Code: ---require_once
--- End code ---

should be replaced with


--- Code: ---require
--- End code ---

2) admin.php line 167


--- Code: ---$pic_link['link_whichone']
--- End code ---

should be replaced with


--- Code: ---$pic_link['whichone'][code]

3) I also belive in init.inc.php

[code]
if (file_exists("./plugins/pic_download_link/lang/{$CONFIG['lang']}.php")) {
    require_once ("./plugins/pic_download_link/lang/{$CONFIG['lang']}.php");
}

--- End code ---

should be


--- Code: ---if ($CONFIG['lang'] != 'english' && file_exists("./plugins/pic_download_link/lang/{$CONFIG['lang']}.php")) {
    require "./plugins/pic_download_link/lang/{$CONFIG['lang']}.php";
}

--- End code ---

allvip:
I don't know if is important but in some files like admin.php


--- Code: ---require_once('plugins/pic_download_link/init.inc.php');

--- End code ---

is without the ./


--- Code: ---require_once('./plugins/pic_download_link/init.inc.php');

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version