forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Αndré on December 06, 2011, 04:16:31 pm

Title: Embed Code plugin for cpg1.5.x
Post by: Αndré on December 06, 2011, 04:16:31 pm
This plugin adds pre-built BBCode / HTML embed code to the file information box. You can copy & paste that code wherever you want.

You can choose which embed codes you want to display at the plugin configuration page. On the attached screenshot all currently available embed codes have been enabled in the config.
Title: Re: Embed Code plugin for cpg1.5.x
Post by: viper357sa on August 26, 2012, 12:45:27 pm
Thank you for this, is there any way I can remove the [URL] part of the link and only have the [IMG] code?
Title: Re: Embed Code plugin for cpg1.5.x
Post by: Αndré on August 27, 2012, 03:51:28 pm
Open codebase.php, find
Code: [Select]
$textarea .= '[url='.$url.'][img]'.$file[$option_parts[4]].'[/img][/url]</textarea>';and replace with
Code: [Select]
$textarea .= '[img]'.$file[$option_parts[4]].'[/img]</textarea>';
Title: Re: Embed Code plugin for cpg1.5.x
Post by: Deus on September 14, 2012, 05:39:01 pm
nice one Andre, I missed this in 1.5, you can get the 1.4 plugin to work, but it's a bit of a hassle IIRC.
Title: Re: Embed Code plugin for cpg1.5.x
Post by: WER on September 17, 2012, 01:30:34 pm
Thanks. Very useful plugin.

Is it possible to generate all picturelinks for one gallery?
It would be comfortable to copy all links in one step.
Title: Re: Embed Code plugin for cpg1.5.x
Post by: Αndré on September 17, 2012, 04:37:11 pm
Is it possible to generate all picturelinks for one gallery?
If you mean for one album, yes: http://forum.coppermine-gallery.net/index.php/topic,65779.0.html
Title: Re: Embed Code plugin for cpg1.5.x
Post by: crashfab on December 19, 2012, 06:08:34 am
First thank you for this... 

I am pretty new to this but how difficult will it be for e "noobie" to figure out how to move the BBcode from its current location to right under the picture itself?
Title: Re: Embed Code plugin for cpg1.5.x
Post by: Αndré on December 28, 2012, 11:23:13 am
move the BBcode from its current location to right under the picture itself?

You can use this cpg1.4.x plugin (http://forum.coppermine-gallery.net/index.php/topic,36302.msg170525.html#msg170525). I just tested version 1.3 and it seems to be compatible with cpg1.5.x as-is.
Title: Re: Embed Code plugin for cpg1.5.x
Post by: polak on November 03, 2013, 05:14:03 pm
This plugin adds pre-built BBCode / HTML embed code to the file information box. You can copy & paste that code wherever you want.

You can choose which embed codes you want to display at the plugin configuration page. On the attached screenshot all currently available embed codes have been enabled in the config.

and can be under the photo embed code?
jak to zroic?
Title: Re: Embed Code plugin for cpg1.5.x
Post by: Αndré on November 04, 2013, 09:25:45 am
and can be under the photo embed code?
Sure, but that's not the purpose of this plugin. As you'd need to use different plugin hooks and probably a slightly different code, it's no simple mod. But I'm quite sure this has already been asked and answered somewhere else in our boards.
Title: Re: Embed Code plugin for cpg1.5.x
Post by: Budrys on November 02, 2017, 01:18:59 pm
Hello.

One question.

Can I replace http to https in links?

How to do that?
Title: Re: Embed Code plugin for cpg1.5.x
Post by: Αndré on November 03, 2017, 02:59:39 pm
Sure, just open the Coppermine config and adjust the "URL of your Coppermine gallery folder" accordingly.