forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: sharpo on August 24, 2018, 04:38:29 pm

Title: Remote videos plugin, should it work or does it need amending for 1.6?
Post by: sharpo on August 24, 2018, 04:38:29 pm
Some years ago I used the plugin in my 1.5 gallery. I did try the latest version in my 1.6 test could not batch add the files.

Has anybody tried it with 1.6 yet? For me, an easy alternative would be to replace the youtube image with an ordinary one, with a link to the video from the description field. Not sure how many images would need replacing, maybe dozens or hundreds - oh dear!!!!

Sharpo
Title: Re: Remote videos plugin, should it work or does it need amending for 1.6?
Post by: ron4mac on August 25, 2018, 01:42:51 pm
It will need to be updated for CPG 1.6.x.
Title: Re: Remote videos plugin, should it work or does it need amending for 1.6?
Post by: sharpo on August 25, 2018, 02:19:41 pm
Thanks, explains why I couldn't get it to work.

Sharpo.
Title: Re: Remote videos plugin, should it work or does it need amending for 1.6?
Post by: Αndré on September 18, 2018, 02:54:19 pm
I just had a quick look at the plugin and I was able to add you .youtube file to the gallery when changing one line. Open admin.php (index.php?file=remote_videos/admin), find
Code: [Select]
if (mysql_result(cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_FILETYPES']} WHERE extension = '{$filetype}'"),0) == "0") {and replace with
Code: [Select]
if (cpg_db_result(cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_FILETYPES']} WHERE extension = '{$filetype}'"),0) == "0") {
Then, you need to open the plugin's configuration and click "Apply changes".
Title: Re: Remote videos plugin, should it work or does it need amending for 1.6?
Post by: Αndré on September 18, 2018, 03:31:52 pm
After porting the plugin to cpg1.6.x I noticed it has already been ported by Ron and added to our Git repository ::)

However, I made some maintenance changes and created a plugin announcement thread (http://forum.coppermine-gallery.net/index.php/topic,79474.0.html). You can download the cpg1.6.x compatible plugin there.