I’ve defined a custom media site:
using a php callback function getData(..).
getData(..) fetches data from an external domain using $id as a parameter. getData(..) finally returns an HTML string (image + link + text). This works pretty good.
However, I’m asking myself what would happen if mydatadomain.com is not available.
- My question is if the PHP callback for a media site is called every time a posting is viewed or only once when the posting is created/changed? It would be great if XF could save the HTML string once it is returend from mydatadomain.com
- Is there any possibilty to use an AJAX callback instead so that my XF forum is not slowed down while waiting for response?