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 [2]   Go Down

Author Topic: Private Messaging System for CPG 1.5  (Read 17467 times)

0 Members and 1 Guest are viewing this topic.

cmfa

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 226
Re: Private Messaging System for CPG 1.5
« Reply #20 on: May 29, 2013, 07:03:05 am »

What you want to achieve? It is added by the plugin.

CMFA
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Private Messaging System for CPG 1.5
« Reply #21 on: July 24, 2014, 02:32:24 pm »

I made the changes to theme.php,style.css and installed the plugin.
It removes the head of the page (head tags,body,menu).I I have is the maintable with no css.
I have no other plugins.
Copermine dafaul install and default curve theme on localhost.
« Last Edit: July 24, 2014, 04:36:47 pm by allvip »
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Private Messaging System for CPG 1.5
« Reply #22 on: July 24, 2014, 03:21:11 pm »

Aditional info:

In codebase.php it looks like this
Code: [Select]
// User menus
//        $thisplugin->add_filter('template_html','pms_user_menu');

// Some filters
$thisplugin->add_filter('thumb_caption','pms_add_link_thumb');
$thisplugin->add_filter('file_data','pms_add_link_normal');
$thisplugin->add_filter('template_html','pms_loginform_start');
// new filter for profile
$thisplugin->add_filter('profile_add_data','pms_profile_edit');

I changed to
Code: [Select]
// User menus
        $thisplugin->add_filter('template_html','pms_user_menu');

// Some filters
$thisplugin->add_filter('thumb_caption','pms_add_link_thumb');
$thisplugin->add_filter('file_data','pms_add_link_normal');
$thisplugin->add_filter('template_html','pms_loginform_start');
// new filter for profile
$thisplugin->add_filter('profile_add_data','pms_profile_edit');

After I uncommented this line, plugin seems to work fine .....

I can belive I did not saw the solution for this problem in Reply #13.
« Last Edit: July 24, 2014, 04:37:49 pm by allvip »
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1290
Re: Private Messaging System for CPG 1.5
« Reply #23 on: July 24, 2014, 06:38:20 pm »

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.

No pm status is displayed and no login form.

I treyed even adding {LOGIN_FORM} in template.html next to {SUB_MENU} or {GALLERY} but nothing.Is showing {LOGIN_FORM} text on the page.





Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 240
    • The Fantasy Attic
Re: Private Messaging System for CPG 1.5
« Reply #24 on: August 14, 2014, 02:44:55 pm »

I have a question about this mod.

Is it solely for just PM's?

My gallery is bridged so what I need for our gallery is a mod to go with the add to favorites ---only I would like to have it that be so that instead of just adding a favorite image we can add a favorite artist AND get an email notification when they upload a new image.

I am hoping this gets folks to comment more...

Will this mod work for this or do you know of one that will, I think Stramm had this feature in his addon at one time.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15428
Re: Private Messaging System for CPG 1.5
« Reply #25 on: March 21, 2016, 09:38:13 am »

Due to frequent support requests regarding the login button, I added version 2.1 to the initial post, which should work as expected and also fixes an issue during the installation for newer PHP versions.
Logged

nambroque

  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 69
    • Galería Fotometeo
Re: Private Messaging System for CPG 1.5
« Reply #26 on: April 21, 2016, 12:18:49 am »

I have installed the plugin, and also translated it into Spanish (attached), but I have some problems/doubts:
-I cannot change into Spanish the "Send PM" button which appears next to the usernames, as it is not in the english.php file
-The icons do not work
-When you receive a notification by mail it says: "If you don't want to receive these notification emails anymore just update your profile and unmark the 'Notify me on new private messages' checkbox". But this option does not appear in "My profile"

Logged
Pages: 1 [2]   Go Up
 

Page created in 0.016 seconds with 22 queries.