Closed jodeleeuw closed 10 years ago
in ad.html
if you use the template language you can refer to resources on you local psiturk server
{{ server_location }}/static/images/university.png
{{ server_location }}
will get filled in with the ip/port of your local psiturk server which has to be running to post the ad anyway.
Does this address this issue or did you have something else in mind?
This might work, but I'm worried about the https requirement. I'll test and see what happens.
well it definitely works since we use it all the time. i think regular images can load using mixed content (maybe not flash files, javascript, css, etc... though)
On Jul 16, 2014, at 11:40 AM, Josh de Leeuw notifications@github.com wrote:
This might work, but I'm worried about the https requirement. I'll test and see what happens.
— Reply to this email directly or view it on GitHub.
Well in that case this solves the issue!
In order to include an image on an ad hosted by the ad server, it appears that you need to specify a full path to the hosted image. While I understand why this is the case, it seems somewhat against the spirit of the PsiTurk model since I would need to host the image online on a server in order to use it, and the server would need to be SSL-enabled so that the image file could be loaded over https. It would be a useful feature if there was a way to include image files on the ad page without external hosting.
Alternatively, it might make sense to change the template for ad.html to remove the university logo.