Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
FunnyDingo Posted January 12, 2007 Posted January 12, 2007 Hello together,I coded a 'custom module for subscription' (wich can be include while adding an new subscription package in the field 'Run custom module on subscription start/end?'). In my case I needed access to the database and I think a nice way would be $ipsclass->DB. Sadly there is no instance of the $ipsclass-Object.My workaround is, to modify the source/handlers/han_paysubscriptions.php and adding a$this->customsubs->ipsclass = &$this->ipsclass; direct after $this->customsubs = new customsubs(); In this case all subs need a var $ipsclass;after class customsubs {otherwise PHP could throw an error (if I remember correctly, it depends on the error settings).I think it would be advantage, if this would be the default.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.