Skip to Content Skip to Menu

[#2907] IM Notification from GroupJive Join Requests

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
13 years 1 month ago #179772 by krileon
I'll be going through bug tickets and feature tickets this month and fixing what I possibly can. I can not guarantee when or if the issue will be fixed in a timely manner of course nor can I provide a release date for next CB release. Bug fix suggestions are welcome, have provided the function causing the problem in my previous post and you're welcome to examine the file and change it as necessary.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
13 years 3 weeks ago - 13 years 3 weeks ago #180956 by beat
SECOND POST:

Please try following fix:

Open components/com_comprofiler/plugin/user/plug_pms_mypmspro/pms.mypmspro.php

and around line 1250 you will see:
Code:
function _pmsUddeGetTime($currentTime) { global $_CB_framework; return $currentTime+($_CB_framework->getCfg( 'offset' )*3600); }

Try replacing with:
Code:
function _pmsUddeGetTime($currentTime) { global $_CB_framework; include_once( $_CB_framework->getCfg('absolute_path') . "/administrator/components/com_uddeim/config.class.php"); return uddetime($config->timezone); }

And report results of test back asap (this weekend if possible).
It's not final fix, but it allows to check if timezone is now correct.

Thanks,

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Last edit: 13 years 3 weeks ago by beat.

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

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
13 years 3 weeks ago #180957 by beat
Please give feedback of the above also as a comment here: forge.joomlapolis.com/issues/2907
(same login as this site)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

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

  • drdehart
  • drdehart
  • OFFLINE
  • Posts: 253
  • Thanks: 2
  • Karma: 1
13 years 3 weeks ago - 13 years 3 weeks ago #180995 by drdehart
after applying that change, I get: Fatal error: Call to undefined function uddetime() in /domain-path/components/com_comprofiler/plugin/user/plug_pms_mypmspro/pms.mypmspro.php on line 1252

I attached the modified file for your review (changed the extension to .txt to upload it).

P.S. - this is tested on uddeIM 2.3/hotfix1.
Attachments:
Last edit: 13 years 3 weeks ago by drdehart.

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

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
13 years 3 weeks ago - 13 years 3 weeks ago #181050 by beat
Oops... new version of that function to test please: (EDITED):
Code:
function _pmsUddeGetTime($currentTime) { global $_CB_framework; static $notLoaded = true; if ( $notLoaded ) { if ( defined( 'JPATH_ADMINISTRATOR' ) ) { if ( file_exists( JPATH_SITE.'/components/com_uddeim/uddeimlib17.php' ) ) { $ver = new JVersion(); if (!strncasecmp($ver->RELEASE, "1.7", 3)) { require_once(JPATH_SITE.'/components/com_uddeim/uddeimlib17.php'); } elseif (!strncasecmp($ver->RELEASE, "1.6", 3)) { require_once(JPATH_SITE.'/components/com_uddeim/uddeimlib16.php'); } else { require_once(JPATH_SITE.'/components/com_uddeim/uddeimlib15.php'); } } } else { global $mainframe; if ( file_exists( $mainframe->getCfg('absolute_path').'/components/com_uddeim/uddeimlib17.php' ) ) { require_once($mainframe->getCfg('absolute_path').'/components/com_uddeim/uddeimlib10.php'); } } $notLoaded = false; } if (TRUE) { //that TRUE is only for testing here if ( is_callable( 'uddetime' ) && isset( $this->uddeconfig ) ) { include( $_CB_framework->getCfg('absolute_path') . "/administrator/components/com_uddeim/config.class.php"); return uddetime($config->timezone); } else { global $_CB_framework; return $currentTime+($_CB_framework->getCfg( 'offset' )*3600); } }

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
Last edit: 13 years 3 weeks ago by beat.

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

  • drdehart
  • drdehart
  • OFFLINE
  • Posts: 253
  • Thanks: 2
  • Karma: 1
13 years 3 weeks ago #181062 by drdehart
So I applied this and user-to-user messages and messages from one of our other components (a custom one) are time-stamped correctly. But we get no messages from GroupJive - like when a user Joins or Leaves a group we used to get a notification, but now nothing. No errors, though.

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

Moderators: beatnantkrileon
Powered by Kunena Forum