Author Topic: Want to make certain fields disappear  (Read 7844 times)

0 Members and 1 Guest are viewing this topic.

Offline Ofuuzo

  • Newbie
  • *
  • Posts: 29
    • View Profile
Want to make certain fields disappear
« on: May 16, 2002, 10:56:15 AM »
Hi,
In files details.php and details.html, I would  like to make for example the field "description" disappear from the browser when an image's description field in the database contains no data. How can I do that?

- Ofuuzo

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Want to make certain fields disappear
« Reply #1 on: May 16, 2002, 12:38:49 PM »
hi,

details.html.. change to
Code: [Select]

                          {if image_description}
                          <tr>
                            <td valign="top" class="row1"><b>{lang_description}</b></td>
                            <td valign="top" class="row1">{image_description}</td>
                          </tr>
                          {endif image_description}
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Ofuuzo

  • Newbie
  • *
  • Posts: 29
    • View Profile
Want to make certain fields disappear
« Reply #2 on: May 19, 2002, 05:52:54 PM »
Thanks, it works.

- Ofuuzo

Offline Ofuuzo

  • Newbie
  • *
  • Posts: 29
    • View Profile
Want to make certain fields disappear
« Reply #3 on: May 23, 2002, 01:13:55 PM »
Hi,

If the first field has class="row1". The second field has class="row2" and it is made to disappear.  Then the third field will still be class="row1". How can I make the third field (which is now second field) to change  automatically to class="row2" ?

-Ofuuzo