tyteen4a03 Well-known member Jul 9, 2013 #1 Just wondering the options out there... So far from my tinkerings, the biggest issue is that callback signature must match.
Just wondering the options out there... So far from my tinkerings, the biggest issue is that callback signature must match.
Chris D XenForo developer Staff member Jul 9, 2013 #2 You might have to branch and release two versions for something like that. Or just go 1.2 exclusive.
Jon W Well-known member Jul 9, 2013 #3 tyteen4a03 said: the biggest issue is that callback signature must match. Click to expand... I copied how @xfrocks did it in his Widget Framework add-on: http://xenforo.com/community/resources/bd-widget-framework.297/
tyteen4a03 said: the biggest issue is that callback signature must match. Click to expand... I copied how @xfrocks did it in his Widget Framework add-on: http://xenforo.com/community/resources/bd-widget-framework.297/
tyteen4a03 Well-known member Jul 9, 2013 #4 Waindigo said: I copied how @xfrocks did it in his Widget Framework add-on: http://xenforo.com/community/resources/bd-widget-framework.297/ Click to expand... Clever - putting in 2 classes and only launching one. Here is what I did: here and here
Waindigo said: I copied how @xfrocks did it in his Widget Framework add-on: http://xenforo.com/community/resources/bd-widget-framework.297/ Click to expand... Clever - putting in 2 classes and only launching one. Here is what I did: here and here
Jon W Well-known member Jul 9, 2013 #5 tyteen4a03 said: Clever - putting in 2 classes and only launching one. Here is what I did: here and here Click to expand... The nice thing about @xfrocks's method is that there is no duplicate code. You could do something similar by making both of those files extend a single file that includes the methods where the callback signature does not need to change.
tyteen4a03 said: Clever - putting in 2 classes and only launching one. Here is what I did: here and here Click to expand... The nice thing about @xfrocks's method is that there is no duplicate code. You could do something similar by making both of those files extend a single file that includes the methods where the callback signature does not need to change.