RSS Feed/News Question about modifying an add-on

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,166
Points
823

Reputation:

Sorry if I’m asking in the wrong section.I have two add-ons installed on my forum:

  1. Ads Manager 2 by Siropu
  2. Classified Ads System
Each thread has an advertisement attached to it.

How can I make the "Ads Manager 2 by Siropu" add-on delete the corresponding advertisement when a thread is deleted after it expires?

I found part of the code I need:

Code:

Code:
public static function disableExpiredAds()
{
    $ads = self::getAdRepo()
        ->findAdsForList()
        ->ofStatus('active')...

Read more

Continue reading...
 
Status
Not open for further replies.
Top