Specify the direction

Dkf

Active member
Hi, please advise on a solution to the problem.

I have two plugins:
1. ADS Manager by Siropu
2. Classified Ads System

The first plugin restores and deletes advertising threads after payment. An advertisement created by the second plugin is linked to this advertising thread. I need it to be deleted and restored as well.

How should I approach this? Modify the code? Or write a new (third) plugin?

To simplify, the delete and restore operations look something like this:
UPDATE xf_xa_cas_ad SET ad_state = 'deleted' WHERE user_id = '12345';

But in XenForo, is deleting and restoring threads done differently? Maybe through the API?
How can I trigger the deletion of a CAS ad from the ADS Manager by Siropu plugin?

Thank You
 
Back
Top Bottom