How to change logo in Joomla template, Entropy? - joomla

First time using Joomla and having a big issue. I was able to locate the css files that contains the background image url for the logo but i can't find the path that the css is referring to:
(../images/logo/style3/logo.png)
I am using the Entropy them by RocketThemes.

Your logo path is : /templates/rt_entropy_j15/images/logo/style3/logo.png

The urls that you found are are relative. The url of your image is therefore relative to the location of the css file you found. The ../ means go up one level - so instead of /templates/rt_entropy_j15/css/ (the location of the css file you are examining), one level up is /templates/rt_entropy_j15/ then go into the /images/ sub-folder (within /templates/rt_entropy_j15/ ) then navigate the /logo/style3/ folder tree and find your logo.png in place.
Firebug or similar debugging tools are always the best way to work through these kinds of problems.

Related

How to change the layout and/or css of the default XAMPP file browser?

So you know when you browse to a XAMPP installation in your browser, but XAMPP can't find a index.php or equivalent file, it just shows a file browser thing? (Pictured below.)
Well the name column doesn't scale with the length of the file names, and I often find myself needing guess which folder I was looking for. Is there a way to change the layout and or CSS of this default file browser?
I found its solution on this link
I am attaching the image too if the link gets removed.

How to reference images in a Diazo template?

I'm writing a theme using Diazo using the theme editor of plone.app.theming in Plone 4.3.6. I added a image image.png in the theme folder so it is accessible at http://localhost:8080/mysite/++theme++mytheme-theme/image.png when I'm developing the theme in my computer. I want to refer this image in the template HTML file with <img src="path/image.png">. However it is not clear what to put instead of path. I notice that path cannot be an absolute path because it depends of the site domain. Also, it cannot be a relative path because it depends on the path of each page in the site. May be it would be useful to have an specific keyword to reference the theme folder. For example, <img src="$themeFolder/image.png">. Exists such keyword?
If the HTML file is in your Diazo theme, you can use a relative path from the file, like "images/image.png". Diazo will correctly interpret it.
You can also use "++theme++mytheme-theme/image.png", as Acquisition would locate the image.

Image path in Magento keeps going to base folder

I'm trying to add an image on my CMS page by using something like {{skin url=images/foldername/image%2011.jpg}}
With this, I should get a path like 123abc/magento/skin/frontend/default/default/images/foldername/image%2011.jpg
But instead of that path, I get a path going to the base like so
123abc/magento/skin/frontend/base/default/images/foldername/image%2011.jpg
I'm 100% sure that the folder works because I have other images on the same folder that works in other pages. I didn't change the package name so I'm not sure why this is happening for some files. Based on what I found on the web, magento looks for the image at the base folder if it can't find the file on the specified path but the image is there. Does anybody know how to resolve this and what else could be causing this?
Solution by OP.
I noticed how I got this problem only with images with spaces on the filename hence the %20 on the file path. Though I was given literally hundreds of images with spaces on their filenames, the easiest and fastest way to resolve this is to remove the space for each of the image.

How to download images from the same folder as where the image is uploaded?

I am creating a project wherein the user can upload his photo. This photo is stored in the folder "images/uploads/filename". When his profile is created and the photo is to be shown, I use the <img> tag with src as "images/uploads/filename", but the photo does not show up.
If I manually copy the photo to an adjacent folder "images/abc/filename" and then use it as the source then it works.
How is this caused and how can I solve it? I need to use the same folder to upload and download photos.
That can happen if you're running the webapp as an IDE project and are storing the uploaded images in the IDE's project space. Changes in the IDE's project folder which are performed externally (as by your servlet code) does not immediately get reflected in the deployed server's work folder. Only when you touch it (by refreshing the project) or by copying it (as you happen to have found out), then it will get reflected.
After all, storing uploaded files in the webapp's deploy folder is a bad idea. Those files will get all lost whenever you redeploy the webapp, simply because those files are not contained in the original WAR file.
You need to store them somewhere outside the webapp's deploy folder on a different fixed path like /var/webapp/uploads. You should not use relative paths or getRealPath() to create the File object around it. Just use a fixed path. You can always make the fixed path configureable as a context param setting, a VM argument, a properties file setting or even a JNDI entry.
Then, to serve it to the world wide web, just add exactly that path as another docroot to the server config. It's unclear what server you're using, but in Tomcat it's a matter of adding another <Context> to the server.xml.
See also:
Uploaded image only available after refreshing the page
How I save and retrieve an image on my server in a java webapp
Make sure your have the correct path and include the image extension
just for testing, put your img tag inside the index.php
<img src="images/abc/filename.jpg">
/root/index.php
now put you image in to the your abc/ folder
/root/images/abc/filename.jpg
This should display the image.
if you have your img tag inside another folder in the root like below
/root/user/index.php
now when you use you img tag use this path (relative link):
<img src="../images/abc/filename.jpg">
note the beginning of the image path "../" this is used to go back to the root.
if the php or html file that is holding the img tag is even deeper, just remember to add ../ for every level, 2 folders deep whould be:
<img src="../../images/abc/filename.jpg">
Question was quite vague so hope this is what you are looking for.
let me know and if this is wrong, explain a little more and i will try to help :)

Can I use CSS in directory listing of Firefox?

For example if I put "C:\docs" in address bar of Firefox, it shows all files in the directory. Is it possible to customize this page with CSS?
Apache 2.2 allows us to do it using IndexStyleSheet directive, so I wondered if Firefox can do it.
Firefox has a file userContent.css for each profile (found in the profile's settings folder). That file defines the standard CSS, why may then be overwritten by a website. So they also apply to directory listings.
You should have a look at the actual HTML code Firefox is creating for the directory listing to see how to do the CSS definitions right. You will find extensive documentation about userContent.css on the web.
http://www.mozilla.org/unix/customizing.html#userContent
I think the easiest way is to create an own skin which custom css. You have to modify dirListing.css in this case. (chrome://global/skin/dirListing/dirListing.css)
I know the walnut theme (https://addons.mozilla.org/en-US/firefox/addon/122) includes a modified file listing.

Resources