Pagemanager_XH, Urichar и кавычки.

Erweiterungen
Post Reply
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Pagemanager_XH, Urichar и кавычки.

Post by Maxim »

Image
Здравствуйте.
Как поступить?

Добавляю:

Code: Select all

<h1>Торт "Клюквенный"</h1>
Сохраняю в "Pagemanager_XH" Version: 1pl5

Пропадает содержимое кавычек.

Urichar
New:

Code: Select all

A,B,V,G,D,E,Yo,Zh,Z,I,Y,K,L,M,N,O,P,R,S,T,U,F,H,C,Ch,Sh,Sch,Tz,Y,Mz,E,Yu,Ya,a,b,v,g,d,e,yo,zh,z,i,y,k,l,m,n,o,p,r,s,t,u,f,h,c,ch,sh,sch,tz,y,mz,e,yu,ya,and
Org:

Code: Select all

А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я,&,",(,)
Image
Hello.
What to do?

Add:

Code: Select all

<h1>Торт "Клюквенный"</h1>
Save in "Pagemanager_XH" Version: 1pl5

Lost the contents of the quotes.

Urichar
New:

Code: Select all

A,B,V,G,D,E,Yo,Zh,Z,I,Y,K,L,M,N,O,P,R,S,T,U,F,H,C,Ch,Sh,Sch,Tz,Y,Mz,E,Yu,Ya,a,b,v,g,d,e,yo,zh,z,i,y,k,l,m,n,o,p,r,s,t,u,f,h,c,ch,sh,sch,tz,y,mz,e,yu,ya,and
Org:

Code: Select all

А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я,&,",(,)
Image
Guten Tag.
Wie kommt es dazu?

Füge hinzu:

Code: Select all

<h1>Торт "Клюквенный"</h1>
Speichere die Datei in "Pagemanager_XH" Version: 1pl5

Verschwindet der Inhalt Anführungszeichen.

Urichar
New:

Code: Select all

A,B,V,G,D,E,Yo,Zh,Z,I,Y,K,L,M,N,O,P,R,S,T,U,F,H,C,Ch,Sh,Sch,Tz,Y,Mz,E,Yu,Ya,a,b,v,g,d,e,yo,zh,z,i,y,k,l,m,n,o,p,r,s,t,u,f,h,c,ch,sh,sch,tz,y,mz,e,yu,ya,and
Org:

Code: Select all

А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я,&,",(,)
Last edited by Maxim on Wed 19. Jun 2013, 07:36, edited 1 time in total.
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Re: Pagemanager_XH, Urichar и кавычки.

Post by Maxim »

Christoph
Image
Hi Maxim.

