RealBlog comments

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: RealBloig comments

Post by Tata » Thu Jun 11, 2020 10:28 pm

cmb wrote:
Thu Jun 11, 2020 9:06 pm
...Nope, probably in November there'll be PHP 8.0...
Any clue how will it be with falback compatibility?
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmss
Posts: 244
Joined: Mon Jan 02, 2017 6:15 pm

Re: RealBloig comments

Post by cmss » Fri Jun 12, 2020 2:38 pm

Hmm - i see i am surrounded by programming geniuses. The cmb-codepatch works fine - realblog doesnt.

But there is still in memberpages :

*** DEPRECATED: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
I:\Xampp74\inst\htdocs\xhcleanmaster5\plugins\memberpages\index.php:875 --- with source :

$newpw_too_simple = $newpassword && $pwextra
? ($pwextra== 1 && !preg_match('!^.*(?=.*[\p{Lu}]).*(?=.*[\p{Ll}]).*$!u',$newpassword)
? true
: $pwextra == 2 && !preg_match('!^.*(?=.*[\p{Lu}]).*(?=.*[\p{Ll}]).*(?=.*[\p{N}]).*$!u',$newpassword)
? true
: false)
: false;

Well - its just 2 brackets (..) - or even more.....(phpstorm says : deprecated - but makes no proposals...)

P.S. Php 8 - just make another version which needs php 7.2+
Last edited by cmss on Fri Jun 12, 2020 9:20 pm, edited 1 time in total.

ustalo
Posts: 165
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

Re: RealBloig comments

Post by ustalo » Fri Jun 12, 2020 6:13 pm

Dear Masters, I am far from programming
I download new Realblog
it works itself with зоз 7.4
Twocent not
Also Foldergallery does not works with php 7.4
Aleksei

Tata
Posts: 3587
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: RealBloig comments

Post by Tata » Fri Jun 12, 2020 6:47 pm

I think that PHP v7.4.x will for a hwile not necessary at all. We may wait some time, until any of these version become the standard. At least, the ISP are (hopefully) not that fast in upgrading the servers.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

ustalo
Posts: 165
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

Re: RealBloig comments

Post by ustalo » Sat Jun 13, 2020 5:06 am

I remember I have to change couple of code stroke in all my php scripts a few years ago. YouI make me calm. I will live happy next years. Thanks, Masters.
Aleksei

cmss
Posts: 244
Joined: Mon Jan 02, 2017 6:15 pm

Re: RealBloig comments

Post by cmss » Sat Jun 13, 2020 11:18 am

Foldergallery works at xampp php7.4 . It needs parallel https://github.com/cmb69/pfw_xh - just the pictures are not responsive - and overlap the frame - and they are aligned vertical - some further css-alignment is necessary

At https://swiper-xh.penschke.net/?Download is another gallery

But at https://www.jqueryscript.net/plus/searc ... rd=gallery are lots of galleries.....(and more)

cmss
Posts: 244
Joined: Mon Jan 02, 2017 6:15 pm

Re: RealBloig comments

Post by cmss » Sun Jun 14, 2020 1:03 pm

My new Foldergallery stylesheet :
/**
* Galleries
*/
div.foldergallery {display: flex-row;
border:1px gray dotted;
padding:1px !important;}

div.foldergallery_locator {height:40px;}

.foldergallery_figures {
display: flex;
display: -webkit-flex;
flex-wrap: wrap;
-webkit-flex-wrap: wrap;
justify-content: left;
flex-direction: column;
-webkit-flex-direction: column;
}

.foldergallery figure {
display: table;
margin: 0.5em;
}
.foldergallery figcaption {
display: table-caption;
caption-side: bottom;
text-align: center;
}

.foldergallery_locator span, figcaption {font-size:16px;}

.foldergallery_group img {
max-width: 96%;
height: auto;
float:left;
margin-left:10px;
}

a.foldergallery_group{;text-decoration:none;}

Only the head with START is still too big. This can be compensated with

div.foldergallery_locator {margin-top:-10px; margin-bottom:-60px;}

meltemi
Posts: 177
Joined: Sat Feb 22, 2014 10:11 pm
Location: Franken (Deutschland)
Contact:

Re: RealBlog comments

Post by meltemi » Sun Jun 14, 2020 7:15 pm

Hallo,
cmss wrote:display: flex;
display: -webkit-flex;
Die Standard-Eigenschaft sollte immer als letzte vermerkt werden. Dann muß man die CSS-Regeln nicht ändern, wenn der Browser-Hersteller von mit-Präfix auf ohne-Präfix umstellt.


P.S.
Welcher Admin erbarmt sich und ändert "RealBloig" in "RealBlog"?

cmss
Posts: 244
Joined: Mon Jan 02, 2017 6:15 pm

Re: RealBlog comments

Post by cmss » Mon Jun 15, 2020 4:01 pm

Im Web findet man meistens flex und danach -webkit-flex. Der Code wird doch nacheinander abgearbeitet, d.h. beides.
Bei Mozilla nicht mehr https://developer.mozilla.org/de/docs/W ... z-box-flex wie zB.

/* flexbox setup */
display: -webkit-flex;
-webkit-flex-direction: row;
display: flex;
flex-direction: row;
}
.flex > div
{ -webkit-flex: 1 1 auto;
flex: 1 1 auto;

Mit obigem margin auf .foldergallery_image angewendet kann man übrigens auch die Bilder zusammenrücken.
Last edited by cmss on Mon Jun 15, 2020 5:41 pm, edited 1 time in total.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: RealBlog comments

Post by cmb » Mon Jun 15, 2020 4:54 pm

cmss wrote:
Mon Jun 15, 2020 4:01 pm
Im Web findet man meistens flex und danach -webkit-flex. Der Code wird doch nacheinander abgearbeitet, d.h. beides.
Aber die letzte Definition gewinnt, d.h. ein Browser der beides versteht, verwendet dann -webkit-flex (obwohl man doch eigentlich den Standard, also ohne Herstellerpräfix, bevorzugen sollte).

Und in diesem Fall würde ich auf -webkit-flex vielleicht ganz verzichten. Das dürfte weniger User betreffen, als die fehlerhafte Implementierung in IE 11 (und denjenigen, die noch mit IE 11 unterwegs sind, ist sowieso nicht zu helfen).
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply