I am customizing the default theme provided with roundcube. however i am facing problems while adding image in my template. the image is inside the images folder inside mytheme. i want to add that image using an img tag but i just cant figure out how.
I have already tried these paths..none of them are working.
/images/myimage.png
../images/myimage.png
http://local.mysite.com/images/myimage.png
How can i insert an image residing on my own server using img tag?
Assuming your webmail installation is at the root of your url (e.g. http://mail.example.com/), try:
<img src="/skins/mytheme/images/myimage.png">
Related
I want to program a plugin that sets a Text-Container over a Image in Wordpress. Im using the Divi Themen. My idea: I need to find where Images are rendered and add my container where I place my text with something like "get_meta_data()". The needed field are already in the media library. I just need to find how to create the conainer and place it over every image where my text exists. Any Ideas/Tipps?
I tried giving the image path like
<img src="<?php print $directory; ?>/images/yourimage.gif" />
in Drupal 7.
But it's not working. The images are still not loading.
If I give the path like
its working.
I heard its not a good practice.
Is there any other way to add image source in drupal?
your question is not clear. Where did you put your image? Did you use custom content type to save your image? Did you used IMCE in a text field? Do you mean this image is in your template folder, and you call it in your html or page template?
Usually, an image is saved in a node content, customized by editing/creating a content type suitable to the data you want to show.
I'm using uploadcare.com to store my images and files. I just started using it now. I was just wondering that how can i display the uploaded files in a web page. I looked through the documentation too. But didn't get anything to start with?
Is there anyone who have used it?
As per documentation, all images are available via CDN URL (this URL is returned by widget, it's up to you to save it). To add an image to your page just add an img tag:
<img src="http://www.ucarecdn.com/5651bbb6-c599-44bd-9c63-1db5e67db6ad/" />
I have recently created a Joomla module that's a slider. Only problem is that it loads images through a Background:Url CSS property and the images are in a folder in the module but it doesnt seem to want to link unless i insert the full URL in.
I noticed "baseurl ?>" is how they link the stylesheets, but that doesnt seem to want to work on a Background:Url CSS property.
Any Help please.
Thanks
The url to the image must be relative to the CSS file path.
If your CSS-file is at modules/mod_touchheader/css/style.css,
then your url to the image must be url(../tmpl/images/h-slider-1.jpg).
I have a download.php file to display images on a web page as well as downloading files like pdfs, docs, etc.
in ckeditor if the src for the image is /download.php it dispalys like there is no image or broken link image, if the src for the image is http://www.mydomain.com/download.php my image displays just fine in ckeditor.
Any thoughts? And no i cant just make it put the full domain. There is a reason to long, complicated, and stupid to explain thanks to the web hosting company.
In the configuration you need to set the baseHref to the full path, then it will add that to the images/files you upload and insert.