That happens, when the quotation marks (") are in content.htm verbatim, instead of being escaped as ". Normally this should not happen, as the editor (tinyMCE) as well as Pagemanager_XH converts all quotation marks to " automatically.

Solution: check content/content.htm for any unescaped quotation marks in the headings (<h1> - <h3>) and replace them with "

Regarding urichar_org/new: these should always be balanced, i.e. they should have exactly the same number of commas (,). If you want to suppress a character in the URL, just put a comma in urichar_new. Simplified example:
urichar_org: ю,а,б,",(
urichar_new: A,B,V,,

BTW: the version of Pagemanager shipped with CMSimple 4.1.3 is not the latest, which is 1pl11
(< http://3-magi.net/?CMSimple_XH/Pagemanager_XH >).
I'm afraid that it's not easily possible to update to 1pl11 in CMSimple 4.1.3; you may want to ask Gert about updating to the latest version.

While I was looking at your issue, I found a bug in Pagemanger_XH 1pl11. If the page heading contains a dollar sign or a backslash immediately followed by a digit, the heading might be destroyed. I will publish a bugfix (1pl12) ASAP.

Best Regards,
Christoph

Image
Здравствуйте, Максим.

Так происходит, когда кавычки (") в content.htm добавлены вручную. Как правило, это не должно произойти, так как редактор (tinyMCE), а также Pagemanager_XH преобразует все кавычки в " автоматически.

Решение:
Проверьте content/content.htm кавычки в заголовках (<h1> - <h3>) и замените их на "

Про urichar_org/new:
Они должны всегда быть сбалансированным, т.е. они должны иметь точно такое же число запятых (,). Если вы хотите, подавить символ в URL, просто поставить запятую в urichar_new.

Упрощенный пример:
urichar_org: ю,а,б,в",(
urichar_new: A,B,V,,

http://3-magi.net/?CMSimple_XH/Pagemanager_XH
Можете попросить, Герта об обновлении до последней версии.

Когда я смотрел на ваш вопрос, я нашел ошибку в Pagemanger_XH 1pl11. Если заголовок страницы содержит знак или символ обратной косой черты, непосредственно за которым следует цифра, заголовок может быть уничтожен.
Я постараюсь опубликовать исправление (1pl12) как можно быстрее.

С Наилучшими Пожеланиями,
Кристоф
Original:
http://maxim.zp.ua/forum/thread12-1.html

Image
Здравствуйте.
Спасибо, Кристоф.
Герт, обновите пожалуйста.

Image
Hello.
Thank You, Christoph.
Gert, update please.
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Gert
Posts: 2076
Joined: Sun 18. Nov 2012, 14:18

Re: Pagemanager_XH, Urichar и кавычки.

Post by Gert »

Maxim wrote:Gert, update please.
No, the Pagemanager has been forked since 1pl5, for CMSimple 4. I only will fix the old bug immediately.
Gert Ebersbach | CMSimple | Templates - Plugins - Services
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Re: Pagemanager_XH, Urichar и кавычки.

Post by Maxim »

Thank You, Gert.
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Re: Pagemanager_XH, Urichar и кавычки.

Post by Maxim »

CMSimple 4.1.4

Image
Может я что то не понял, но подправил - functions.php

Code: Select all

function uenc($s)
{
    global $tx;
    if (isset($tx['urichar']['org']) && isset($tx['urichar']['new']))
        $s = str_replace(explode(",", $tx['urichar']['org']), explode(",", $tx['urichar']['new']), $s);
		$s = str_replace(',', '', $s); // this is the new line
		$s = str_replace('"', '', $s); // this is the new line
    return str_replace('+', '_', urlencode($s));
}
Следующий раздел после кавычек не создаётся. Ещё посмотрю.

Image
That I can not understand, but corrected - functions.php

Code: Select all

function uenc($s)
{
    global $tx;
    if (isset($tx['urichar']['org']) && isset($tx['urichar']['new']))
        $s = str_replace(explode(",", $tx['urichar']['org']), explode(",", $tx['urichar']['new']), $s);
		$s = str_replace(',', '', $s); // this is the new line
		$s = str_replace('"', '', $s); // this is the new line
    return str_replace('+', '_', urlencode($s));
}
The next section after the quotes is not created. Another look.
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Re: Pagemanager_XH, Urichar и кавычки.

Post by Maxim »

Image
Во вкладке "Страницы" ввёл текст с кавычками, сохранил - получилось.

Поменял Urichar:
New:

Code: Select all

A,B,V,G,D,E,Yo,Zh,Z,I,Y,K,L,M,N,O,P,R,S,T,U,F,H,C,Ch,Sh,Sch,Tz,Y,Mz,E,Yu,Ya,a,b,v,g,d,e,yo,zh,z,i,y,k,l,m,n,o,p,r,s,t,u,f,h,c,ch,sh,sch,tz,y,mz,e,yu,ya,and
Org:

Code: Select all

А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я,&,",(,)
Файл "functions.php" оставил таким:

Code: Select all

function uenc($s) 
{
    global $tx;
    if (isset($tx['urichar']['org']) && isset($tx['urichar']['new']))
        $s = str_replace(explode(",", $tx['urichar']['org']), explode(",", $tx['urichar']['new']), $s);
        $s = str_replace(',', '', $s); // this is the new line
    return str_replace('+', '_', urlencode($s));
}
Спасибо, всё получилось.

Image
In the tab "Pages", add text with quotes - it turned out.

Сhanged Urichar:
New:

Code: Select all

A,B,V,G,D,E,Yo,Zh,Z,I,Y,K,L,M,N,O,P,R,S,T,U,F,H,C,Ch,Sh,Sch,Tz,Y,Mz,E,Yu,Ya,a,b,v,g,d,e,yo,zh,z,i,y,k,l,m,n,o,p,r,s,t,u,f,h,c,ch,sh,sch,tz,y,mz,e,yu,ya,and
Org:

Code: Select all

А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я,&,",(,)
The file "functions.php" he left this:

Code: Select all

function uenc($s) 
{
    global $tx;
    if (isset($tx['urichar']['org']) && isset($tx['urichar']['new']))
        $s = str_replace(explode(",", $tx['urichar']['org']), explode(",", $tx['urichar']['new']), $s);
        $s = str_replace(',', '', $s); // this is the new line
    return str_replace('+', '_', urlencode($s));
}
Thank you, it worked.
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

В TinyMCE кавычки cохраняются не корректно

Post by Maxim »

Image Здравствуйте.
В Pagemanager_XH кавычки cохраняются корректно, а в TinyMCE - не корректно.
Будет новая версия TinyMCE? Если да, то когда?

Image Hallo.
In Pagemanager_XH Zitate mich richtig erinnere, und TinyMCE - ist nicht korrekt.
Wird die neue Version von TinyMCE? Wenn ja, wann?

Image Hello.
In Pagemanager_XH quotes Remember correctly, and TinyMCE - is not correct.
Will the new version of TinyMCE? If yes, when?
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Gert
Posts: 2076
Joined: Sun 18. Nov 2012, 14:18

Re: Pagemanager_XH, Urichar и кавычки.

Post by Gert »

Maxim wrote:In Pagemanager_XH ...
Pagemanager_XH is the Pagemanager of CMSimple_XH ...
Maxim wrote:Will the new version of TinyMCE? If yes, when?
Not today and not tomorrow, TinyMCE 4 still is not stable, and there are more important things to do next months,

Gert
Gert Ebersbach | CMSimple | Templates - Plugins - Services
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Интересно, интригует - ждём

Post by Maxim »

Image Доброе утро.
Но ведь вы сопровождали Pagemanager_XH, не важно, с Pagemanager_XH нет проблем.
Интересно, интригует - ждём.

Image Guten morgen.
Aber Sie begleiteten Pagemanager_XH, es ist nicht wichtig, mit Pagemanager_XH keine Probleme.
Interessant, faszinierend - warten.

Image Good morning.
But you accompanied Pagemanager_XH, no matter from Pagemanager_XH no problems.
Interesting, intriguing - waiting.
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Post Reply