4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Habi86 on December 05, 2009, 06:15:48 PM

Title: {if Question} {endif Question} :)
Post by: Habi86 on December 05, 2009, 06:15:48 PM
Hi all!

I hope its okay that I opened a new thread for this.

I want that the chapter heading "Kulturbedingungen" is only showing if one of 6 submissions or more are entered.

Code: [Select]

                         <tr>

                            <td width="100%" bgcolor="#EDECEA" colspan="2"><font color="#BCB8AF"><b>Kulturbedingungen</b></font></td>

                          </tr>
 
   
 
{if image_temp}                     
                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_temp}</b></td>

                            <td valign="top" class="row1">{image_temp}</td>

                          </tr>
{endif image_temp}
{if image_LF} 
                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_LF}</b></td>

                            <td valign="top" class="row1">{image_LF}</td>

                          </tr>
{endif image_LF}
{if image_giessen}
                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_giessen}</b></td>

                            <td valign="top" class="row1">{image_giessen}</td>

                          </tr>
{endif image_giessen}
{if image_duengen}
 
                          <tr>

                            <td valign="top" class="row1"><b>{lang_image_duengen}</b></td>

                            <td valign="top" class="row1">{image_duengen}</td>

                          </tr>
{endif image_duengen}

{if image_licht}
                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_licht}</b></td>

                            <td valign="top" class="row1">{image_licht}</td>

                          </tr>
 
{endif image_licht}

{if image_ruhezeit}

                           <tr>

                            <td valign="top" class="row1"><b>{lang_image_ruhezeit}</b></td>

                            <td valign="top" class="row1">{image_ruhezeit}</td>

                          </tr>
{endif image_ruhezeit}


That didnt worked for me:

Code: [Select]
{if image_temp}
{if image_LF}
{if image_giessen}
{if image_duengen}
{if image_licht}
{if image_ruhezeit}
 
                         <tr>

                            <td width="100%" bgcolor="#EDECEA" colspan="2"><font color="#BCB8AF"><b>Kulturbedingungen</b></font></td>

                          </tr>
{endif image_temp}
{endif image_LF}
{endif image_giessen}
{endif image_duengen}
{endif image_licht}
{endif image_ruhezeit}


Cz it only shows when all 6 are entered.

Is there something like {if this,this,this or THIS}  {than THAT}   :?:


Greetings,
Habi

PS: deutsch: Kann es auch auf Deutsch übersetzten wenn gewünscht.
Title: Re: {if Question} {endif Question} :)
Post by: V@no on December 05, 2009, 08:25:58 PM
try this:
Code: (HTML+PHP Template) [Select]
<?php
if (str_replace(REPLACE_EMPTY"""{image_temp}")
 || 
str_replace(REPLACE_EMPTY"""{image_LF}")
 || 
str_replace(REPLACE_EMPTY"""{image_giessen}")
 || 
str_replace(REPLACE_EMPTY"""{image_duengen}")
 || 
str_replace(REPLACE_EMPTY"""{image_licht}")
 || 
str_replace(REPLACE_EMPTY"""{image_ruhezeit}"))
{
?>

                         <tr>

                            <td width="100%" bgcolor="#EDECEA" colspan="2"><font color="#BCB8AF"><b>Kulturbedingungen</b></font></td>

                          </tr>
<?php
}
?>

Title: Re: {if Question} {endif Question} :)
Post by: Habi86 on December 05, 2009, 09:53:37 PM
Thank you very very much  :!:  :!:  :!:
Works perfect ^_^ *cuddle*

Greetings,
Habi