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())
;
Related
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.
I am using "D5 Socialia" theme Version 1.2.8, WordPress 3.7 and installed lumia-bxslider slider plugin to my site.
I encountered these issues:
- Height which I set from admin panel doesn't work.
- Now bullets or next previous button is appeared.
- I can not understand the functionality of.
->Prev Images Path
->Next Images Path
->Pager Images Path
->Pager Active Images Path
Above given options in lumia-bxslider plugin settings.
I think by this time you have already solved this issue. But probably somebody will come
across it in the future.
So just like most slider plugins, you may override the default css, images and etc.
Below is for your question.
->Prev Images Path : The path to the image icon. (i.e. /wp-content/themes/yourtheme/imagefolder/usual_left_arrow_icon.png)
->Next Images Path : The path to the image icon. (i.e. /wp-content/themes/yourtheme/imagefolder/usual_right_arrow_icon.png)
->Pager Images Path : The path to the image icon. (i.e. /wp-content/themes/yourtheme/imagefolder/bullets_inactive.png)
->Pager Active Images Path : The path to the image icon. (i.e. /wp-content/themes/yourtheme/imagefolder/bullets_active_usually_blue_or_black.png)
Regarding the height, the developer noted that sizes are determined by getting the image size/dimension and the plugin does not resize images. If really needed, I recommend that you download a mass image re-sizer plugin or use Wordpress' core image editor.
If there's no images appearing, you may have entered an incorrect path. I assume that you are getting 404 error from your browser's developer console.
I suggest that you always get the updated plugin.
Below are the links for updating it:
http://wordpress.org/plugins/lumia-bxslider/
https://github.com/wp-plugins/lumia-bxslider
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
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 am using the TimThumb script (http://code.google.com/p/timthumb/). My images links are generated like this: http://website.com/pics/nature/animals/bear.png and this works great but I can't seem to use TimThumb like this: http://website.com/resize.php?src=http://website.com/pics/nature/animals/bear.png&h=150&w=150, it says Could not find the internal image you specified. I believe this is because my images are brought from a folder by slug names (bear.png). The folder's images are named by the ID of the image so there is no bear.png on the server, my application is using slugs to search the DB and bring up the real name of the picture but it loads the image upon this link: http://website.com/pics/nature/animals/bear.png. If I give my resize.php script a link from flickr it works great.
BTW, resize.php is the actual TimThumb script.
Any ideas ? Thanks !
Dont use a local path, enter the full URL for timthumb just like you did with flickr