Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2017-02-19 07:56:29

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,529
Website GitHub Twitter

Re: [plugin] [ORPHAN] fpx_image_import

Hi

if someone want to use this plugin on txp 4.6.2, you have to modify 2 lines :

Line 409 : add $DB

the line become like below :

global $fpx_image_thumb, $fpx_image_thumbcrop, $fpx_image_thumbx, $fpx_image_thumby, $fpx_image_thumbhint, $fpx_image_thumbgreyhint, $fpx_image_resize, $fpx_image_sharpen, $fpx_image_imgx, $fpx_image_imgy, $fpx_image_importinfo, $fpx_image_filenameasalt, $DB;

And change line 514 from :

$id = mysql_insert_id();

to :

$id = mysqli_insert_id($DB->link);

Below the link to github with the revised version :

https://github.com/dragondz/dzdplugin/blob/master/fpx_image_import

Cheers.

Offline

Board footer

Powered by FluxBB