Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Login reference  (Read 17744 times)

0 Members and 1 Guest are viewing this topic.

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
Login reference
« on: January 26, 2007, 09:55:02 PM »

[placeholder to get corresponding thread link for plugin description]
« Last Edit: January 27, 2007, 09:40:21 AM by GauGau »
Logged

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
Re: Login reference
« Reply #1 on: January 26, 2007, 10:34:13 PM »

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
Logged

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
Re: Login reference
« Reply #2 on: January 26, 2007, 10:35:40 PM »

Developers request:

This plugin replaces some html:

Code: [Select]
$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: [Select]
$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;
Logged

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107
Re: Login reference
« Reply #3 on: January 27, 2007, 11:54:25 AM »

Hi M@rk!

A simple italian translation is attacched
Logged
a
Pages: [1]   Go Up
 

Page created in 0.062 seconds with 20 queries.