Skip to Content Skip to Menu

Make new CB Profilebook messages anounced

  • Toffe
  • Toffe
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 1
17 years 6 months ago #35150 by Toffe
In the CBLogin module you can set it to tell users when they have a new PMS or pending connections.

But is there a way to also notify when there's a new post in the users gurstbook (CB Profilebook)

Have anyone any idea how to do such a hack?

Please Log in or Create an account to join the conversation.

17 years 6 months ago #35288 by steveometer
Replied by steveometer on topic Re:Make new CB Profilebook messages anounced
when a user edits their profile, they have the option to select a tab for their cb profilebook

that tab has 3 options:
Enable Profile Entries: Yes No
Auto Publish: Yes No
Notify Me: Yes No

have users set their preferance in that tab

as far as the defaults, that would be hacked in the code for the plugin

SoM

Please Log in or Create an account to join the conversation.

17 years 6 months ago #35290 by steveometer
Replied by steveometer on topic Re:Make new CB Profilebook messages anounced
if you want it to notify no matter what do this

change line 72 from
[code:1]
if($notify=='_ue_yes'){
$cbNotification = new cbNotification();
$res=$cbNotification->sendFromSystem($id,sprintf(_pb_MSGSUB,getLangDefinition($tab->title)),sprintf(_pb_MSGBODY,$postername,getLangDefinition($tab->title)).sprintf($autoPublish?_pb_MSGBODYAUTOAPPROVED:_pb_MSGBODYREVIEWAPPROVE, getLangDefinition($tab->title),$this->_getAbsURLwithParam(array())));

}

[/code:1]

to this
[code:1]
$cbNotification = new cbNotification();
$res=$cbNotification->sendFromSystem($id,sprintf(_pb_MSGSUB,getLangDefinition($tab->title)),sprintf(_pb_MSGBODY,$postername,getLangDefinition($tab->title)).sprintf($autoPublish?_pb_MSGBODYAUTOAPPROVED:_pb_MSGBODYREVIEWAPPROVE, getLangDefinition($tab->title),$this->_getAbsURLwithParam(array())));

[/code:1]

Please Log in or Create an account to join the conversation.

  • Toffe
  • Toffe
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 1
17 years 6 months ago #35298 by Toffe
Thx!
I'll have to do the second sollution, since there is no Profilebook tab in the user settings for me... by some weird reason!

Please Log in or Create an account to join the conversation.

  • Toffe
  • Toffe
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 1
17 years 6 months ago #35300 by Toffe
I changed the file as you stated, but no notificatin is made anyway. That's weird!

I don't know where you are supposed to get notified,
but there is no email, no note in the login box and no PMS.

Please Log in or Create an account to join the conversation.

  • dsendecki
  • dsendecki
  • OFFLINE
  • Posts: 160
  • Thanks: 0
  • Karma: 14
17 years 6 months ago #35317 by dsendecki
Replied by dsendecki on topic Re:Make new CB Profilebook messages anounced

I'll have to do the second sollution, since there is no Profilebook tab in the user settings for me... by some weird reason!


If that's the case -- you should try uninstalling and reinstalling this plugin — looks like initial installation went awry.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum