Okay so I have a wordpress site.
for example wordpress.com
On it I have a page called sports, I took some of these pages and put them under the page 'summer'
So the url is now www.wordpress.com/summer/sports
However all the images are in wordpress.com So all the pages under the page summer, can't see those images and all you have are image frames.
If you create the directory summer and put images in it, It will make it so when you go to www.wordpress.com/summer/sports, you will be taken to a blank page with only a single image.
So making a directory under the page name actually messes with wordpress and makes that page unreachable.
I presume you have used a relative path to the images on your pages, so when you moved them they no longer know where the image is in relation to the relative path. Using an absolute path would solve this issue (e.g. http://wordpress.com/myimages/test.png) you can then move your pages anywhere and they will always pick up the image or you need to change the relative path.
See here for explanation of relative & absolute paths: http://webdesign.about.com/od/beginningtutorials/a/aa040502a.htm
Related
I have a Multi language WordPress website in 2 languages -
Japanese url - here
English url - here
The problem is that the website is not showing the images that are there kept inside the "wp-content>uploads" folder.
You can check that the images are there but not showing. Eg.
Open url - here
Under the section "私たちのギャラリー" the images are not showing but the images are there. Eg "Manushi" has the image http://yomeiri.com/en/wp-content/uploads/sites/2/2017/12/maxresdefault.jpg which is put on img's src property but is not showing. Same thing with other images too.
What is the problem please help?
I have made a site with Codeigniter and users have options to upload their photos there. As the photos are personal, I think keeping them on web directory is not safe. As a result, I kept them on a root directory like /var/www/images directory. Now, how I can get the images in a webpage?
Wrong Choice dear learner. you images folder needs to be accessible by your code and to the browser to render that image by the image path. For example
This is the image directory of my project. I am using all these images in different pages of my website. Some are selected dynamically by my code.
Now in your case by putting images in www folder, you are making a path of http://images/ which is not recommended by any PHP guidelines. Your images folder should be in your project root not outside.
If you want to disable folders to be viewed, just add empty index.html file, but if you try to protect images from being viewed then your website wont be able to find them too image protection in codeigniter
The code will be as safe as you make it. Well what you are doing is fine, the web server will still have to access the images.
While ignoring the rest of your code or what yo are trying to achieve, you could try referencing the images fro your webroot or probably create a symlink.
Also, I would try to put the images in another place like AWS.
If security is a concern for you, you can try building a ImagesController that checks if image exists, if user has permissions to see it and after that render it.
Uploaded images should also have some reference row inside a table in your database that can have a column which specifies if it should be public (also try to sort them to folders depending on what it represents - user profile pics, product images, etc).
I know it's a little bit of work but this would be the way I would do it.
You can check online for examples of controllers that return an image.
Good luck on your project.
On my site GAME.php page I have many photos in GIF format.
Is it possible that the user who connects to my site on the home page (index.php) downloads all my GIF images first? Like that when it goes to the page GAME.PHP the images will already download and they will be displayed directly.
If I put the images in a transparent div on the page INDEX.PHP, is that good?
But I find the idea not to be correct.
There are many solutions to the problem. One of the solutions is to include all the images in index.php and don't display them using css visiblility property. And load the game.php content using ajax and make the images visible. Problem with this solution is url's of two pages would be same. This won't be a problem if that is not a concern.
This is driving me insane!
My joomla image folder is "images"
Images appear fine on my home page
when I create an article the image path turns into article_name/images but the correct path is /images and in global + media settings it shows images
I disabled SEF, cleared cache F -no difference
I tried to disable URL rewriting - no difference
Even the site logo path changes on a article page to article_name/images/imagename.jpg when it should be images/imagename.jpg
The joomla site is installed in the public_html folder
Is there a rewrite condition I can use in htaccess file to make sure images always load from the images folder and do not have the article name added?
I found a link which might solve the problem. Here's the link: https://forum.joomla.org/viewtopic.php?t=298582
Modify inlcudes/application.php at row 108, from this:
Code: Select all
$document->setBase(JURI::current());
to this:
Code: Select all
$document->setBase(JURI::base())
;
My clients home page is https://www.quakereadykit.com/store/home.php
This was given to me by a previous designer, and I cannot figure out how to do the simple task of changing the small photo next to the "Welcome" text. I have used Firebug in FF to try and dissect the page but I cannot find the source. Seems to be an include from another file.
Maybe I'm missing something, but it seems to be an image called "kitad.gif" residing in the "/images/" directory (i.e. a folder called "images" just underneath web root).
If you can't find the code into which it's embedded, then you could replace it by uploading a new image with the same name and (ideally) the same dimensions into the same folder.