I posted this problem in the mod section with no response.
I intalled a pretty URL mod on my site, and now you can only see the banner on the main page.
Please take a look and let me know if you can help.
thefabforums dot com
Thanks
Kyle
The problem is in the path of the banner image:
On your main page works - http://thefabforums.com/main/Themes/E-N-Theme/images/TFFBanner5.png
Does not work on your other pages - http://thefabforums.com/main/general-discussion/Themes/E-N-Theme/images/TFFBanner5.png
Is there a fix for this?
check ur style.css file and tell me what path for logo is there
#logo{
display:block;
margin-left: 0px;
margin-top:0px;
width:950px;
height:155px;
background:url(./images/TFFBanner5.png) no-repeat;
float:left;
any ideas?
Is the background image that's missing defined in a style= attribute, rather than a CSS file? If so, that's your problem. Using a CSS file, it would treat the images/ directory as relative to the directory that contains the CSS file. E.g., if .../main/style.css, the image would be found in .../main/images/ directory. If it's hardcoded in a style attribute as images/filename, where it's to be found will vary by where the page is. E.g., if you're on the registration page at .../main/register/index.php, it will be trying to find the image at .../main/register/images/.
As MrPhill pointed out, looks like he is missing a dot in
background:url(./images/TFFBanner5.png) no-repeat;
Should be :
background:url(../images/TFFBanner5.png) no-repeat;
No, that's not the problem. It's still relative (to this directory or its parent). If this directory is different, it will be looking in different places (only one of which, at most, is right).
it worked fine before I added the "Pretty URLs" mod, and if I remove the mod it goes back to working.
Where do I need to look to correct this?
Don't use pretty URLs. That mod is pretty useless. :)
Ah really?
Does having content in the url not help with SEO?
Would it help if I had the logo image path listed here?
SEO has changed quite a bit over the years, and I'd say for the better. URLs having content in them looks great to a human and all, but the content on the page is much more important. <title> is important. Use of <h1> - <h5> tags is good. The content on the page though is key and paramount to everything else.
Yea I am a believer in good content...just felt like if it would help why not. I will just change it back if its not going to matter.
I think the simplest thing is to get rid of pretty URLs.
Another option is to use an ABSOLUTE path to your logo banner
/main/Themes/E-N-Theme/images/TFFBanner5.png instead of the relative path, which does not work with pretty URLs.
Lainaus käyttäjältä: AngelinaBelle - syyskuu 23, 2011, 10:56:26 AP
I think the simplest thing is to get rid of pretty URLs.
Another option is to use an ABSOLUTE path to your logo banner
/main/Themes/E-N-Theme/images/TFFBanner5.png instead of the relative path, which does not work with pretty URLs.
an ABSOLUTE path like that will not work in the real world, that path does not exist on the internet and that is what you HAVE to use when you use an ABSOLUTE path, a path that starts with http:// or www to where the image is. a path like you have posted will not work at all as it does not actually exist.
I chose the wrong word. This is not an absolute URL.
This is actually an example of a URL relative to the site root, rather than relative to the current directory.
The given URL does work. You can test this, too, in Firbug for firefox or IE developers tools.
At http://thefabforums.com/main/general-discussion/
I replaceed the background-image on that table to
url("/main/Themes/E-N-Theme/images/TFFBanner5.png")
And the banner showed up. "/" at the front makes this relative to the site root, rather than to the current directory.