Login reference Login reference
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Login reference

Started by m@rk, January 26, 2007, 08:55:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m@rk

[placeholder to get corresponding thread link for plugin description]

m@rk

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

m@rk

Developers request:

This plugin replaces some html:

$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):

$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;

angeldevil

Hi M@rk!

A simple italian translation is attacched
a