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


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.11.x) »
  • Modules (Moderator: Boudi) »
  • Does Bootstrap Multiple Columns work in php 7.1
  • Print
Pages: [1]   Go Down

Author Topic: Does Bootstrap Multiple Columns work in php 7.1  (Read 12467 times)

Offline sky writer

  • Posts: 926
Does Bootstrap Multiple Columns work in php 7.1
« on: March 26, 2018, 11:44:02 PM »
I have this module working on a site under php 5.6 (wb portable), but the same site is not working under 7.1. (WB Portable)
wb 2.11
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Does Bootstrap Multiple Columns work in php 7.1
« Reply #1 on: March 27, 2018, 07:59:26 AM »
Hi, have this module running in different websites with WB 2.11 and PHP7.1.x
Any error messages?
Logged
https://onkel-franky.de

Offline sky writer

  • Posts: 926
Re: Does Bootstrap Multiple Columns work in php 7.1
« Reply #2 on: March 31, 2018, 06:59:47 AM »
Sorry to take so long replying.  I have been trying every angle to figure out what is causing all my columns to be 100% width (stacked), no matter my settings.

I finally realized the issue.  I use Zurb Foundation, and the sites I had Bootstrap Multiple Columns working nicely on, had Foundation v6.3.1 installed.  I forgot that these new sites have the newest version 6.4.2
It appears that this module is not compatible with 6.4.2 (or vise-versa), perhaps because of new grid implementation (flexbox-first with XY grid). 

Not sure if this can be added into the module easily, but if not, there are other options on the Foundation end.  I tried reading about it on the Zurb site, and they say you can download a custom version with legacy fallback, but it's been a long day.

I found this difference on another support forum:
Code: [Select]
Legacy Grid (float / flex)

<div class="row">
  <div class="columns small-4">column</div>
  <div class="columns small-4">column</div>
  <div class="columns small-4">column</div>
</div>

XY Grid

<div class="grid-container">
  <div class="grid-x">
    <div class="cell small-4">cell</div>
    <div class="cell small-4">cell</div>
    <div class="cell small-4">cell</div>
  </div>
</div>

I will try to look at this with fresh eyes tomorrow, but for now, I am happy to know what was causing the problem.[/quote]
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Does Bootstrap Multiple Columns work in php 7.1
« Reply #3 on: April 04, 2018, 04:24:15 PM »
Quote from: sky writer on March 31, 2018, 06:59:47 AM
It appears that this module is not compatible with 6.4.2 (or vise-versa), perhaps because of new grid implementation (flexbox-first with XY grid). 
Unfortunatly I do not have any Zurb Foundation templates using that version for testing.

You could try to solve it by modifying the 2 functions __getRow() and __getCols() in the functions.php.
In __getRow()
Code: [Select]
} elseif ($framework == 3) { //Zurb Foundation
$rval = '<div class="grid-container"><div class="grid-x">'.$m;
$eval = '</div></div>';

and in __getCols() just replace the word columns with cells in the Zurb Foundation $dval setting..
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline sky writer

  • Posts: 926
Re: Does Bootstrap Multiple Columns work in php 7.1
« Reply #4 on: April 04, 2018, 08:49:06 PM »
That works BEAUTIFULLY!  Thank you so much.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.11.x) »
  • Modules (Moderator: Boudi) »
  • Does Bootstrap Multiple Columns work in php 7.1
 

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