Clean URL

Andere Lösungen
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Clean URL 4.2.1

Post by Maxim »

Здравствуйте.
Image Создал сбору "CMSimple_421_CleanURLs" и обновление "Update_CMSimple_421_CleanURLs"
http://maxim.zp.ua/users/2/files.html

Hello.
Image Created collection "CMSimple_421_CleanURLs" and update "Update_CMSimple_421_CleanURLs"
http://maxim.zp.ua/users/2/files.html
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Clean URL 4.2.2

Post by Maxim »

Здравствуйте.
Image Создал сбору "CMSimple-422-CleanURLs" и обновление "Update-CMSimple-422-CleanURLs"
http://maxim.zp.ua/users/2/files.html

Hello.
Image Created collection "CMSimple-422-CleanURLs" and update "Update-CMSimple-422-CleanURLs"
http://maxim.zp.ua/users/2/files.html
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Re: Clean URL

Post by Maxim »

Image Здравствуйте.
Подскажите пожалуйста, как заменить?
/?Welcome_to_CMSimple&login
/Welcome-to-CMSimple.html?&login
на
Login.html

Image Hello.
Please tell me how to replace?
/?Welcome_to_CMSimple&login
/Welcome-to-CMSimple.html?&login
on
Login.html
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Вход/Login

Post by Maxim »

Image Здравствуйте

Заменил в шаблоне эту строку:

Code: Select all

<?php echo loginlink();?>
На эту:

Code: Select all

<a href="http://vitalij.maxim.zp.ua/login.html">Вход</a>
Image Hello
Replaced in the template this line:

Code: Select all

<?php echo loginlink();?>
On this:

Code: Select all

<a href="http://vitalij.maxim.zp.ua/login.html">Login</a>
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Почему Вы не планируете поддержку ЧПУ?

Post by Maxim »

Image Здравствуйте, Герт.
Скажите пожалуйста, почему Вы не планируете поддержку ЧПУ?

Image Hallo, Gert.
Bitte sagen Sie mir, warum Sie nicht planen, Unterstützung Clean URLs?

Image Hello, Gert.
Tell me please, why You do not plan to support Clean URLs?
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Просто хочу понять.

Post by Maxim »

Image Здравствуйте,

CMSimple - не несет ответственности за доработки.

Герт
Image Hallo,

das Forum "Andere Lösungen" ist ein Forum für Lösungen, die nicht als Plugin oder Addon realisiert wurden, insbesondere für Lösungen, die geänderte Systemdateien enthalten.

CMSimple (cmsimple.org) übernimmte keinerlei Verantwortung für solche Lösungen,

Gert
Image Здравствуйте, Герт.

Я тоже не несу ответственности, ЧПУ собрал для себя, просто поделился с людьми.
У меня складывается ощущение, что Вы обижаетесь на меня, и игнорируете.

Если хотите, я не буду делиться сборкой с ЧПУ.
Если я Вас обидел - простите.

Image Hallo, Gert.

Auch ich bin nicht verantwortlich, Saubere URLs für mich gesammelt, nur um mit den Menschen zu teilen.
Ich habe das Gefühl, dass Sie beleidigt mich an und ignorieren.

Wenn Sie wollen, werde ich nicht teilen Saubere URLs.
Wenn ich Sie beleidigt - tut mir leid.

Image Hello, Gert.

I, too, am not responsible, Clean URLs collected for myself, just to share with people.
I get the feeling that you are offended at me and ignore.

If you want, I will not share Clean URLs.
If I offended you - I'm sorry.
Image "mysite.com/?Test_1___Test_2___Test_3" так же хорошо, как "mysite.com/Test_1/Test_2/Test_3.html", как для людей, так и для поисковых систем.

Это не является необходимым и даже не планируется.
Image "mysite.com/?Test_1___Test_2___Test_3" ist genauso gut wie "mysite.com/Test_1/Test_2/Test_3.html", sowohl für Menschen als auch für Suchmaschinen.

Es ist nicht notwendig und auch nicht geplant.
Image Почему?
Без "?" в каждой строчке - ведь красивее
"/", ".html" - тоже красивее и привычнее

Я могу узнать более весомые аргументы?

Про разделение и конкуренцию, тоже хочется узнать не от кого-то, а от Вас.
Если есть весомые аргументы, любой не предвзятый человек поймёт.

Да у конкуренции есть свои плюсы, но:
Может лучше конкурировать не с CMSimple.
Может в Вашей стране конкуренция более спокойная.
Я видел, как расставались друзья, родственники... - что в этом хорошего?

