Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2018-12-26 04:40:19

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,400

Re: Feedback to: Textpattern CMS 4.7.2 Released

Many thanks to all developers for the great latesd Textpattern version.

I would like to make two comments about Textile:

I like Textile, but with every new version I have the same problems each time that I want to change something, which becomes more difficult with every development step.

One of these problems becomes evident in German texts: In the German-speaking area there are three different opening and closing quotes „“, «» or »«. Textile sets the first quotes group, while I prefer the second version (Swiss German). With the latest Textile version my earlier changes, which I made in the two “Parser.php” files, no longer have any effect. I tried to change the lines 441 to 444 in the “de.ini” file without getting the desired result. For this reason here my first question:

Is it possible to override this quotes in the config.php file (this would be the best solution)? Somewhat like define('txt_quote_double_open="«"'); (the example doesn’t work)?

The other part I don’t like in Textile is how a group of uppercase letters and abbreviations are handled. A few years ago I wrote this comment, to which there was no answer.

I think three different scenarios should be addressed:

  1. A sequence of more than two capital letters that are not abbreviations. This should be wrapped automatically with <span class="caps">ABCDE</span>.
  2. Abbreviations without title attribute, manually marked in the text field as UNO.
  3. Abbreviations with title attribute, manually marked in the text field as UNO.

The abbr element doesn’t need <span class="caps">ABCDE</span> inside, in that way both, .caps and abbr, can have their own CSS rules and a German abbreviation like “GmbH” would be possible.

What do you think?

Offline

#32 2018-12-26 17:14:19

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,510
Website

Re: Feedback to: Textpattern CMS 4.7.2 Released

colak wrote #315723:

Hi Oleg, and seasons greetings for you too:)

I would not but Bici might need to.

still cannot log out—- under 4.7.1 from the admin cp i can click the LOG OUT link and it works.
on my other site under 4.7.2 click the LOG OUT link gives error that logout is not secure and refused to log me out.

Textpattern CMS (opens an external link in a new window) (4.7.2) · Logged in as bici · Log out

ps i tried on a my laptop using firefox/chrome/safari and from my wife’s iPad …. Cannot logout. Is this an .htaccess issue?

Last edited by bici (2018-12-26 22:29:37)


…. texted postive

Offline

#33 2018-12-26 22:28:21

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,510
Website

Re: Feedback to: Textpattern CMS 4.7.2 Released

bici wrote #315751:

still cannot log out—- under 4.7.1 from the admin cp i can click the LOG OUT link and it works.
on my other site under 4.7.2 click the LOG OUT link gives error that logout is not secure and refused to log me out.

Textpattern CMS (opens an external link in a new window) (4.7.2) · Logged in as bici · Log out...

ps i tried on a my laptop using firefox/chrome/safari and from my wife’s iPad …. Cannot logout. Is this an .htaccess issue?

UPDATE … i changed from the classic Admin theme to the Hive Admin theme and problem went away!

Last edited by bici (2018-12-26 22:29:04)


…. texted postive

Offline

#34 2018-12-27 13:03:43

etc
Developer
Registered: 2010-11-11
Posts: 3,362
Website

Re: Feedback to: Textpattern CMS 4.7.2 Released

bici wrote #315756:

UPDATE … i changed from the classic Admin theme to the Hive Admin theme and problem went away!

Ah, right, sorry, thanks for the report. The layout is different in Classic and Hive themes. Awaiting a fix, you can try to replace l.2571 of textpattern.js

    $('.txp-logout a').attr('href', 'index.php?logout=1&_txp_token='+textpattern._txp_token)
with
    $('a.txp-logout, .txp-logout a').attr('href', 'index.php?logout=1&_txp_token='+textpattern._txp_token)

Offline

#35 2018-12-27 16:04:04

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,400

Re: Feedback to: Textpattern CMS 4.7.2 Released

My posts have the ability to be overlooked or maybe they are transparent.

Does anyone know an answer to this question (complete post)?

Is it possible to override this quotes in the config.php file (this would be the best solution)? Somewhat like define(‘txt_quote_double_open=”«”’); (the example doesn’t work)?

Offline

#36 2018-12-27 16:46:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 7,344
Website

Re: Feedback to: Textpattern CMS 4.7.2 Released

GugUser wrote #315766:

My posts have the ability to be overlooked or maybe they are transparent.

Does anyone know an answer to this question (complete post)?

Sorry I can not answer this, but did you raise an issue on github?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | Respbublika! | NeMe @ github

Offline

#37 2018-12-27 16:55:23

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,400

Re: Feedback to: Textpattern CMS 4.7.2 Released

colak wrote #315767:

(…) but did you raise an issue on github?

No, not yet, I need to learn how this works.

Offline

#38 2018-12-27 17:17:06

etc
Developer
Registered: 2010-11-11
Posts: 3,362
Website

Re: Feedback to: Textpattern CMS 4.7.2 Released

GugUser wrote #315766:

My posts have the ability to be overlooked or maybe they are transparent.

Does anyone know an answer to this question (complete post)?

We are just waiting for a right person to answer. I think you can overwrite these strings in .ini language files, but don’t know how to inject them otherwise.

Offline

#39 2018-12-27 17:30:46

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,562
Website

Re: Feedback to: Textpattern CMS 4.7.2 Released

GugUser wrote #315735:

Is it possible to override this quotes in the config.php file (this would be the best solution)? Somewhat like define('txt_quote_double_open="«"'); (the example doesn’t work)?

Actually, it does look like something along those lines should work but using language strings with those codes. Textile has a method (also detailed here) for custom quotes and Textpattern does use it as well.

What you probably need to do is switch to your language, and then on the Admin › Languages panel, paste the following into the textpack box to override the standard settings.

#@language de-de
txt_quote_double_close => “
txt_quote_double_open => „
txt_quote_single_close => ‘
txt_quote_single_open => ‚

It’s the equivalent strings to these lines in the respective language’s .ini file.

Note: you’ll need to re-publish the articles to get textile convert them anew with the new symbols.


TXP Builders – finely-crafted code, design and txp

Offline

#40 2018-12-27 17:36:03

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,400

Re: Feedback to: Textpattern CMS 4.7.2 Released

etc wrote #315769:

I think you can overwrite these strings in .ini language files, but don’t know how to inject them otherwise.

I had tried that before I asked in the forum, but as strange as that is, there was no effect.

Now I will try out jacob’s suggestion.

Offline

Board footer

Powered by FluxBB