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.10.x) »
  • Modules »
  • New module: miniHero - Banners
  • Print
Pages: 1 [2]   Go Down

Author Topic: New module: miniHero - Banners  (Read 54398 times)

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New module: miniHero - Banners
« Reply #25 on: June 26, 2017, 10:51:43 PM »
Quote from: dbs on June 26, 2017, 05:54:58 PM
Have tried in functions.php to extend the time selection with 0.5s, 1.5s ... but this will not shown after saving. Seems to work in frontend.
Code: [Select]
$secs[] = '0.5s';$secs[] = '1s';$secs[] = '1.5s';$secs[] = '2s'; ...What is the trick to see this in backend?

The value in the dropdown is added to a class named "duration" / "delay", so "2s" for duration will generate the class "duration2s" (for the delay it will generate "delay2s") and added to the caption element.
In the frontend.css .duration2s {} is set (1s up to 8s for duration and delay).

You cannot set $secs[] = '0.5s'; because that would create a class="delay0.5s" which is not selectable in css (.5s would become another selector).
Also, the table field to store the data is only 3 bytes, so the 4 bytes "0.5s" is not stored correctly.
So, if timing is that critical and you really want 1.5s, just change the value for 1s or 2s selector in the frontend.css.

No value (or a non existing class) will use the default timing values used in animate.css.

Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: New module: miniHero - Banners
« Reply #26 on: June 27, 2017, 08:56:02 AM »
Thanks for explanations.
Tests with 0.8 was not successfully because the escaping in css of dot in .duration0\.8 seems not to work.
Now i test .duration800 (ms)
Code: [Select]
<?php //color the code
// in functions.php
$secs[] = '800'; ...
// in frontend.css
.minihero .duration800 {-webkit-animation-duration: 0.8s;animation-duration: 0.8s;}
...


For effects like fade-in-left the .minihero needs a overflow:hidden. Else the animation start visible outside.
« Last Edit: June 27, 2017, 09:03:57 AM by dbs »
Logged
https://onkel-franky.de

Offline astricia

  • Posts: 783
  • Gender: Female
    • netSchmiede24
Re: New module: miniHero - Banners
« Reply #27 on: July 06, 2017, 10:36:36 AM »
What size should the image be to be rendered in an optimal way? I tried using a header image with 2500 x 900 px, but it cuts off pieces off the image at the top and bottom - and in the responsive version (smartphone display) it cuts off stuff from the left and right, which makes it look even stranger.

Thanks for any hints!

Astrid
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New module: miniHero - Banners
« Reply #28 on: July 06, 2017, 10:57:12 AM »
There is no "one size" that is optimal. The screens used are all different in size and ratios.

- If the parallax functionality is used the image must be scaled higher than the viewport for the image because it needs to scroll.

- If the parallax function is not used, the browsers "background-size: cover" is used and the browser will scale the image to best possible sizes.

There will always be portions of your image not visible when scaling your screensize or testing on other devices. This is the nature of responsive design.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline jacobi22

  • Betatester
  • **
  • Posts: 5920
Re: New module: miniHero - Banners
« Reply #29 on: July 18, 2017, 02:20:04 PM »
at first: thanks for your work here   (Y)

