1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.
    Dismiss Notice

Missing Forum for Fabrik 2.0

Discussion in 'About fabrikar.com' started by bea, Jul 1, 2016.

  1. bea

    bea Active Member

    Level: Professional
    Hi Rob & Hugh,

    I just noticed, that the F2 Forum is gone... maybe you moved it... I guess, that there are some people still work with F2 and need this (like me) ;)

    Sunny greetings from Berlin
    Bianka
     
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Yeah, we shut that down. There's just no way we can provide support on 2.x any more. J! 1.0 was end-of-lifed in 2009, and we end-of-lifed Fabrik 2.x in about 2012. The last commit on the code was in April 2013 ...

    https://github.com/Fabrik/fabrik21/commits/master

    Any 2.x support would have to be on a custom basis, which would have to include the cost of us setting up a test site and development environment for it.

    Of course, you being Bea, you can always contact me on Skype and I'll do what I can. But 2.x is dead. Gone. Resting in peace.

    -- hugh
     
  3. bea

    bea Active Member

    Level: Professional
  4. troester

    troester Administrator Staff Member

    Level: Community
    Hi Bea,
    the Fabrik2 forum is not listed
    but it is searched with the regular search.
    Try searching "Umlaute"...
     
  5. bea

    bea Active Member

    Level: Professional
    Hi Troester, sorry I didn't get it...
    I've tried to search fro 'Umlaute' on regular search, but get only this thread.
    But I noticed, that in regular search below 'other stuff' there is still Fabrik 1.0 forum...
    Cheers,
    Bianka
     
  6. troester

    troester Administrator Staff Member

    Level: Community
    Ah, ok
    I think I get more results because of my status (I just realised that I only get them if I'm logged in).
     
  7. bea

    bea Active Member

    Level: Professional
    Maybe you can help me. It's Fabrik 2.0 and I don't want to post in F3 Forum.
    I've tried to find a solution for 'change color depending on value' in table view with default.row.php, but it's not exactly what I want.
    greetings from Berlin.
    Bianka



    default.row.php - template.css== this changes all numeric values >= 1000000 in table view, no control; need to get specific elements
    PHP:
    <?php
    defined('_JEXEC') or die('Restricted access');
    ?>

    <?php
    if( ! function_exists('getSpanClass')){
    function getSpanClass($heading)

    {
    if ($heading >= 1000000) echo "class='value_not_in_range'";
    }
    }
    ?>
    <tr id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
    <?php foreach ($this->headings as $heading=>$label) { ?>
    <td <?php echo $this->cellClass[$heading]?>>
    <span <?php
    if(isset($this->_row->data->$heading) and is_numeric($this->_row->data->$heading)):
    getSpanClass($this->_row->data->$heading);
    endif;
    ?>>
    <?php
    echo @$this->_row->data->$heading;
    ?>
    </span>
    </td>
    <?php }?>
    </tr>
     

    default.row.php == this changes color of complete row instead of element's value
    PHP:
    <?php
    // No direct access
    defined('_JEXEC') or die('Restricted access');

    ?>

    <?php
    $bio_01= $this->_row->data->fab_alutray_analyse___bioburden22_01_raw;
    $bio_02= $this->_row->data->fab_alutray_analyse___bioburden22_02_raw;
    ?>
    <!-- Color bio1 -->
    <?php IF ($bio_01 >= 1000000 || $bio_02 >= 1000000) { ?>
    <tr style="background-color:#FFFF99" id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
       <?php foreach ($this->headings as $heading=>$label) {   ?>
         <td <?php echo $this->cellClass[$heading]?>><?php echo @$this->_row->data->$heading;?></td>
       <?php }}?>

    </tr>

    <!-- Color bio2 -->
    <?php IF ($bio_02 < 1000000 || $bio_02 < 1000000) { ?>
    <tr  id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
       <?php foreach ($this->headings as $heading=>$label) {   ?>
         <td <?php echo $this->cellClass[$heading]?>><?php echo @$this->_row->data->$heading;?></td>
       <?php }}?>

    </tr>
    [php]<?php
    /**
    // No direct access
    defined('_JEXEC') or die('Restricted access');

    ?>


    <?php
    $bio_01= $this->_row->data->fab_alutray_analyse___bioburden22_01_raw;
    $bio_02= $this->_row->data->fab_alutray_analyse___bioburden22_02_raw;
    ?>
    <!-- Color bio1 -->
    <?php IF ($bio_01 >= 1000000 || $bio_02 >= 1000000) { ?>
    <tr style="background-color:#FFFF99" id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
        <?php foreach ($this->headings as $heading=>$label) {    ?>
            <td <?php echo $this->cellClass[$heading]?>><?php echo @$this->_row->data->$heading;?></td>
        <?php }}?>

    </tr>

    <!-- Color bio2 -->
    <?php IF ($bio_02 < 1000000 || $bio_02 < 1000000) { ?>
    <tr  id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
        <?php foreach ($this->headings as $heading=>$label) {    ?>
            <td <?php echo $this->cellClass[$heading]?>><?php echo @$this->_row->data->$heading;?></td>
        <?php }}?>

    </tr>

    default.row.php- template.css== doesn't work

    PHP:
    <?php
    /**
    * default_row text ses analyse*/

    // No direct access
    defined('_JEXEC') or die('Restricted access');

    ?>

    <tr id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
        <?php foreach ($this->headings as $heading => $label) {
                    $extra_class = "";
                 
                     if ($heading == 'fab_alutray_analyse___bioburden22_01_raw') {
                      if ($this->_row->data->fab_alutray_analyse___bioburden22_01_raw >= 1000000) {
                          $extra_class = " value_not_in_range";
                      }
                      else {
                          $extra_class = " value_in_range";
                      }
                    }
                    else if ($heading == 'fab_alutray_analyse___bioburden22_02_raw') {
                      if ($this->_row->data->fab_alutray_analyse___bioburden22_02_raw >= 1000000) {
                          $extra_class = " value_not_in_range";
                      }
                      else {
                          $extra_class = " value_in_range";
                      }
                    }
                 
            $style = empty($this->cellClass[$heading]['style']) ? '' : 'style="'.$this->cellClass[$heading]['style'].'"';
            ?>
            <td class="<?php echo $extra_class . ' ' . $this->cellClass[$heading]['class']?>" <?php echo $style?>>
                <?php echo @$this->_row->data->$heading;?>
            </td>
        <?php }?>
    </tr>
     
     
  8. troester

    troester Administrator Staff Member

    Level: Community
    $heading is the full element name (without _raw), so

    elseif($heading=='fab_alutray_analyse___bioburden22_02'){
    if($this->_row->data->fab_alutray_analyse___bioburden22_02_raw>=1000000){
    $extra_class=" value_not_in_range";
    }
    should do.
     
    bea likes this.
  9. bea

    bea Active Member

    Level: Professional
    many many thanks :)
     

Share This Page