Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2006
    Posts
    62
    Plugin Contributions
    0

    Default File Attribute Browse Button

    Hoping this is the right place to ask this....

    I've been unable to find this addressed. When you have a file attribute set, on the product display screen the browse button is next to the text box for the file name. This is a problem in the layout I am using. There is no way (that I can find using the buttons_name.php) to use a graphical button (so I can make it small enough to fit), in fact I think this button is generated by the input statement.

    So my question is, can you force the "browse..." button to go under the text box for the file name? OR, am I wrong and I can overright this with a graphical button?

    As always, any help is appreciated.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: File Attribute Browse Button

    Web browsers control file uploading very carefully for obvious reasons of security. As an unfortunate side effect, this makes the file upload input type the most difficult of all form elements to influence (and form elements are often difficult at the best of times). On the server side, PHP is very picky about receiving them too.

    You are right that there is no explicit upload button generated by Zen Cart. Your browser is generating it as part of the input field. You will have very limited CSS influence over the input field - even "width" will have no obvious effect (other than to expand invisibly the space occupied by the field, potentially breaking your layout in a difficult to track down manner - what fun!).

    All is not lost. I'm not sure that you can change the location of the upload button, but you may be able to hide its ugliness from visitors to your site. Get a big mug of coffee, clear your head, and then click here.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Oct 2006
    Posts
    62
    Plugin Contributions
    0

    Default Re: File Attribute Browse Button

    Quote Originally Posted by kuroi View Post
    All is not lost. I'm not sure that you can change the location of the upload button, but you may be able to hide its ugliness from visitors to your site. Get a big mug of coffee, clear your head, and then click here.
    Ahh, this MIGHT work. My problem is the browse button goes beyond a border used for the attribute section. If making the browse button opacity 0 allows the frame to appear unbroken (then placing an image file that is shorter on top of it) this would be a solution.

    NOW, it begs the question, how do you go about effecting this field. Is there a php file that has the specifc layout for file attribute? In the (not sure exact file name at moment but something like tpl_module_attribute) it's seems to be more of a macro for incremting one attribute after the other.

 

 

Similar Threads

  1. v139h "Browse Button Missing" on File Upload
    By Yourvirtualworld in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 9 Mar 2012, 12:43 AM
  2. Remove dots in Browse button
    By kcorbishley in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 1 May 2011, 03:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg