Embed Code plugin for cpg1.5.x Embed Code plugin for cpg1.5.x
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Embed Code plugin for cpg1.5.x

Started by Αndré, December 06, 2011, 04:16:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Αndré

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.

viper357sa

Thank you for this, is there any way I can remove the [URL] part of the link and only have the [IMG] code?

Αndré

Open codebase.php, find
$textarea .= '[url='.$url.'][img]'.$file[$option_parts[4]].'[/img][/url]</textarea>';
and replace with
$textarea .= '[img]'.$file[$option_parts[4]].'[/img]</textarea>';

Deus

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.
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

WER

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.

Αndré


crashfab

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?

Αndré

Quote from: crashfab on December 19, 2012, 06:08:34 AM
move the BBcode from its current location to right under the picture itself?

You can use this cpg1.4.x plugin. I just tested version 1.3 and it seems to be compatible with cpg1.5.x as-is.

polak

Quote from: Α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.

and can be under the photo embed code?
jak to zroic?

Αndré

Quote from: polak on November 03, 2013, 05:14:03 PM
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.

Budrys

Hello.

One question.

Can I replace http to https in links?

How to do that?

Αndré

Sure, just open the Coppermine config and adjust the "URL of your Coppermine gallery folder" accordingly.