10 | function addquote(post_id, tag) | 10 | // ]]> |
11 | { | | |
12 | str_find = new Array("<",">", "-->",""") | | |
13 | str_replace = new Array("<",">", "-->","\"") | | |
14 | for(var i = 0; i < message[post_id].length; i++) | | |
15 | { | | |
16 | for (var j = 0; j < str_find.length; j++) | | |
17 | { | | |
18 | if (message[post_id].search(str_find[j]) != -1) | | |
19 | { | | |
20 | message[post_id] = message[post_id].replace(str_find[j],str_replace[j]); | | |
21 | } | | |
22 | } | | |
23 | } | | |
24 | //message[post_id] = message[post_id].replace('<','<') | | |
25 | //message[post_id] = message[post_id].replace('>','>') | | |
26 | window.parent.document.post.message.value += "[" + tag + message[post_id] + tag + "]"; | | |
27 | window.parent.document.post.message.focus(); | | |
28 | return; | | |
29 | } | | |
30 | | | |
31 | function open_postreview(ref) | | |
32 | { | | |
33 | height = screen.height / 3; | | |
34 | width = screen.width / 2; | | |
35 | window.open(ref,'_phpbbpostreview','height=' + height + ',width=' + width + ',resizable=yes,scrollbars=yes'); | | |
36 | return; | | |
37 | } | | |
38 | //--> | | |
65 | <a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27quote%27);"><img src="{IMG_QUICK_QUOTE}"
alt="{L_QUICK_QUOTE}" title="{L_QUICK_QUOTE}" /></a> | 37 | <a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27quote%27,false,true);"><img src="{IMG_QUICK_QUOTE}" alt="{L_QUICK_QUOTE}" title="{L_QUICK_QUOTE}" /></a> |
66 | <a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27ot%27);"><img src="{IMG_OFFTOPIC}" alt="{L_OFFTOPIC}"
title="{L_OFFTOPIC}" /></a> | 38 | <a href="javascript:addquote(%27{postrow.U_POST_ID}%27,%27ot%27,false,true);"><img src="{IMG_OFFTOPIC}" alt="{L_OFFTOPIC}" title="{L_OFFTOPIC}" /></a> |