This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

oscman

  • ****
  • 227 posts
[Question] for republish button
« on: March 11, 2017, 10:56:03 PM »
I wanted to buy backofice manager just for the republish button, i see you can check "Allow users to republish listing anytime, not only when listing is about expire"
I want users to be able to republish listings manualy once every 12 hours and without any fee, is there any option to do that?

Also have you tested this with more than 50k listings site? i saw a post where someone was complaining it was slowing down the site

*

MB Themes

Re: [Question] for republish button
« Reply #1 on: March 12, 2017, 09:28:02 AM »
@oscman
Minimum interval is 1 day (day level).
I am not sure what kind of complaint it was, plugin should not change speed of site.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #2 on: March 22, 2017, 07:30:20 PM »
I just bought backoffice and it looks very cool!

I have problem understanding how republish works as this is what i needed the most.

Currently my republish settings are like in this image http://image.prntscr.com/image/c40965af790b43d09348ec7e4a2262d5.jpg , but i can spam the republish button whenever i want, i was under the impression that user has to wait 1 day to republish his listing. can you help me achieve that?

When i set "How many times can be listing republished: 10" this means that the listing can be republished 10 times at any time? if i set it to 1 will it be 1 time per day? I am confused.

Also is there any way to hide the republish button if user has already republished the listing the last 24 hours?

*

MB Themes

Re: [Question] for republish button
« Reply #3 on: March 22, 2017, 08:24:52 PM »
@oscman
If you click on that small number, it will scroll down and show you the answer.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #4 on: March 22, 2017, 08:33:02 PM »
Could you please read my whole question? You just anwered to my 4th sentence ok. And there is a bug,

1. It says "Republish Link will not be shown for this listing as well." but it IS shown and it links to  domain/user/items?itemType=active  Instead of domain/oc-content/plugins/backoffice_manager/republish.php?item_id=14 when i press it the page refresh and nothing happens no warning nothing.

2. I can press republish 10 times in 1 minute. it should be 1 time per 24 hours. I can't use the plugin if its not restricted to 1 republish per 24 hours.

Another bug: i have both notify user and admin when listing is republished OFF it still sends email the second i press republish
« Last Edit: March 22, 2017, 08:44:29 PM by oscman »

*

MB Themes

Re: [Question] for republish button
« Reply #5 on: March 23, 2017, 07:51:29 AM »
@oscman
If you do not see this link:
oc-content/plugins/backoffice_manager/republish.php?item_id=14, you can try this function to generate link:
Code: [Select]
republish_link_raw(osc_item_id())
- if listing can be republished, URL is returned
- if listing cannot be republished, false is returned (and you should see user/items?itemType=active as URL if used in <a href=""> tag, because it will be empty)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #6 on: March 23, 2017, 10:33:36 AM »
I can press republish 10 times in 1 minute. it should be 1 time per 24 hours. I can't use the plugin if its not restricted to 1 republish per 24 hours.

Another bug: i have both notify user and admin when listing is republished OFF it still sends email the second i press republish

*

MB Themes

Re: [Question] for republish button
« Reply #7 on: March 23, 2017, 10:45:46 AM »
@oscman
Not sure, have you ignored my previous post?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #8 on: March 23, 2017, 10:56:13 AM »
It doesn't say anything about the mail bug
i am using it with veronika theme so no modification should be required to work properly?

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #9 on: March 23, 2017, 11:11:20 AM »
I see this code in veronika:

Code: [Select]
<?php if(function_exists('republish_link_raw')) { ?>
                  <a class="republish round2 tr1" href="<?php echo republish_link_raw(osc_item_id()); ?>" rel="nofollow"><i class="fa fa-refresh"></i> <?php _e('Republish''veronika'); ?></a>
                <?php ?>
shouldn't it also say if the listing is already republished don't show anything or show that you can't republish it yet?

Also why is republishe still sending mail while i have it the send republish mail off?

Here it doesn't show the button after user reach max republish times and it shows flash message that you reach max republish times. https://plugins.abprofitrade.eu/index.php?page=user&action=items

but in veronika theme its not working properly please check it
« Last Edit: March 23, 2017, 11:42:36 AM by oscman »

*

MB Themes

Re: [Question] for republish button
« Reply #10 on: March 23, 2017, 04:40:44 PM »
@oscman
Try to modify it to this:
Code: [Select]
<?php if(function_exists('republish_link_raw')) { ?>
  <?php if(republish_link_raw()) { ?>
    <a class="republish round2 tr1" href="<?php echo republish_link_raw(osc_item_id()); ?>" rel="nofollow"><i class="fa fa-refresh"></i> <?php _e('Republish''veronika'); ?></a>
  <?php ?>               
<?php ?>

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

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #11 on: March 23, 2017, 04:53:28 PM »
Warning: Missing argument 1 for republish_link_raw(), called in /oc-content/themes/veronika/user-items.php on line 164 and defined in /oc-content/plugins/backoffice_manager/function/republish.php on line 75

aren't this things tested if they work properly before going to osclass market as they are all in one pack?
Veronika + SEO + Messenger + Validation + Advertisement + Backoffice Manager
« Last Edit: March 23, 2017, 04:56:29 PM by oscman »

*

MB Themes

Re: [Question] for republish button
« Reply #12 on: March 23, 2017, 07:28:37 PM »
@oscman
If you look on code I have sent you, at least for 2 seconds, you would know what is problem.
We do not provide cross integration of each plugin to every single theme, it is bonus you might not have.

Code: [Select]
<?php if(function_exists('republish_link_raw')) { ?>
  <?php if(republish_link_raw(osc_item_id())) { ?>
    <a class="republish round2 tr1" href="<?php echo republish_link_raw(osc_item_id()); ?>" rel="nofollow"><i class="fa fa-refresh"></i> <?php _e('Republish''veronika'); ?></a>
  <?php ?>               
<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

oscman

  • ****
  • 227 posts
Re: [Question] for republish button
« Reply #13 on: March 23, 2017, 07:52:07 PM »
its not every single theme, its sold as a package that alone implies that all this should work together, i use veronika,backofice,messenger and seo plugin since they was made by the same developer i expected them to work together without problems or at least fix the problems when they are mentioned.

I looked at the code for 20 minutes as you can see i suck at php thats why i am buying theme and not developing one my self.

Thanks for the bug fix, it works now

*

MB Themes

Re: [Question] for republish button
« Reply #14 on: March 23, 2017, 08:40:42 PM »
@oscman
Package is set of products.
Yet there was problem just with integration not with products itself.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots