*

gnolino

  • **
  • 16 posts
Pay per Publish
« on: March 19, 2021, 10:10:28 AM »
Hi,
in function.php is there the code for the Pay per Publish option?
Otherwise noboby knows where I can find it?
I need to check if admin put it on active
Thanks for your attention
« Last Edit: March 19, 2021, 10:29:15 AM by gnolino »

*

MB Themes

Re: Pay per Publish
« Reply #1 on: March 19, 2021, 10:30:53 AM »
@gnolino
You can activate it in plugin settings, then is shown via hooks.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

gnolino

  • **
  • 16 posts
Re: Pay per Publish
« Reply #2 on: March 19, 2021, 12:50:47 PM »
Hallo,
I know, but my I wish that members don't pay for submit an ad.
So I 'm searching function (or hook) where is it for insert a condition about it.
Do you know I could obtain this result?
« Last Edit: March 19, 2021, 12:56:05 PM by gnolino »

*

MB Themes

Re: Pay per Publish
« Reply #3 on: March 19, 2021, 01:34:30 PM »
@gnolino
I am not sure if you will be able to achieve that, it works for all or none.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

gnolino

  • **
  • 16 posts
Re: Pay per Publish
« Reply #4 on: March 19, 2021, 01:51:56 PM »
There is a $group variable and it can be used to switch many things
I tried to break "osc_add_hook('item_form', 'osp_item_publish_form')" upload but I think I have to search into transaction the solve of my issue.
  // ITEM FEES
 if($type == OSP_TYPE_PUBLISH
in function.php
if you delete this string the ad can be publish!
I'm working here...

(($type == OSP_TYPE_PUBLISH && $nGroup < 1 )
Big power "IF" condition!
This work!
I'm to achieve it
 :)
« Last Edit: March 20, 2021, 09:01:59 AM by gnolino »