Jump to content


Formating the "Upload Pictures" output table


  • You cannot reply to this topic
2 replies to this topic

#1 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 14 March 2007 - 12:19 PM

1) Etogal is great.
2) When I am uploading pictures, all the "browse for file" buttons and upload fields are horizontal across the screen so I have to scroll across to add each picture. I would like to have them all in a row. When looking at the code, it seems that they are generated sequentially by adding +1 (up to 10). Assuming this is true... How can I step in and format this? I'm guessing it has to do with the css because I have etogal on two separate sites and 1 is in a row, the other horozontal but I can't work out how to change it.

#2 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 14 March 2007 - 03:17 PM

Glad you like etogal!

As you've discovered, minimal effort has gone into the aesthetics of the admin page!
In most cases, that list of browse fields will wrap within the page, but some combinations of browser and doctype (and possibly defaults set in CSS) result in them being strung out in a line. Its happened only rarely (or at least only been reported rarely), so I haven't attempted to duplicate the problem and fix it.

The easy hack is to add a <br /> after each field, ie replace
	for($i=0;$i<10;$i++) $returnstring.="<input name=\"file$i\" type=\"file\">";
with
	for($i=0;$i<10;$i++) $returnstring.="<input name=\"file$i\" type=\"file\"> <br />";
(note not tested, so there may be some silly error :blink:

#3 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 15 March 2007 - 09:56 AM

View Postmikef, on Mar 15 2007, 01:17 AM, said:

The easy hack is to add a <br /> after each field, ie replace
	for($i=0;$i<10;$i++) $returnstring.="<input name=\"file$i\" type=\"file\">";
with
	for($i=0;$i<10;$i++) $returnstring.="<input name=\"file$i\" type=\"file\"> <br />";
(note not tested, so there may be some silly error :blink:
Thanks. Works like a charm. It has also given me another insight into how php works!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users