the module makes problems in mysql-strict mode. in add.php you have to defined values for all fields with a not defined default value (in this case the fields "text1" && "text2"

original-Code
$database->query("INSERT INTO ".TABLE_PREFIX."mod_minihero (`page_id`,`section_id`) VALUES ('$page_id','$section_id')");

my fix
$mod_hero = 'INSERT INTO `'.TABLE_PREFIX.'mod_minihero` SET '
	
       . 
' `section_id` = '.(int)$section_id.', '
	
       . 
' `page_id` = '.(int)$page_id.', ' 
                   
. ' `text1` = \'\', '
                   
. ' `text2` = \'\' ';
$database->query($mod_hero);


in attachement a german translation, feel free to use it
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New module: miniHero - Banners
« Reply #30 on: July 19, 2017, 11:44:42 AM »
Quote from: jacobi22 on July 18, 2017, 02:20:04 PM
my fix
...
in attachement a german translation, feel free to use it
...
Thanks,

Both will be in the next version..
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline sky writer

  • Posts: 926
Re: New module: miniHero - Banners
« Reply #31 on: January 11, 2018, 08:51:44 PM »
I have been using minihero and miniform on a site in a local WBPortable (Wb-Portable-2.8.3-SP7) install.  All has been working wonderfully.  PHP-Version: 5.6.26  / WebsiteBaker-Version: 2.10.0

Yesterday I noticed there was a new version of WBPortable available.  I downloaded Wb-Portable-2.10.x-php56.zip and unzipped.  Since I have all of my local test sites (dozens) in the root folder of my previous WBPortable version, the folder size is very large.  So, instead of copying this massive folder over to the new Portable root folder, I copied all the updated files from the Wb-Portable-2.10.x-php56 folder over my old Wb-Portable-2.8.3-SP7 folder.

Today, I opened a site I've been working on, with minihero and miniform installed and problems appeared.  I'll try to explain.

First, here are the error messages:
Quote
[11-Jan-2018 17:54:38 Etc/UTC] PHP Fatal error: Call to a member function fetchRow() on null in G:\Website\Wb-Portable-2.10.x-php56\root\mysite2.10.0\modules\minihero\modify.php on line 34r
[11-Jan-2018 17:55:00 Etc/UTC] PHP Fatal error: Call to a member function fetchRow() on null in G:\Website\Wb-Portable-2.10.x-php56\root\mysite2.10.0\modules\minihero\view.php on line 19r


So, I checked my database, and although the module names are in the left column tree, the tables are gone:


I checked all my other sites, modules and databases, but everything looks fine.  This site seems to be the only one affected, and only the data of these two modules seems to be missing.

I checked "...\mysql\data\mywebsite\wb_mod_minihero.ibd  and all the text data I had entered in minihero is in there.

Is there anything you know about how your modules function which might have resulted in this error?  Or might you suggest how this might have happened from a user error perspective... or how I might repair it.  I am only asking you here, because it appears only your two modules have been affected.

Thank you.
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New module: miniHero - Banners
« Reply #32 on: January 11, 2018, 11:19:10 PM »
Quote from: sky writer on January 11, 2018, 08:51:44 PM
Is there anything you know about how your modules function which might have resulted in this error?  Or might you suggest how this might have happened from a user error perspective... or how I might repair it.  I am only asking you here, because it appears only your two modules have been affected.

No, there is nothing special here.
The errorlines show that the module is not able to get the settings for that section, but that seems obvious looking at your phpmyadmin output.

First of all: I have no experience using wb-portable.
I could imagine the mysqlserver used now is a different version compared to the previous one you were using.
But the bottom line is : I never seen this, and have no idea how to fix it. (maybe just uninstall/reinstall?)
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline sky writer

  • Posts: 926
Re: New module: miniHero - Banners
« Reply #33 on: February 08, 2018, 08:01:49 PM »
Does this module work under PHP 7.1?

I have it working under PHP 5.6, but I installed it on a WB Portable PHP 7.1 and it doesn't seem to add any new tables.

When I add add a minihero banner section, the dialogues are all blank:



as opposed to my 5.6 install, which shows a height of 450 and parallax by default:



I can upload an image.  And when I enter data in the dialogues and save, it shows "Page Saved Successfully", but when I go to the section again everything is blank.

Additional info:
I just tried adding minihero module to another WB Portable PHP 7.1 test site, and the install works, and I can add it as a section.  But there is no minihero table at all in the database.  And clicking any of the module buttons (Settings, Upload Image, Current Image) in the admin results in no action.
Logged

Offline sky writer

  • Posts: 926
Re: New module: miniHero - Banners
« Reply #34 on: February 08, 2018, 08:40:35 PM »
Sorry, I neglected to provide more info.

Working on site:
 PHP-Version: 5.6.26
WebsiteBaker-Version: 2.10.0

Not working on site:
 PHP-Version: 7.1.0
WebsiteBaker-Version: 2.10.0
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New module: miniHero - Banners
« Reply #35 on: February 08, 2018, 11:03:23 PM »
The module did not work well with MySQL strict mode.
This and some more issues arenow fixed in v0.4
Also more - fun - animations are available. See the demo page.

Download v0.4: https://dev4me.com/modules-snippets/opensource/minihero-banners/

Demo of some new animations: https://dev4me.com/modules-snippets/opensource/minihero-banners/parallax-demo/
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline sky writer

  • Posts: 926
Re: New module: miniHero - Banners
« Reply #36 on: February 09, 2018, 12:46:28 AM »
I did read jacobi22's post - https://forum.WebsiteBaker.org/index.php/topic,30352.msg211872.html#msg211872
But I didn't realize that WB Portable with PHP 7.1 was in strict mode.  Actually I don't even know what any of this means  :) .

