*

MB Themes

Ok so it works just list is not correct right.
I will try to reserve some time for it next week.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

megacheb

  • ***
  • 21 posts
Thanks!

Marked as best answer by frosticek on November 11, 2019, 08:21:55 AM
*

MB Themes

I've investigated issue and solution is to remove commented lines:
Code: [Select]
    if(!in_array($type, $notify)) {
      if($type == OSP_TYPE_PREMIUM) {
        $content['s_text'] = preg_replace('|{START_PREMIUM}(.*){END_PREMIUM}|', '', $content['s_text']);
      } else if($type == OSP_TYPE_HIGHLIGHT) {
        $content['s_text'] = preg_replace('|{START_HIGHLIGHT}(.*){END_HIGHLIGHT}|', '', $content['s_text']);
      } else if($type == OSP_TYPE_REPUBLISH) {
        $content['s_text'] = preg_replace('|{START_REPUBLISH}(.*){END_REPUBLISH}|', '', $content['s_text']);
      //} else {
      //  return false;
      }
    }
  }

so correct code is:
Code: [Select]
    if(!in_array($type, $notify)) {
      if($type == OSP_TYPE_PREMIUM) {
        $content['s_text'] = preg_replace('|{START_PREMIUM}(.*){END_PREMIUM}|', '', $content['s_text']);
      } else if($type == OSP_TYPE_HIGHLIGHT) {
        $content['s_text'] = preg_replace('|{START_HIGHLIGHT}(.*){END_HIGHLIGHT}|', '', $content['s_text']);
      } else if($type == OSP_TYPE_REPUBLISH) {
        $content['s_text'] = preg_replace('|{START_REPUBLISH}(.*){END_REPUBLISH}|', '', $content['s_text']);
      }
    }
  }

also email template must contain keyword strings: START_PREMIUM, END_PREMIUM, .... otherwise it will not work (those cannot be translated).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Abhi Jain

  • **
  • 9 posts
Thanks, Mails are coming now and working proper :)

*

MB Themes

Great
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

megacheb

  • ***
  • 21 posts
Works!
Thank you!

*

sitte

  • *
  • 1 posts
I checked the email.php file and email template but both are ok. But notifications about ad expiring are not sent.

Can You confirm that proper cron url is domain/index.php?page=cron ?
Can You point me what else can I check?

*

MB Themes

@sitte
You can read all details about CRON setup here:
https://docs.osclasspoint.com/cron-setup
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots