*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #15 on: March 23, 2017, 11:30:06 PM »
It is still sending mail while i have disabled this options, it notify the user every time

Notify admin when any listing is republished (1)
Notify user when listing was successfully republished (2)

how to fix this bug? It should be the same for you, try it i have tried it in 3 installations

*

MB Themes

Re: [Question] for republish button
« Reply #16 on: March 24, 2017, 05:43:35 AM »
@oscman
There are 3 types of email:
- admin notification
- republish notification
- info that republish is available notification

Are you getting first 2 or third one?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #17 on: March 24, 2017, 09:59:31 AM »
- republish notification
if its easier to remove notification from the entire plugin i don't mind i don't need them

I think problem is with this code its missing if user notify =1?
Code: [Select]
    if($today >= $will_expire_date or $republish_anytime == 1) {
      if($republished < $max_republish) {
        email_confirm($item_id, $expire_date);

        if($notify_admin == 1) {
          email_admin($item_id, $expiration_days);
        }
« Last Edit: March 24, 2017, 11:11:02 AM by oscman »

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #18 on: March 24, 2017, 11:35:28 AM »
And please check this:
Listings that have been published before backoffice was installed are not able to be republished, it says no item with that ID.
Is backoffice usable only for new created sites? how to fix this? have 4k listings can't start over

*

MB Themes

Re: [Question] for republish button
« Reply #19 on: March 25, 2017, 07:27:20 AM »
@oscman
When plugin is installed, it copy IDs of all existing listings to own table to be able to work with them. That should eliminate any problem using it on older listings.
If you see this error, it means IDs has not been copied.

We use this function on install:
Code: [Select]
INSERT INTO /*TABLE_PREFIX*/t_item_bo_mgr (item_id) SELECT pk_i_id FROM /*TABLE_PREFIX*/t_item;
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #20 on: March 25, 2017, 01:31:25 PM »
Thanks it works now.

you missed my previous reply my mail server is spamming that listing is republished and i have notofications off:
Quote
- republish notification
if its easier to remove notification from the entire plugin i don't mind i don't need them

I think problem is with this code its missing if user notify =1?
Code: [Select]
    if($today >= $will_expire_date or $republish_anytime == 1) {
      if($republished < $max_republish) {
        email_confirm($item_id, $expire_date);

        if($notify_admin == 1) {
          email_admin($item_id, $expiration_days);
        }

*

MB Themes

Re: [Question] for republish button
« Reply #21 on: March 25, 2017, 08:01:27 PM »
@oscman
You are right.
Modify line with that function to:
Code: [Select]
        if(osc_get_preference('bo_mgr_user_notify', 'plugin-bo_mgr') == 1) {
          email_confirm($item_id, $expire_date);
        }
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #22 on: March 29, 2017, 02:00:02 PM »
Thanks, replace this with what line exactly? Replace the whole code i quoted with your's?

Marked as best answer by oscman on March 29, 2017, 03:19:50 PM
*

MB Themes

Re: [Question] for republish button
« Reply #23 on: March 29, 2017, 02:36:53 PM »
@oscman
Line:
Code: [Select]
email_confirm($item_id, $expire_date);
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #24 on: March 29, 2017, 03:19:47 PM »
Thanks it works now