Login reference Login reference
 

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

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