Image Warum?
Ohne "?" in jeder Zeile - doch schöner
"/", ".html" auch schöner und vertraut

Kann ich mehr starke Argumente?

Über die Trennung, die Konkurrenz, die auch gerne wissen nicht von jemanden, sondern für Sie.
Wenn es starke Argumente, auch nicht diskriminieren Person zu verstehen.

Ja bei der Konkurrenz hat seine vor -, aber:
Besser konkurrieren nicht mit CMSimple.
Kann in Ihrem Land die Konkurrenz mehr Ruhe.
Ich habe gesehen, wie trennten sich die Freunde, verwandten... - was nützt das?

Image Why?
Without the "?" in each line - in fact more beautiful
"/", ". Html" - too beautiful and familiar

I can learn more valid arguments?

About separation and competition, too, want to know not from someone, and from you.
If there is a strong case, any non-biased person would understand.

Yes, the competition has its advantages, however:
Maybe better not to compete with CMSimple.
Maybe in your country competition is more calm.
I saw parted friends, relatives ... - What's good?
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Gert
Posts: 2075
Joined: Sun 18. Nov 2012, 14:18

Re: Clean URL

Post by Gert »

Maxim wrote:I get the feeling that you are offended at me and ignore.
Hi Maxim,

no, I don't ignore YOU, I just ignore threads and posts about CMSimple_XH ;)
Maxim wrote:If you want, I will not share Clean URLs.
No problem, you may share it, if you want.

But I don't like the complete Download cmsimple-422-cleanurls, because that is a new fork.

I would like, that you provide only the download update-cmsimple-422-cleanurls, that's not a fork, but an addon. And I would like, that you rename it to addon-cmsimple-422-cleanurls.

Because there are changed corefiles included, you should add a (your) comment on top:

Code: Select all

<?php // utf8-marker = äöü

/*
================================================== 
File modified by addon CleanURLs for CMSimple
Released: 2013-08-01
URL: http://maxim.zp.ua/users/2/files.html
================================================== 
*/

// Original System Info:

