Flexslider_XH published

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

Moderator: Tata

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

Re: Flexslider_XH published

Post by cmb » Wed Jun 18, 2014 10:57 pm

maeg wrote:When i browse the site, the images in flexslider seems not to center the site.
It seems to me that is caused by your template's stlyesheet:

Code: Select all

ul li {line-height: 1.2em; border: 0; padding: 3px 0; margin: 0 0 0 17px;}
There is a left margin of 17px defined for all <li>s.

You can counteract this by adding:

Code: Select all

.flexslider ul li {margin-left: 0}
(works fine in current Chrome; I have not tested other browsers)
Christoph M. Becker – Plugins for CMSimple_XH

maeg
Posts: 525
Joined: Fri Feb 20, 2009 2:27 pm
Location: Agerbæk, Denmark
Contact:

Re: Flexslider_XH published

Post by maeg » Thu Jun 19, 2014 7:52 pm

Yeah nok it works

Thx

Jens

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: Flexslider_XH published

Post by svasti » Fri Jul 18, 2014 10:40 pm

Flexslider_XH 0.2 is ready to be downloaded

Lots of thanks to Christoph for testing and for his good hints on how to proceed.

Flexslider can do slides with text only. The text is interpreted as Markdown. As Flexslider has a preview function, it is easy to experiment with it.

Another interesting setting is "static" {= no sliding], where a back/forth navigation with image number und total number of images is shown.

svasti

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

Re: Flexslider_XH published

Post by Tata » Sat Jul 19, 2014 6:50 am

I can't activavte the plugin. After calling the activation the warning is returned saying
Login Error
You entered a wrong username or password, or your account still is not activated.

Something wrong on my side?
There is a conflickt with Register plugin. Can't find, what's the reason. But if this plugin i s also installed, activation of flexislider is impossible.

EDIT

Well, when the Register plugin is installed, you must first log in and logged in log also via Registerloginform. Then the Flexslider can be activated.
I have not yet studied the styling, but something is wrong there too. Have a look at http://curilla.cmsimple.sk.
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.

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

Re: Flexslider_XH published

Post by cmb » Sat Jul 19, 2014 9:55 am

Tata wrote:There is a conflickt with Register plugin. Can't find, what's the reason. But if this plugin i s also installed, activation of flexislider is impossible.
Indeed, this can happen. The problem is a typo, where Flexslider emits a <form> tag instead of a </form> tag. This causes a following form to be submitted, too, and in your case that is Register's login form (without username and password). Solution: in plugins/flexslider/admin.php change line 189ff from:

Code: Select all

            $o .=  '<h1 style="border:2px red solid;background:yellow;text-align:center;">'
                .  'Plugin not activated'
                .  tag('br')
                . '<form action="" method="POST">'
                .  tag('input type="submit" style="font-weight:bold;padding:0 1em;letter-spacing:.05em;"
                   value="click here" name="activate" ')
                . '<form> '
                . 'to activate plugin'
                . '</h1>';
to:

Code: Select all

            $o .=  '<h1 style="border:2px red solid;background:yellow;text-align:center;">'
                .  'Plugin not activated'
                .  tag('br')
                . '<form action="" method="POST">'
                .  tag('input type="submit" style="font-weight:bold;padding:0 1em;letter-spacing:.05em;"
                   value="click here" name="activate" ')
                . 'to activate plugin'
                . '</form> '
                . '</h1>';
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: Flexslider_XH published

Post by cmb » Sat Jul 19, 2014 11:38 am

Tata wrote:I have not yet studied the styling, but something is wrong there too. Have a look at http://curilla.cmsimple.sk.
Um, not sure what you mean. The flexslider at the bottom of the page looks fine here (Chrome 36).
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: Flexslider_XH published

Post by Tata » Sat Jul 19, 2014 12:29 pm

On first run, there were the <li> marks on the left. Taler they disappeard, now, the navigation is not there at all.
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.

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: Flexslider_XH published

Post by svasti » Sat Jul 19, 2014 1:27 pm

cmb wrote:I really don't have a solution to Tata's problem. it is a big detective story to find a solution.
In this very case, it is not important to see the navigation. But on another places within the website this feature would be very usefull.
Maybe a very special ID for flexslider elements and behavior?

EDIT: This posting got completely messed up. (My internet connection is a bit wacky.) Somehow the main part of my posting got lost. I started with a quote from cmb (which isn't there any more). My last sentence was what now is falsely shown as a quote. The remaining sentence is not from me.
As far as I remember I posted this:

cmb wrote:The problem is a typo, where Flexslider emits a <form> tag instead of a </form> tag.
Too bad :oops:
I have corrected it and a new version 0.21 is available.

I added to the stylesheet
.flexslider ul.flex-direction-nav li {
list-style-type: none;
}

This gives Flexslider a nicer appearance in Tata's template.
However the problem of the missing navigation controls remains.

I really don't have a solution to Tata's problem. it is a big detective story to find a solution.
Last edited by svasti on Sat Jul 19, 2014 3:17 pm, edited 1 time in total.

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

Re: Flexslider_XH published

Post by cmb » Sat Jul 19, 2014 1:44 pm

svasti wrote:However that doesn't make the missing navigation elements appear.
No, because there is templates/curilla/flexslider.css involved, which has on line 56:

Code: Select all

.flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center; display:none}
display:none must be removed.

Furthermore in templates/curilla/stylesheet.css there is line 53:

Code: Select all

ol li:before {counter-increment: section; content: "(" counter(section) ") ";list-style-position: outside;margin-left: -0.25rem;}
which causes numbers to be displayed above the flexslider navigation bullets. The following might help:

Code: Select all

.flex-control-nav li:before {content: "";}
BTW: there is a JavaScript error reported: "Uncaught ReferenceError: $slider is not defined". That's cause by a typo in index.php line 48, where it should most likely be:

Code: Select all

              slider.mouseout(function() {
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: Flexslider_XH published

Post by cmb » Sat Jul 19, 2014 1:46 pm

svasti wrote:
cmb wrote:I really don't have a solution to Tata's problem. it is a big detective story to find a solution.
I didn't write that. It seems to me, that you deleted or overwrote your own post. :|
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply