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: Private Messaging System
Plugin version: 1.1
Plugin author: Stramm
Plugin announcement thread: http://forum.coppermine-gallery.net/index.php/topic,47974.0.html


This plugin allows you to send private messages to other registered users.
Actually this plugin works for an unbridged coppermine. It'll add a send pm functionality and one to view PMs. Also there is bridge support built in. For now the smf10 works too. It's not that easy to add other bridges cause the bridge files aren't written in the same style. Therefore the way to go would be to hardcode some routines.

In bridged mode the plugin uses the forums PM functions and just adds 'send PM' links in thumbnail view, above the intermediate image and if you copy/ paste the contents of theme_changes.txt to your theme.php another 'send PM' link next to commenter names.

In the admin menu a 'PMS' button will appeare. You can make some settings here
 - enable/ disable pm
 - a bunch of other stuff like smilies etc... some are not yet implemented
important is
Display pm status info when logged in - this will add some statistics (Private Messages:  2 unread, total 9)
Display login form - will show a login box if a user isn't logged in, the above stats at that place when logged in

An english lang file is added. You can add new lang files... the sheme is similar to the other cpg lang files.

Installation:
- unzip and upload to your plugins folder, use the plugin manager to install it
- have a look into the folder images_to_move
   -> copy all images within this folder to your themes images folder (eg themes/classic/images)
   -> copy/ paste the contents from css_changes.txt to your themes css file (eg themes/classic/style.css)
   -> copy/ paste the contents of theme_changes.txt to your theme.php (eg themes/classic/theme.php)
       [no biggie if you don't do that, however the 'send PM' link won't then display next to the username within comments]
   -> if you want to display a 'send PM' link in the user profile, you'll have to manually edit profile.php. Version 1.1 of the plugin introduces a plugin hook in profile.php to reduce the editing amount.

in profile.php find (at the end of the code)
Code:

        make_form($display_profile_form_param, $form_data);

and replace with
Code:

        //added for plugin support - PMS
		$profile_data = CPGPluginAPI::filter('profile_add_data', array ( 0 => $display_profile_form_param, 1 => $form_data ));
        make_form($profile_data[0], $profile_data[1]);


that's it with editing

The login form by default is placed after the sub  menu. If you want it to appeare somewhere else, then add
Code:

{LOGIN_FORM}

to your template.html.

New version (1.1 uploaded on 11/02/2007)
 - added plugin hook in profile.php and changed code in codebase.php to make use of that hook to add data to the profile (send PM link)