/*
================================================== 
This file is a part of CMSimple 4.2.2
Released: 2013-07-12
Project website: www.cmsimple.org
...
... or something like this.

You also should change the constants CMSIMPLE_XH_VERSION and CMSIMPLE_VERSION:

Code: Select all

// version-informations
define('CMSIMPLE_XH_VERSION', 'CMSimple 4.2.2 with CleanURLs Addon'); //for compatibility CMSimple_XH
define('CMSIMPLE_XH_BUILD', 2013080101); //for compatibility CMSimple_XH
define('CMSIMPLE_XH_DATE', '2013-08-01'); //for compatibility CMSimple_XH

define('CMSIMPLE_VERSION', 'CMSimple 4.2.2 with CleanURLs Addon');
define('CMSIMPLE_RELEASE', 2013080101);
define('CMSIMPLE_DATE', '2013-08-01');
define('CMSIMPLE_VERSIONSINFO', 'http://www.cmsimple.org/downloads_cmsimple40/versioninfo/version.nfo');
//END version-informations        
So the user can see in the Backend, that he is using your Addon,

Gert

PS: What you are thinking about this nice name for your Addon:

"CleanURLs for CMSimple" (for the Download-zip: addon_cmsimple422_cleanurls_51e4d5103c49b.zip) ?
Gert Ebersbach | CMSimple | Templates - Plugins - Services
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

CMSimple-423-CleanURLs-2013-08-12

Post by Maxim »

Image Здравствуйте, Герт
Вы поменяли там, где мне нужно было менять.
Если Вам не сложно, посмотрите есть ли у меня ошибки

Image Hallo, Gert
Sie tauschten dort, wo muss ich es ändern.
Wenn Sie nicht schwer sind, schauen ob ich den Fehler

Image Hello, Gert
You changed where I need to be changed.
If You are not difficult, look if I have mistakes

http://maxim.zp.ua/forum/thread14-1.html#29
http://maxim.zp.ua/users/2/files.html

http://maxim.zp.ua/users/files/download52.html - Config-CMSimple-423-CleanURLs-2013-08-12.zip
http://maxim.zp.ua/users/files/download53.html - Addon-CMSimple-423-CleanURLs-2013-08-12.zip
http://maxim.zp.ua/users/files/download54.html - 423-2013-08-12.txt
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Login.html

Post by Maxim »

Image Понял, редактировать нужно было не "login.php", а "functions.php"
Image Klar, Bearbeiten müssen, war es nicht "login.php"und "functions.php"
Image Understood, edit, had not "login.php"and "functions.php"
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Maxim
Posts: 95
Joined: Sat 19. Jan 2013, 13:28
Location: Запорожье
Contact:

Может лучше так

Post by Maxim »

Image Здравствуйте, Герт.
Image Hello, Gert.

CMSimple 4.2.2
cmsimple/functions.php

Code: Select all

function printlink() 
{
	global $f, $search, $file, $sn, $tx, $adm;
	$t = amp() . uenc($tx['menu']['print']);
	if ($f == 'search')
		$t .= amp() . 'function=search' . amp() . 'search=' . htmlspecialchars(stsl($search), ENT_COMPAT, 'UTF-8');
	else if ($f == 'file')
		$t .= amp() . 'file=' . $file;
	else if ($f != '' && $f != 'save')
		$t .= amp() . $f;
	else if (sv('QUERY_STRING') != '')
		$t = htmlspecialchars(sv('QUERY_STRING'), ENT_COMPAT, "UTF-8") . $t;
		return '<a href="' . $sn . '' . $t . '.html" target="_blank">' . $tx['menu']['print'] . '</a>';
}
Image Оригинал
Image Original

Code: Select all

function printlink() 
{
	global $f, $search, $file, $sn, $tx, $adm;
	$t = amp() . 'print';
	if ($f == 'search')
		$t .= amp() . 'function=search' . amp() . 'search=' . htmlspecialchars(stsl($search), ENT_COMPAT, 'UTF-8');
	else if ($f == 'file')
		$t .= amp() . 'file=' . $file;
	else if ($f != '' && $f != 'save')
		$t .= amp() . $f;
	else if (sv('QUERY_STRING') != '')
		$t = htmlspecialchars(sv('QUERY_STRING'), ENT_COMPAT, "UTF-8") . $t;
		return '<a href="' . $sn . '?' . $t . '">' . $tx['menu']['print'] . '</a>';
}
CMSimple 4.2.3
cmsimple/functions.php

Code: Select all

function printlink($img_src = '') 
{
    global $f, $search, $file, $sn, $tx, $pth;
    $t = amp().uenc($tx['menu']['print']);
    $title = $tx['menu']['print'];

    if ($f == 'search')
        $t .= amp() . 'function=search' . amp() . 'search=' . htmlspecialchars(stsl($search));
    else if ($f == 'file')
        $t .= amp() . 'file=' . $file;
    else if ($f != '' && $f != 'save')
        $t .= amp() . $f;
    else if (sv('QUERY_STRING') != '')
        $t = htmlspecialchars(sv('QUERY_STRING'), ENT_QUOTES, "UTF-8") . $t;
	
	$link = '';

    if ($img_src != '') 
	{
        $link = tag('img title="' . $title . '" src="' . $pth['folder']['template'] . 'images/' . $img_src . '" alt="' . $title . '"');
    }
    else 
	{ 
		$link .= $title; 
	}

    return '<a href="'.$sn.''.$t.'.html" target="_blank">' . $tx['menu']['print'] . '</a>';
}
Image Оригинал
Image Original

Code: Select all

function printlink($img_src = '') 
{
    global $f, $search, $file, $sn, $tx, $pth;
    $t = amp().'print';
    $title = $tx['menu']['print'];

    if ($f == 'search')
        $t .= amp() . 'function=search' . amp() . 'search=' . htmlspecialchars(stsl($search));
    else if ($f == 'file')
        $t .= amp() . 'file=' . $file;
    else if ($f != '' && $f != 'save')
        $t .= amp() . $f;
    else if (sv('QUERY_STRING') != '')
        $t = htmlspecialchars(sv('QUERY_STRING'), ENT_QUOTES, "UTF-8") . $t;
	
	$link = '';

    if ($img_src != '') 
	{
        $link = tag('img title="' . $title . '" src="' . $pth['folder']['template'] . 'images/' . $img_src . '" alt="' . $title . '"');
    }
    else 
	{ 
		$link .= $title; 
	}

    return '<a href="'.$sn.'?'.$t.'">' . $link . '</a>';
}
Image Не уверен:
Image Not sure:

Code: Select all

return '<a href="'.$sn.''.$t.'.html" target="_blank">' . $tx['menu']['print'] . '</a>';
Image Может лучше так:
Image Maybe a better way:

Code: Select all

return '<a href="'.$sn.''.$t.'.html" target="_blank">' . $link . '</a>';
Simple Hosting
Бедная, бросаемая бурею, безутешная!
Post Reply