Plugins for the Coppermine Photo Gallery are add-ons that use the plugin interface of Coppermine.
Read up the documentation that comes with Coppermine to find out more, e.g. how to install a plugin.

Coppermine version: cpg1.4.x
Plugin name: Login reference
Plugin version: 1.2
Plugin author: m@rk 
Plugin announcement thread: http://forum.coppermine-gallery.net/index.php/topic,40628.0.html



I wrote a simple plugin that replaces the "The selected album/file does not exist !" message with a reference linked to the login form for guests (if they attempt to access a private file via static link).

This could be useful if you share private pictures with members of your gallery.

Languages available: English, German

Developers request:

This plugin replaces some html:

Code:

$html = preg_replace($exper,$newcpch,$html);


If I'd only knew a way to replace whole html blocks (set as $exper) instead of only a single line, it would be possible to replace the complete following html block with the login form...

I made some trials with EOT without success (don't bother about language variables not used so far):

Code:

$to_replace = <<<EOT
<!-- Start standard table -->
<table align="center" width="600" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="1">Error</td>
        </tr>
<!-- cpg_die -->
        <tr>
                <td class="tableb" align="center">
                        <font size="3"><b>The selected album/file does not exist !</b></font>


                        <br /><br />
                </td>
        </tr>

</table>
<!-- End standard table -->
EOT;
