Help - Search - Members - Calendar
Full Version: Firefox 3 CSS glitch?
CyberiaPC.com Community > Technical Zone > Zenith Picture Gallery
Pika
Whenever I go to upload an image in Firefox 3, the box that displays the file path next to the Browse button is a white background with white text. In Internet Explorer 7, the CSS displays the file path box with the background color of the theme which then the white text is fully readable.

Here are examples of both...

I highlighted part of the file name to show that it's there...



Can anyone else confirm this?

I will play around with the style sheets and fix this on my end, but I was just wondering if anyone else was having this issue with Firefox.
usr.c
I found this from here:

QUOTE
In prior versions of Firefox, there were cases in which when the user submitted a file for uploading, the entire path of the file was available to the web application. This privacy concern has been resolved in Firefox 3; now only the filename itself is available to the web application.


That reminds me, it's worth fixing the following glitch, which shows up in FF3. Look in pic_details.php for

CODE
<td class='cell_header' style='background-image:url(" . getSkinElement($config['stylesheet'], "images/td_back_mid.gif") . ");text-align:center' width='60%'>{$row['title']}</td>

and replace it with

CODE
<td class='cell_header' style='background-image:url(" . getSkinElement($config['stylesheet'], "images/td_back_mid.gif") . ");text-align:center' width='100%'>{$row['title']}</td>
Pika
QUOTE(usr.c @ Jul 7 2008, 08:53 AM) *
I found this from here:


I don't know if that one applies here though because I have can upload files from other sites and see the path...


http://www.sprintusers.com/wallpapers/upload.php

So my next thought was maybe in the way when you click inside the box it auto-opens the browse for file box... but the link listed above does the same thing, it pops up the browse for file box, but it displays the path... then again, they are not using CSS to color the input fields.

What throws me off is that pretty much all the input boxes use the .spoilTextBox style, so the browse section should be seeing the same style as the description, title and tags inputs.
usr.c
Sorry, my bad. I'll look into it for you and let you know once I have a proper answer.

My inner wirings are a bit screwed up right now; been off work for the past week. Hopefully, I'll reply back in the next couple of days.
usr.c
Sorry for the late reply; it's not been the best of weeks.

Look in your stylesheet for

CODE
.spoiltTextBox {

and above that insert

CODE
.fileTextField {
       font-size: 100%;
    padding-left: 3px;
    padding-right: 3px;
    width: 95%;
}

Then, in add.php change the line

CODE
<tr><td width='40%' style='padding-left:10px'>{$lang['file']} </td><td width='60%'><input type='file' name='upload' class='spoiltTextBox'

and replace it with

CODE
<tr><td width='40%' style='padding-left:10px'>{$lang['file']} </td><td width='60%'><input type='file' name='upload' class='fileTextField'
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.