طلب شرح تركيب هاك محرر النصوص hoteditor سااعدوني من فضلكم
المشرف: alhitary
??? ??? ????? ??? ???? ?????? hoteditor ???????? ?? ?????
?????? ?????
??? ????? ????? ??? ???? ?????? ????? ????? ?? ???? ?????? ??? ???? ????? ?? ?????? ?? ??? ???????
??????? ??????? ?? ???? ??? ???? ?hoteditor
??????? ?????? ??? ?? ????? ???? ?? ???? ???? ?? ????? ??????
????? ??? ????? ???? ???? ???? ???????
?????? ???? ????
??? ????? ????? ??? ???? ?????? ????? ????? ?? ???? ?????? ??? ???? ????? ?? ?????? ?? ??? ???????
??????? ??????? ?? ???? ??? ???? ?hoteditor
??????? ?????? ??? ?? ????? ???? ?? ???? ???? ?? ????? ??????
????? ??? ????? ???? ???? ???? ???????
?????? ???? ????
- ayman rock
- عضو جديد
- مشاركات: 89
- اشترك في: الخميس أغسطس 10, 2006 3:00 am
?????? ????? ????? ????? ????? ????? ??? ??? ??? ????
???? ?? ????? ?? ???? PHPBB2 ???????? ??????? ???????. ???? ???? ???? ???? HOTEDITOR ?? ??? ?????? ????? ???? ???? ????
??? ?????? ??????? ??????? ??? ??????
??????? ??????? ?? ????? ?? ????? ?????? ???? ?? ????? ???????
???? ??????? ?? ?? ????????
? ????
???? ?? ????? ?? ???? PHPBB2 ???????? ??????? ???????. ???? ???? ???? ???? HOTEDITOR ?? ??? ?????? ????? ???? ???? ????
??? ?????? ??????? ??????? ??? ??????
??????? ??????? ?? ????? ?? ????? ?????? ???? ?? ????? ???????
???? ??????? ?? ?? ????????
? ????
ارخص وأفضل شركة استضافة prohostingteam
http://www.prohostingteam.com/vb/
http://www.prohostingteam.com/vb/
- محمد السماني
- عضو جديد
- مشاركات: 18
- اشترك في: الاثنين يوليو 02, 2007 5:35 am
- اتصال:
??????? ??? ????? ?? ???????
????? ?? ??? ?????? ??????? ??? ????? ???????? ???? ??????? ???
?? ?? ????? ????? ???? ???? ????? ????????
???? ????? ?? ???? ??? ???? ??? ????? ?? ??? ???????
????? ??? ?? ????? ???? ??? ?? ?? ?????? ????? ???????
?? ???? ?????
??? ??????? ???????? ?? ?????? ?? http://www.arab.info.tm/downloads/
?????????
?????? ?????? ????? ??? ??????? ???? ?????? ????
http://forum.arab.info.tm
?? ?? ????? ????? ???? ???? ????? ????????
???? ????? ?? ???? ??? ???? ??? ????? ?? ??? ???????
????? ??? ?? ????? ???? ??? ?? ?? ?????? ????? ???????
كود: تحديد الكل
##############################################################
## ????? ?????: WYSIWYG - Rich Text Editor for posting HTML message
## ???? ?????: eCardMAX.com < webmaster@ecardmax.com > (Jimbo Hong) http://ecardmax.com
## ??? ?????: It's time to turn <textarea> into a powerful Rich Text HTML Editor. Don't force your users to learn another set of markup tags. With this MOD you can format your posts or Private message just like you would in MS. FrontPage! Our Rich Text Editor will work on all popular browsers such as: IE - FireFox - Netscape - Opera 9x
## ????? ?????: 4.0
## ???? ?????: Ahmed Deyab ... WwW.3arabsoft.com :: WwW.Eng-Club.com :: WwW.phpbbarabia.com ::
## ????? ???????: ???
## ??? ???????: 10 ?????
## ?????? ?? : phpbb 2.0.22
## ??????? ??????? ???????: extension.inc,
## privmsg.php,
## posting.php,
## search.php,
## viewtopic.php
## includes/topic_review.php
## templates/??????/overall_header.tpl
## templates/??????/posting_body.tpl
##
## ??????? ???????: set_default_editor.php,
## templates/??????/posting_body_ie.tpl
##
## ???????? ???????: richedit
##
## ?? ???? ??????? ???????? ??????? ??? ???? ??????? ???????
## richedit >>>>>>> ???? ??????/richedit
## set_default_editor.php >>>>>>> ???? ??????/set_default_editor.php
## templates/subSilver/posting_body_ie.tpl >>>>>>> ???? ??????/templates/??????/posting_body_ie.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## ??????? ???? ????? :
## ?? ??? ?????? ??? ????? ??? ??? ???? ????? ??? ?????????????? ??????? ?????? ???? ??????? (2.0 ? 3.0 ) Rich Text Editor MOD" Version 2.0 and 3.0
## Please DO NOT install this MOD if you already installed "Rich Text Editor MOD" Version 2.0 and 3.0 (Same Author) which can be found here
## http://www.phpbb.com/phpBB/viewtopic.php?t=250813 and here http://www.phpbb.com/phpBB/viewtopic.php?t=168054
##
## THIS MOD has been tested with easymod and phpbb version 2.0.22 (You can use easymod to install this MOD)
##
## Upload folder [richedit] to phpbb main (root) folder (same location with file posting.php)
## Upload file set_default_editor.php to phpbb main (root) folder (same location with file posting.php)
## Upload file posting_body_ie.tpl to folder phpbb/templates/subSilver/posting_body_ie.tpl
##############################################################
## MOD History:
##
## 2007-02-02 - Version 4.0
##
##############################################################
## ?? ???? ???? ???????? ?? ???? ??????? ??? ????? ?????
##############################################################
#
#-----[ ???? ??? ]------------------------------------------
#
config.php
#
#-----[ ??? ?? ??? ????? ]------------------------------------------
#
//---------------------------------------------------------------------------------------------------------
//EDITOR - Replace text inside [EDITOR= .... EDITOR] to HTML code
function get_hoteditor($res="",$replace_quote=""){
preg_match_all("/\{EDITOR=(.*?) EDITOR\}/si",$res,$matches);
$get_code = $matches[1][0];
if($get_code !=""){
$res=str_replace("$get_code","{HOTEDITOR_TMP}",$res);
$get_code=str_replace("&","&",$get_code);
$get_code=str_replace("<","<",$get_code);
$get_code=str_replace(">",">",$get_code);
$get_code=str_replace("[<]","<",$get_code);
$get_code=str_replace("[>]",">",$get_code);
$get_code=str_replace("[<]","<",$get_code);
$get_code=str_replace("[>]",">",$get_code);
$get_code=str_replace("<br />","",$get_code);
if($replace_quote==1) {
$get_code=str_replace(""","\"",$get_code);
}
$get_code=str_replace(" "," ",$get_code);
// Clear all onClick onMouseOver onMouseOut onMouseDown onMouseUp onMouseMove onBlur cursor
// position absolute visibility visible z-index
// Example <span onClick=alert('BOOOO')>Click here</span>
// will be replaced to <span =alert('BOOOO')>Click here</span>
// in this way your board won't mess up. Hope this will help.
$match_count = preg_match_all("/<(.*?)>/si", $get_code, $matches_code);
for ($i = 0; $i < $match_count; $i++){
$get_code1 = $matches_code[1][$i];
$get_code2 = $matches_code[1][$i];
$get_code2 = preg_replace("/onclick/si", "", $get_code2);
$get_code2 = preg_replace("/onmouseover/si", "", $get_code2);
$get_code2 = preg_replace("/onmouseout/si", "", $get_code2);
$get_code2 = preg_replace("/onmousedown/si", "", $get_code2);
$get_code2 = preg_replace("/onmouseup/si", "", $get_code2);
$get_code2 = preg_replace("/onmousemove/si", "", $get_code2);
$get_code2 = preg_replace("/onblur/si", "", $get_code2);
$get_code2 = preg_replace("/cursor/si", "", $get_code2);
$get_code2 = preg_replace("/position/si", "", $get_code2);
$get_code2 = preg_replace("/absolute/si", "", $get_code2);
$get_code2 = preg_replace("/visibility/si", "", $get_code2);
$get_code2 = preg_replace("/visible/si", "", $get_code2);
$get_code2 = preg_replace("/z-index/si", "", $get_code2);
$get_code2 = preg_replace("/script/si", "", $get_code2);
$get_code =str_replace($get_code1,$get_code2,$get_code);
}
$get_code=str_replace("\r\n",' ',$get_code);
$get_code=str_replace("\n",' ',$get_code);
$res=str_replace("{HOTEDITOR_TMP}","$get_code",$res);
$res=str_replace("{EDITOR=","",$res);
$res=str_replace("EDITOR}","",$res);
}
else{
if($_COOKIE[cookie_editor]=="on"){
$res=str_replace("\r\n",'<br>',$res);
$res=str_replace("\n",'<br>',$res);
}
$res=str_replace("{EDITOR= EDITOR}","",$res);
}
return $res;
}
//EDITOR END HERE
#
#-----[ ???? ??? ]------------------------------------------
#
posting.php
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 722
$preview_message = str_replace("\n", '<br />', $preview_message);
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
$preview_message = get_hoteditor($preview_message,1);
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 820
$message = '[quote="' . $quote_username . '"]' . $message . '[/quote]';
#
#-----[ ??????? ???? ]------------------------------------------
#
$message = '[quote="' . $quote_username . '"]' . $message . '[/quote]';
$message=str_replace("\"",""",$message);
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 978
$template->set_filenames(array(
'body' => 'posting_body.tpl',
'pollbody' => 'posting_poll_body.tpl',
'reviewbody' => 'posting_topic_review.tpl')
);
#
#-----[ ??????? ???? ]------------------------------------------
#
//EDITOR START HERE
$richedit = $_POST[richedit];
$ua = $_SERVER[HTTP_USER_AGENT];
$cookie_editor =$_COOKIE[cookie_editor];
if($cookie_editor=="on" || $cookie_editor==""){
$richedit="1";
}
else{
$richedit="0";
}
if($richedit == "1" && !(strpos($ua,"Windows")===false) && !(strpos($ua,"MSIE")===false) || $richedit == "1" && !(strpos($ua,"Opera/9")===false) || $richedit == "1" && !(strpos($ua,"Gecko")===false) && (strpos($ua,"Safari")===false)){ //if true
$display_editor_option = "<span class=gen>\n";
$display_editor_option .= "<input type=radio value=1 checked name=richedit onClick='set_cookie(\"on\")'><font size=1>???? ??? ??????? Rich Text Editor ????? ??????? ????????? (??????: ????? ?? ????? ?????? ?? ???? ???? . ?? ???? ?? ???? ?????? ??? ??????? ???????? Popup Blocker program)</font><br>\n";
$display_editor_option .= "<input type=radio value=0 name=richedit onClick='set_cookie(\"off\")'><font size=1>???? ??? ??????? normal Text Area ????? ??????? ????????? (??????: ????? ?? ????? ?????? ?? ???? ???? . ?? ???? ?? ???? ?????? ??? ??????? ???????? Popup Blocker program)</font>\n";
$display_editor_option .= "</span>\n";
$display_editor_option .= "<script language=javascript>\n";
$display_editor_option .= "function set_cookie(data){\n";
$display_editor_option .= "window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=no');\n";
$display_editor_option .= "}\n";
$display_editor_option .= "</script>\n";
$template->set_filenames(array(
'body' => 'posting_body_ie.tpl',
'pollbody' => 'posting_poll_body.tpl',
'reviewbody' => 'posting_topic_review.tpl')
);
}
else{
$display_editor_option = "<span class=gen>\n";
$display_editor_option .= "<input type=radio value=1 name=richedit onClick='set_cookie(\"on\")'><font size=1>???? ??? ??????? Rich Text Editor ????? ??????? ????????? (??????: ????? ?? ????? ?????? ?? ???? ???? . ?? ???? ?? ???? ?????? ??? ??????? ???????? Popup Blocker program)</font><br>\n";
$display_editor_option .= "<input type=radio value=0 checked name=richedit onClick='set_cookie(\"off\")'><font size=1>???? ??? ??????? normal Text Area ????? ??????? ????????? (??????: ????? ?? ????? ?????? ?? ???? ???? . ?? ???? ?? ???? ?????? ??? ??????? ???????? Popup Blocker program)</font>\n";
$display_editor_option .= "</span>\n";
$display_editor_option .= "<script language=javascript>\n";
$display_editor_option .= "function set_cookie(data){\n";
$display_editor_option .= "window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=no')\n";
$display_editor_option .= "}\n";
$display_editor_option .= "</script>\n";
$template->set_filenames(array(
'body' => 'posting_body.tpl',
'pollbody' => 'posting_poll_body.tpl',
'reviewbody' => 'posting_topic_review.tpl')
);
}
//EDITOR END HERE
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 1041
$template->assign_block_vars('switch_not_privmsg', array());
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
$message = get_hoteditor($message,0);
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 1050
'USERNAME' => $username,
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
'DISPLAY_EDITOR_OPTION' => $display_editor_option,
#
#-----[ ???? ??? ]------------------------------------------
#
privmsg.php
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 613
$private_message = str_replace("\n", '<br />', $private_message);
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
$private_message = get_hoteditor($private_message,1);
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 1626
$preview_message = str_replace("\n", '<br />', $preview_message);
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
$preview_message = get_hoteditor($preview_message,1);
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 1682
$template->set_filenames(array(
'body' => 'posting_body.tpl')
);
#
#-----[ ??????? ???? ]------------------------------------------
#
//EDITOR START HERE
$richedit = $_POST[richedit];
$ua = $_SERVER[HTTP_USER_AGENT];
$cookie_editor =$_COOKIE[cookie_editor];
if($cookie_editor=="on" || $cookie_editor==""){
$richedit="1";
}
else{
$richedit="0";
}
if($richedit == "1" && !(strpos($ua,"Windows")===false) && !(strpos($ua,"MSIE")===false) || $richedit == "1" && !(strpos($ua,"Opera/9")===false) || $richedit == "1" && !(strpos($ua,"Gecko")===false) && (strpos($ua,"Safari")===false)){ //if true
$display_editor_option = "<span class=gen>\n";
$display_editor_option .= "<input type=radio value=1 checked name=richedit onClick='set_cookie(\"on\")'><font size=1>???? ??? ??????? Rich Text Editor ????? ??????? ????????? (??????: ????? ?? ????? ?????? ?? ???? ???? . ?? ???? ?? ???? ?????? ??? ??????? ???????? Popup Blocker program)</font><br>\n";
$display_editor_option .= "<input type=radio value=0 name=richedit onClick='set_cookie(\"off\")'><font size=1>???? ??? ??????? normal Text Area ????? ??????? ????????? (??????: ????? ?? ????? ?????? ?? ???? ???? . ?? ???? ?? ???? ?????? ??? ??????? ???????? Popup Blocker program)</font>\n";
$display_editor_option .= "</span>\n";
$display_editor_option .= "<script language=javascript>\n";
$display_editor_option .= "function set_cookie(data){\n";
$display_editor_option .= "window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=no');\n";
$display_editor_option .= "}\n";
$display_editor_option .= "</script>\n";
$template->set_filenames(array(
'body' => 'posting_body_ie.tpl')
);
}
else{
$display_editor_option = "<span class=gen>\n";
$display_editor_option .= "<input type=radio value=1 name=richedit onClick='set_cookie(\"on\")'><font size=1>???? ??? ??????? Rich Text Editor ????? ??????? ????????? (??????: ????? ?? ????? ?????? ?? ???? ???? . ?? ???? ?? ???? ?????? ??? ??????? ???????? Popup Blocker program)</font><br>\n";
$display_editor_option .= "<input type=radio value=0 checked name=richedit onClick='set_cookie(\"off\")'><font size=1>???? ??? ??????? normal Text Area ????? ??????? ????????? (??????: ????? ?? ????? ?????? ?? ???? ???? . ?? ???? ?? ???? ?????? ??? ??????? ???????? Popup Blocker program)</font>\n";
$display_editor_option .= "</span>\n";
$display_editor_option .= "<script language=javascript>\n";
$display_editor_option .= "function set_cookie(data){\n";
$display_editor_option .= "window.open('set_default_editor.php?editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=no')\n";
$display_editor_option .= "}\n";
$display_editor_option .= "</script>\n";
$template->set_filenames(array(
'body' => 'posting_body.tpl')
);
}
//EDITOR END HERE
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 1808
generate_smilies('inline', PAGE_PRIVMSGS);
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
$privmsg_message = get_hoteditor($privmsg_message,0);
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 1814
'SUBJECT' => $privmsg_subject,
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
'DISPLAY_EDITOR_OPTION' => $display_editor_option,
#
#-----[ ???? ??? ]------------------------------------------
#
search.php
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 891
$message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message;
#
#-----[ ??????? ???? ]------------------------------------------
#
//EDITOR
//$message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message;
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 1043
$template->assign_block_vars("searchresults", array(
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
$message = get_hoteditor($message,1);
#
#-----[ ???? ??? ]------------------------------------------
#
viewtopic.php
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 1156
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
$message = get_hoteditor($message,1);
#
#-----[ ???? ??? ]------------------------------------------
#
includes/topic_review.php
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 188
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR
$message = get_hoteditor($message,1);
#
#-----[ ???? ??? ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 35
font,th,td,p { font-family: {T_FONTFACE1} }
#
#-----[ ??????? ???? ]------------------------------------------
#
/* //EDITOR - TAKE OUT TEXT font */
th,td,p { font-family: {T_FONTFACE1} }
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 147
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
#
#-----[ ??????? ???? ]------------------------------------------
#
/* //EDITOR - REPLACE 18px TO 24px*/
.postbody { font-size : {T_FONTSIZE3}px; line-height: 24px}
#
#-----[ ???? ??? ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 75
function checkForm() {
#
#-----[ ??? ???? ]------------------------------------------
#
//EDITOR START HERE
var MESS_EDITOR = document.post.message.value;
MESS_EDITOR = MESS_EDITOR.replace(/\{EDITOR/ig,"[b]{[/b]EDITOR");
MESS_EDITOR = MESS_EDITOR.replace(/EDITOR\}/ig,"EDITOR[b]}[/b]");
document.post.message.value= MESS_EDITOR;
//EDITOR END HERE
#
#-----[ ???? ?? ]------------------------------------------
# ~ ?? ????? ??? 403
</textarea>
#
#-----[ ??? ???? ]------------------------------------------
#
<!-- //EDITOR HERE -->
{DISPLAY_EDITOR_OPTION}
<!-- //EDITOR HERE -->
#
#-----[ ???? ????? ???? ??????? ???????? ?????? ??? ???? ]------------------------------------------
#A.D
# EoM
??? ??????? ???????? ?? ?????? ?? http://www.arab.info.tm/downloads/
?????????
?????? ?????? ????? ??? ??????? ???? ?????? ????
http://forum.arab.info.tm
- محمد السماني
- عضو جديد
- مشاركات: 18
- اشترك في: الاثنين يوليو 02, 2007 5:35 am
- اتصال:
- محمد السماني
- عضو جديد
- مشاركات: 18
- اشترك في: الاثنين يوليو 02, 2007 5:35 am
- اتصال:
??? ???? ??? ?? ??? ???????? ? ??? ????? ????? ?? ????? ???? ?? ????? ?????????
???? ??? ??? ???? ??? ??? ????
???? ??? ??? ???? ??? ??? ????
ارخص وأفضل شركة استضافة prohostingteam
http://www.prohostingteam.com/vb/
http://www.prohostingteam.com/vb/
- محمد السماني
- عضو جديد
- مشاركات: 18
- اشترك في: الاثنين يوليو 02, 2007 5:35 am
- اتصال:
الموجودون الآن
المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 23 زائرًا