Just a quick update, I was able to solve my problem with a fairly basic fix.. Just by appending a fake extension and a question mark (query string marker) to the attachments route it achieved what we are looking for. Facebook posts will now pickup the attachment. It is also backward compatible...
There is one issue with the way xenForo serves image attachments as far as Facebook is concerned. If you attempt to post a thread on Facebook that contains an attachment, Facebook is unable to pull the post attachment as a thumbnail. I have to assume Facebook's source parser that pull the first...
We configure our xenForo installs to keep the data and internal_data folders out of our docroot. With this setup the dummy.jpg file results in the filesystem path rather then the URL.
I'm attaching a patch file that fixes the issue, and 2 screengrabs to illustrate the problem.
Just thought I should update this thread.. I did get the mail queue extended, the problem I had was in my listener. I was listening to the event load_class_mail rather then load_class. After making that change everything fell into place.
Thank you Xon, yes I had started working with extending he XenForo_MailQueue. It occured to me that since many of the class calls in the deferred script are static, the XFCP_ method would not work.
I haven't got it working just yet, but thank you for your example, I will take a look! :)
Has anyone had trouble with their extended classes running under a deferred process?
I have extended the XenForo_Mail class in order to change transports based on the mail template, however the extended class seems to get ignored entirely when running through the deferred script, processing the...
We've noticed in our access files a large number of POST requests which appear to come from the login form, however the URL is being prepended with a forward slash, as though the base href is bad, however it isn't.
For example here is a snippet (of which we have _many_ examples) from an access...
I know this is an older thread, but just my two cents.. I use a Template Modification with the following:
template: navigation
search: <xen:if is="{$tabs.members}">
replace: <xen:if is="0 && {$tabs.members}">
Note that this uses the template modification feature, so you are _not_ actually...
I may have spoke too soon.. It worked for my immediately needs, but as I navigate around the site, I now receive the following error on the homepage:
Fatal error: Cannot redeclare class XFCP_MyAddon_XenForo_ControllerPublic_Abstract in...
Ah! I see, that worked perfectly, thank you :)
In my Listener.php class I was only extending it for the class "XenForo_Controller" or "XenForo_ControllerPublic_Abstract", but by just adding the extension regardless of the currently loading class it now works..
Beautiful. Thank you Daniel!
How do you include your class? I've tried the standard method of using load_class_controller to attempt to extend "XenForo_Controller" but that didn't work. Are you saying I should instead extend XenForo_ControllerPublic_Abstract?