quick qoute. help
Posted by Kidman
|
quick qoute. help November 10, 2008 11:21PM |
Registered: 17 years ago Posts: 5 |
read.tpl:
[code="php"]
<script>
// <!--
function quotemessage(nickname)
{
var t = '';
if (nickname!='') {nickname = nickname.replace('"', '"');}
isDOM=document.getElementById; isMSIE=document.all && document.all.item; isNetscape4=document.layers; isOpera=window.opera; isOpera5=isOpera && isDOM; isMSIE5=isDOM && isMSIE; isMozilla=isNetscape6=isDOM && !isMSIE && !isOpera;
if (isMozilla || (isOpera && !isMSIE5)) { t=window.getSelection().toString(); }
if (isMSIE5) { text_obj=document.selection.createRange(); t=text_obj.text; }
if (nickname!='') { t = "[nickname]"+nickname+"[/nickname]\r\n"+t; }
if (t!='') { document.forms.post_form.body.value+="\r\n
window.location.href="#reply";
}
else { alert('Для использования функции цитирования следует выделить мышкой цитируемый текст');
}
}
// -->
</script>
[/code]
[code="php"]
<a href="javascript: void(0)"; onmousedown="quotemessage('[author]');">{LANG->QuoteMessage}</a>
[/code]
That it is necessary to put that instead of 'author' it was displayed nickname.
Example: [www.e1.ru]
Thanks
[code="php"]
<script>
// <!--
function quotemessage(nickname)
{
var t = '';
if (nickname!='') {nickname = nickname.replace('"', '"');}
isDOM=document.getElementById; isMSIE=document.all && document.all.item; isNetscape4=document.layers; isOpera=window.opera; isOpera5=isOpera && isDOM; isMSIE5=isDOM && isMSIE; isMozilla=isNetscape6=isDOM && !isMSIE && !isOpera;
if (isMozilla || (isOpera && !isMSIE5)) { t=window.getSelection().toString(); }
if (isMSIE5) { text_obj=document.selection.createRange(); t=text_obj.text; }
if (nickname!='') { t = "[nickname]"+nickname+"[/nickname]\r\n"+t; }
if (t!='') { document.forms.post_form.body.value+="\r\n
\r\n";Quote
"+t+"
window.location.href="#reply";
}
else { alert('Для использования функции цитирования следует выделить мышкой цитируемый текст');
}
}
// -->
</script>
[/code]
[code="php"]
<a href="javascript: void(0)"; onmousedown="quotemessage('[author]');">{LANG->QuoteMessage}</a>
[/code]
That it is necessary to put that instead of 'author' it was displayed nickname.
Example: [www.e1.ru]
Thanks
|
Re: quick qoute. help November 11, 2008 01:48AM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: quick qoute. help November 11, 2008 03:26AM |
Registered: 17 years ago Posts: 5 |
|
Re: quick qoute. help November 11, 2008 03:30AM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: quick qoute. help November 11, 2008 03:50AM |
Registered: 17 years ago Posts: 5 |
|
Re: quick qoute. help November 11, 2008 04:01AM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: quick qoute. help November 11, 2008 05:16AM |
Registered: 17 years ago Posts: 5 |
|
Re: quick qoute. help November 11, 2008 05:23AM |
Admin Registered: 23 years ago Posts: 9,240 |
without checking but
{MESSAGES->author}
should probably do.
sorry but that is plain wrong. 5.2 supports all languages even better than 5.1. it just needs to be configured to do so and thats where you come in.
there won't be any further 5.1 releases as all development is on 5.2 and 5.3 so I suggest to you to try 5.2 again.
Thomas Seifert
{MESSAGES->author}
should probably do.
Quote
5.2.9 Does not support Russian. Transfer is, but messages do not pass in Russian
sorry but that is plain wrong. 5.2 supports all languages even better than 5.1. it just needs to be configured to do so and thats where you come in.
there won't be any further 5.1 releases as all development is on 5.2 and 5.3 so I suggest to you to try 5.2 again.
Thomas Seifert
|
Re: quick qoute. help November 11, 2008 05:51AM |
Registered: 17 years ago Posts: 5 |
Sorry, only registered users may post in this forum.