How to visible image from google drive in announcement ojs 3.0.1?
Typically images will be included simply via an img
tag. The src
attribute would represent the remote URL from anywhere, include a public shared Google Drive URL.
On the other hand, I’m not immediately familiar with how to create a new announcement in OJS 3.x. Can you share a screenshot of what you are trying?
this screenshot in the dashboard. i use script “iframe src=“https://drive.google.com/file/d/0B-CFU89kwYtHa3hlVkVGZW9zLWM/preview” width=“600” height=“600”>” on the source code
but in the homepage, picture not apprear.
this screenshot homepage
You can use Google Drive to host images directly via an img
tag rather than trying to mess with an iframe
(which is bad practice). See:
http://stackoverflow.com/questions/15557392/how-do-i-display-images-from-google-drive-on-a-website
If you really want to use an iframe
, you will need to modify the HTMLPurifier library. See: