WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • Modules »
  • OFA - sort by status active / inactive
  • Print
Pages: [1]   Go Down

Author Topic: OFA - sort by status active / inactive  (Read 9120 times)

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
OFA - sort by status active / inactive
« on: August 14, 2019, 09:34:05 AM »
In OneForAll 2.0.2.23, sorting by status active/inactive does not work in the backend. This is because all fields have the same content (a whitespace).

The following can help.
In modify.php create a new line after line 244 ($active_title = ...).

New line
Code: [Select]
$active = $item['active'] == 1 ? '<span style="display:none">1</span>' : '<span style="display:none">0</span>';
Then change line 254 from:
Code: [Select]
<span class="mod_<?php echo $mod_name;?>_active<?php echo $item['active'];?>_b" title="<?php echo $active_title;?>">& #160;</span>
Change to:
Code: [Select]
<span class="mod_<?php echo $mod_name;?>_active<?php echo $item['active'];?>_b" title="<?php echo $active_title;?>"><?php echo $active;?>;</span>
This may be a better way to solve it, but it works.
Logged
https://onkel-franky.de

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • Modules »
  • OFA - sort by status active / inactive
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2