Your new version works as expected in WB Portable PHP7.1.  Thank you very much!
Logged

Offline astricia

  • Posts: 783
  • Gender: Female
    • netSchmiede24
Re: New module: miniHero - Banners
« Reply #37 on: April 25, 2018, 09:41:04 PM »
I just downloaded the 0.4 version of MiniHero - but there is no magic.css file in the zip-folder. Neither is there the animate.css that was in the previous 0.3 version. Did I miss something?

Thanks,
Astrid
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New module: miniHero - Banners
« Reply #38 on: April 25, 2018, 10:48:49 PM »
Quote from: astricia on April 25, 2018, 09:41:04 PM
I just downloaded the 0.4 version of MiniHero - but there is no magic.css file in the zip-folder. Neither is there the animate.css that was in the previous 0.3 version.
Both of them are now included in the frontend.css itself.
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline astricia

  • Posts: 783
  • Gender: Female
    • netSchmiede24
Re: New module: miniHero - Banners
« Reply #39 on: April 26, 2018, 10:49:11 AM »
Quote from: Ruud on April 25, 2018, 10:48:49 PM
Quote from: astricia on April 25, 2018, 09:41:04 PM
I just downloaded the 0.4 version of MiniHero - but there is no magic.css file in the zip-folder. Neither is there the animate.css that was in the previous 0.3 version.
Both of them are now included in the frontend.css itself.

Are you sure? My frontend.css has 122 lines - there is no definition for any of the effects .... ???
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New module: miniHero - Banners
« Reply #40 on: April 26, 2018, 11:08:34 AM »
Yes, I'm sure :-)

In the bottom of frontend.css you will see
Code: [Select]
/*!
 * animate.css -http://daneden.me/animate
 * Version - 3.5.2
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 *
 * Copyright (c) 2017 Daniel Eden
 */
.animated{animation-duration:1s;animation-fill-mode:both}....... very long line....

/*
Magic - Ver 1.2.0 - https://minimamente.com
Licensed under the MIT license
Copyright (c) 2016 Christian Pucci
*/
.magictime{animation-duration:1s;animation-fill-mode:both}...... very long line....

Those are the minified animate.css and magic.css
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline astricia

  • Posts: 783
  • Gender: Female
    • netSchmiede24
Re: New module: miniHero - Banners
« Reply #41 on: April 26, 2018, 11:19:35 AM »
Ahh... yes, found it. Somehow the file wasn't updated when I updated the module from 0.3 to 0.4. And I guess I could now delete the animate.css which still sits in the module folder.
Logged

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: New module: miniHero - Banners
« Reply #42 on: April 26, 2018, 11:22:40 AM »
Quote from: astricia on April 26, 2018, 11:19:35 AM
And I guess I could now delete the animate.css which still sits in the module folder.
Sure, it will not be used anymore..
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

  • Print
Pages: 1 [2]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • Modules »
  • New module: miniHero - Banners
 

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