WYSIWYG - Rich Text Editor 3.0 for Post and Private Message

phpBB 2.0.x sürümleri için MODlar hakkında ihtiyacınız olan desteği buradan sorarak alabilirsiniz.
Kilitli
Kullanıcı avatarı
er-13
Kayıtlı Kullanıcı
Mesajlar: 273
Kayıt: 02.08.2006, 04:52
Konum: /index.php
İletişim:

WYSIWYG - Rich Text Editor 3.0 for Post and Private Message

Mesaj gönderen er-13 »

##############################################
## MOD Title: WYSIWYG - Rich Text Editor 3.0 for Post and Private Message
## MOD Author: Jimbo Hong http://www.HotEditor.com
## MOD Description: Format your post or private message like you working with FrontPage
##
## MOD Version: 3.0
##
## Installation Level: Intermediate
## Installation Time: ~20 minutes
##
## Files To Edit (6) :
## phpbb/viewtopic.php + posting.php + privmsg.php
## phpbb/includes/topic_review.php
## phpbb/templates/subSilver/overall_header.tpl + posting_body.tpl
##
## Included Files (2) :
## phpbb/templates/subSilver/posting_body_ie.tpl
## phpbb/get_vars.php

## Included new Folder (1) : richedit
##
###############################################
Last year I've submitted this MOD (V.2) here
http://www.phpbb.com/phpBB/viewtopic.ph ... highlight=

Today, I came back with the new version, I've rewritten the code to make the Editor runs better than before. You can see it runs on my site here

http://HotEditor.com/
http://HotEditor.com/phpbb/index.php

Download and try it out here
http://www.hoteditor.com/how_to_phpbb2.php

Demosunu görmek isterseniz buradan
bakabilirsiniz...

Kurulumu:

Kod: Tümünü seç

################################################################################################
## 
## FOR phpBB VERSION 2.0.17 - 2.0.18
##
## MOD Title: WYSIWYG - Rich Text Editor 3.0 for Post and Private Message 
## MOD Author: Jimbo Hong http://www.HotEditor.com 
## MOD Description:	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! 
## 
## MOD Version: 3.0 
## 
## Installation Level: Intermediate 
## Installation Time: 20 minutes 
## 
## Files To Edit (7) : 
## viewtopic.php + posting.php + privmsg.php + search
## includes/topic_review.php 
## templates/subSilver/overall_header.tpl + posting_body.tpl 
## 
## Included Files (2) : + templates/subSilver/posting_body_ie.tpl 
##			+ get_vars.php
##
## Included new Folder (1) : richedit 
## 
################################################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
################################################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
################################################################################################

# 
#-----[ OPEN ]------------------------------------------ 
# 
viewtopic.php

# 
#-----[ FIND around line number 1156 ]------------------------------------------ 
# 
	$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
	$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE

	$message =str_replace ("#ed_op#","<",$message);
	$message =str_replace ("#ed_cl#",">",$message);
	$message =str_replace ("&","&",$message);
	$message =str_replace (""","\"",$message);
	$message =str_replace ("<br&nbsp; />","<br>",$message);

	// 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.

	$message = str_replace("<","\n<",$message);
	$message = str_replace(">",">\n",$message);
	$array_mess = explode ("\n",$message);
	$message = "";

	foreach ($array_mess as $val){
		if (preg_match("/</",$val) ){
			$val = preg_replace("/onclick/si", "", $val); 
			$val = preg_replace("/onmouseover/si", "", $val); 
			$val = preg_replace("/onmouseout/si", "", $val); 
			$val = preg_replace("/onmousedown/si", "", $val); 
			$val = preg_replace("/onmouseup/si", "", $val); 
			$val = preg_replace("/onmousemove/si", "", $val); 
			$val = preg_replace("/onblur/si", "", $val); 
			$val = preg_replace("/cursor/si", "", $val); 
			$val = preg_replace("/position/si", "", $val); 
			$val = preg_replace("/absolute/si", "", $val); 
			$val = preg_replace("/visibility/si", "", $val); 
			$val = preg_replace("/visible/si", "", $val); 
			$val = preg_replace("/z-index/si", "", $val); 
			$val = preg_replace("/script/si", "", $val); 
		}
	$message .=$val;
	}

	//EDITOR END HERE

# 
#-----[ SAVE/CLOSE FILE ]------------------------------------------ 
# 

# 
#-----[ OPEN ]------------------------------------------ 
# 
posting.php

# 
#-----[ FIND around line number 14 ]------------------------------------------ 
# 
	/***************************************************************************
	*
	* This program is free software; you can redistribute it and/or modify
	* it under the terms of the GNU General Public License as published by
	* the Free Software Foundation; either version 2 of the License, or
	* (at your option) any later version.
	*
	***************************************************************************/

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE

	require_once "getvars.php";
	$richedit = get_global_var("richedit");
	$message2 = get_global_var("message2");
	if ($richedit == "0"){$message = $message2;}

	//EDITOR END HERE

# 
#-----[ FIND around line number 709 ]------------------------------------------ 
# 

	template->set_filenames(array(
	'preview' => 'posting_preview.tpl')
	);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE

	$preview_message =str_replace ("#ed_op#","<",$preview_message);
	$preview_message =str_replace ("#ed_cl#",">",$preview_message);
	$preview_message =str_replace ("&","&",$preview_message);
	$preview_message =str_replace (""","\"",$preview_message);
	$ua = get_global_var("user_agent");

	if ($richedit == "0" ){
		$preview_message = str_replace("<br />", "", $preview_message);
	}
	$editor_off = get_global_var("editor_off");
	if ($editor_off == "0" && strpos($ua,"Gecko") ){
		$preview_message = str_replace("<br />", "", $preview_message);
	}

	$preview_message = str_replace("<br&nbsp; />", "<br>", $preview_message);

	//EDITOR END HERE

# 
#-----[ FIND around line number 977 ]------------------------------------------ 
# 

	$template->set_filenames(array(
	    'body' => 'posting_body.tpl', 
	    'pollbody' => 'posting_poll_body.tpl', 
	    'reviewbody' => 'posting_topic_review.tpl')
	);

#
#-------[COMMENT THE CODE LIKE THIS] ---------------------------------------------
#
	//$template->set_filenames(array(
	//    'body' => 'posting_body.tpl', 
	//    'pollbody' => 'posting_poll_body.tpl', 
	//    'reviewbody' => 'posting_topic_review.tpl')
	//);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE

	$richedit = get_global_var("richedit");
	$ua = get_global_var("user_agent");
	$cookie_editor =get_global_var("cookie_editor");

	if ($richedit != "0" && strpos($ua,"Windows") && strpos($ua,"MSIE") && !strpos($ua,"Opera") && $cookie_editor !="off" || strpos($ua,"Gecko") && $richedit != "0" && !strpos($ua,"Safari") && $cookie_editor !="off") {

		$display_editor_option = "<span class=gen>\n";
		$display_editor_option .= "<input type=radio value=1 checked name=richedit onClick='set_cookie(\"on\")'>Click here to set Rich Text Editor as your default<br>\n";
		$display_editor_option .= "<input type=radio value=0 name=richedit onClick='set_cookie(\"off\")'>Click here to set normal Text Area as your default\n";
		$display_editor_option .= "</span>\n";
		$display_editor_option .= "<script language=javascript>\n";
		$display_editor_option .= "function set_cookie(data){\n";
		$display_editor_option .= "popup=window.open('getvars.php?step=set_default&editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=no');\n";
		$display_editor_option .= "popup.focus();\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\")'>Click here to set Rich Text Editor as your default<br>\n";
		$display_editor_option .= "<input type=radio value=0 checked name=richedit onClick='set_cookie(\"off\")'>Click here to set normal Text Area as your default\n";
		$display_editor_option .= "</span>\n";
		$display_editor_option .= "<script language=javascript>\n";
		$display_editor_option .= "function set_cookie(data){\n";
		$display_editor_option .= "popup=window.open('getvars.php?step=set_default&editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=no')\n";
		$display_editor_option .= "popup.focus();\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')
		);
	}

	if (strpos($ua,"Opera") || strpos($ua,"Safari")) {
		$display_editor_option="";
	}

	//EDITOR END HERE

# 
#-----[ FIND around line number 1046 ]------------------------------------------ 
# 

	$template->assign_block_vars('switch_not_privmsg', array());

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE 

	$message = str_replace ("#ed_op#","<",$message);
	$message = str_replace ("#ed_cl#",">",$message);
	$message = str_replace ("&","&",$message);
	$message = str_replace('"',""",$message);
	$message = str_replace('\\',"&bkfls;",$message);
	$message = str_replace ("<br />","",$message);

	$editor_off = get_global_var("editor_off");
	$richedit = get_global_var("richedit");
	$ua = get_global_var("user_agent");
	if ($richedit != "0") {
		$message = str_replace("\r\n","<br />",$message);
		$message = str_replace("<br><br />","<br>",$message);
	}
	if ($editor_off == "0" && strpos($ua,"Gecko") ){
		$message = str_replace("<br />", "", $message);
	}

	//EDITOR END HERE

# 
#-----[ FIND around line number 1070 ]------------------------------------------ 
# 

	//
	// Output the data to the template
	//
	$template->assign_vars(array(

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE
	'DISPLAY_EDITOR_OPTION' => $display_editor_option,
	//EDITOR END HERE

# 
#-----[ SAVE/CLOSE FILE ]------------------------------------------ 
# 

# 
#-----[ OPEN ]------------------------------------------ 
# 
privmsg.php

# 
#-----[ FIND around line number 14 ]------------------------------------------ 
# 

	/***************************************************************************
	*
	* This program is free software; you can redistribute it and/or modify
	* it under the terms of the GNU General Public License as published by
	* the Free Software Foundation; either version 2 of the License, or
	* (at your option) any later version.
	*
	***************************************************************************/

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE

	require_once "getvars.php";
	$richedit = get_global_var("richedit");
	$message2 = get_global_var("message2");
	if ($richedit == "0"){$message = $message2;}
	
	//EDITOR END HERE

# 
#-----[ FIND around line number 620 ]------------------------------------------ 
# 

	$private_message = str_replace("\n", '<br />', $private_message);

	//
	// Dump it to the templating engine
	//

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE 

	$private_message =str_replace ("#ed_op#","<",$private_message);
	$private_message =str_replace ("#ed_cl#",">",$private_message);
	$private_message =str_replace ("&","&",$private_message);
	$private_message =str_replace (""","\"",$private_message);
	$private_message = str_replace("<br&nbsp; />", "<br>", $private_message);
	
	//EDITOR END HERE

# 
#-----[ FIND around line number 1598 ]------------------------------------------ 
# 

	$template->set_filenames(array(
	"preview" => 'privmsgs_preview.tpl')
	);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE 

	$preview_message =str_replace ("#ed_op#","<",$preview_message);
	$preview_message =str_replace ("#ed_cl#",">",$preview_message);
	$preview_message =str_replace ("&","&",$preview_message);
	$preview_message =str_replace (""","\"",$preview_message);

	if ($richedit == "0"){$preview_message = str_replace("<br />", "", $preview_message);}
	$editor_off = get_global_var("editor_off");
	if ($editor_off == "0" && strpos($ua,"Gecko") ){$preview_message = str_replace("<br />", "", $preview_message);}

	$preview_message = str_replace("<br&nbsp; />", "<br>", $preview_message);

	//EDITOR END HERE

# 
#-----[ FIND around line number 1655 ]------------------------------------------ 
# 

	$template->set_filenames(array(
	'body' => 'posting_body.tpl')
	);

#
#-------[COMMENT THE CODE LIKE THIS] ---------------------------------------------
#

	//$template->set_filenames(array(
	//'body' => 'posting_body.tpl')
	//);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE

	$richedit = get_global_var("richedit");
	$ua = get_global_var("user_agent");
	$cookie_editor =get_global_var("cookie_editor");

	if ($richedit != "0" && strpos($ua,"Windows") && strpos($ua,"MSIE") && !strpos($ua,"Opera") && $cookie_editor !="off" || strpos($ua,"Gecko") && $richedit != "0" && !strpos($ua,"Safari") && $cookie_editor !="off") {

		$display_editor_option = "<span class=gen>\n";
		$display_editor_option .= "<input type=radio value=1 checked name=richedit onClick='set_cookie(on)'>Click here to set Rich Text Editor as your default<br>\n";
		$display_editor_option .= "<input type=radio value=0 name=richedit onClick='set_cookie(off)'>Click here to set normal Text Area as your default\n";
		$display_editor_option .= "</span>\n";
		$display_editor_option .= "<script language=javascript>\n";
		$display_editor_option .= "function set_cookie(data){\n";
		$display_editor_option .= "popup=window.open('getvars.php?step=set_default&editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=no');\n";
		$display_editor_option .= "popup.focus();\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)'>Click here to set Rich Text Editor as your default<br>\n";
		$display_editor_option .= "<input type=radio value=0 checked name=richedit onClick='set_cookie(off)'>Click here to set normal Text Area as your default\n";
		$display_editor_option .= "</span>\n";
		$display_editor_option .= "<script language=javascript>\n";
		$display_editor_option .= "function set_cookie(data){\n";
		$display_editor_option .= "popup=window.open('getvars.php?step=set_default&editor=' + data, 'hoteditor', 'height=300,width=300,status=no,toolbar=no,menubar=no,location=no,scrollbars=no')\n";
		$display_editor_option .= "popup.focus();\n";
		$display_editor_option .= "}\n";
		$display_editor_option .= "</script>\n";

		$template->set_filenames(array(
			'body' => 'posting_body.tpl')
		);
	}

	if (strpos($ua,"Opera") || strpos($ua,"Safari")) {
		$display_editor_option="";
	}

	//EDITOR END HERE

# 
#-----[ FIND around line number 1785 ]------------------------------------------ 
# 

	privmsg_subject = preg_replace($html_entities_match, $html_entities_replace, $privmsg_subject);
	$privmsg_subject = str_replace('"', '"', $privmsg_subject);

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE 

	$privmsg_message = str_replace ("#ed_op#","<",$privmsg_message);
	$privmsg_message = str_replace ("#ed_cl#",">",$privmsg_message);
	$privmsg_message = str_replace ("&","&",$privmsg_message);
	$privmsg_message = str_replace('"',""",$privmsg_message);
	$privmsg_message = str_replace('\\',"&bkfls;",$privmsg_message);
	$privmsg_message = str_replace ("<br />","",$privmsg_message);

	$editor_off = get_global_var("editor_off");
	$richedit = get_global_var("richedit");
	$ua = get_global_var("user_agent");
	if ($richedit != "0") {
		$privmsg_message = str_replace("\r\n","<br />",$privmsg_message);
		$privmsg_message = str_replace("<br><br />","<br>",$privmsg_message);
	}
	if ($editor_off == "0" && strpos($ua,"Gecko") ){
		$privmsg_message = str_replace("<br />", "", $privmsg_message);
	}

	//EDITOR END HERE

# 
#-----[ NEXT 2 LINE FIND ]------------------------------------------ 
# 

	$template->assign_vars(array(

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE
	'DISPLAY_EDITOR_OPTION' => $display_editor_option,
	//EDITOR END HERE

# 
#-----[ SAVE/CLOSE FILE ]------------------------------------------ 
# 

# 
#-----[ OPEN ]------------------------------------------ 
# 
search.php

# 
#-----[ FIND around line number 868 ]------------------------------------------ 
# 

	$message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message;

#
#-------[COMMENT THE CODE LIKE THIS] ---------------------------------------------
#

	//$message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message;

# 
#-----[ FIND around line number 1016 ]------------------------------------------ 
# 

	$template->assign_block_vars("searchresults", array(

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE

	$message =str_replace ("#ed_op#","<",$message);
	$message =str_replace ("#ed_cl#",">",$message);
	$message =str_replace ("&","&",$message);
	$message =str_replace (""","\"",$message);
	$message =str_replace ("<br&nbsp; />","<br>",$message);

	// 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.
	$message = str_replace("<","\n<",$message);
	$message = str_replace(">",">\n",$message);
	$array_mess = explode ("\n",$message);
	$message = "";
	foreach ($array_mess as $val){
		if (preg_match("/</",$val) ){
			$val = preg_replace("/onclick/si", "", $val); 
			$val = preg_replace("/onmouseover/si", "", $val); 
			$val = preg_replace("/onmouseout/si", "", $val); 
			$val = preg_replace("/onmousedown/si", "", $val); 
			$val = preg_replace("/onmouseup/si", "", $val); 
			$val = preg_replace("/onmousemove/si", "", $val); 
			$val = preg_replace("/onblur/si", "", $val); 
			$val = preg_replace("/cursor/si", "", $val); 
			$val = preg_replace("/position/si", "", $val); 
			$val = preg_replace("/absolute/si", "", $val); 
			$val = preg_replace("/visibility/si", "", $val); 
			$val = preg_replace("/visible/si", "", $val); 
			$val = preg_replace("/z-index/si", "", $val); 
			$val = preg_replace("/script/si", "", $val); 
		}
		$message .=$val;
	}

	//EDITOR END HERE

# 
#-----[ SAVE/CLOSE FILE ]------------------------------------------ 
# 

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/topic_review.php

# 
#-----[ FIND around line number 187 ]------------------------------------------ 
# 

	row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
	$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE 

	$message =str_replace ("#ed_op#","<",$message);
	$message =str_replace ("#ed_cl#",">",$message);
	$message =str_replace ("&","&",$message);
	$message =str_replace (""","\"",$message);
	$message =str_replace ("<br&nbsp; />","<br>",$message);

	// 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.
	$message = str_replace("<","\n<",$message);
	$message = str_replace(">",">\n",$message);
	$array_mess = explode ("\n",$message);
	$message = "";
	foreach ($array_mess as $val){
		if (preg_match("/</",$val) ){
			$val = preg_replace("/onclick/si", "", $val); 
			$val = preg_replace("/onmouseover/si", "", $val); 
			$val = preg_replace("/onmouseout/si", "", $val); 
			$val = preg_replace("/onmousedown/si", "", $val); 
			$val = preg_replace("/onmouseup/si", "", $val); 
			$val = preg_replace("/onmousemove/si", "", $val); 
			$val = preg_replace("/onblur/si", "", $val); 
			$val = preg_replace("/cursor/si", "", $val); 
			$val = preg_replace("/position/si", "", $val); 
			$val = preg_replace("/absolute/si", "", $val); 
			$val = preg_replace("/visibility/si", "", $val); 
			$val = preg_replace("/visible/si", "", $val); 
			$val = preg_replace("/z-index/si", "", $val); 
			$val = preg_replace("/script/si", "", $val); 
		}
		$message .=$val;

	}
	
	//EDITOR END HERE

# 
#-----[ SAVE/CLOSE FILE ]------------------------------------------ 
# 

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/overall_header.tpl

# 
#-----[ FIND around line number 35 ]------------------------------------------ 
# 

	font,th,td,p { font-family: {T_FONTFACE1} }

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

	th,td,p { font-family: {T_FONTFACE1} }

# 
#-----[ FIND around line number 146 ]------------------------------------------ 
# 

	.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 

	.postbody { font-size : {T_FONTSIZE3}px; line-height: 24px}

# 
#-----[ SAVE/CLOSE FILE ]------------------------------------------ 
# 

# 
#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/posting_body.tpl

# 
#-----[ FIND around line number 75 ]------------------------------------------ 
# 

	function checkForm() {

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	//EDITOR START HERE

	var MESS_EDITOR = document.post.message.value;
	MESS_EDITOR = MESS_EDITOR.replace(/#ed_op#/ig,"<");
	MESS_EDITOR = MESS_EDITOR.replace(/#ed_cl#/ig,">");
	MESS_EDITOR = MESS_EDITOR.replace(/\n/ig,"#ed_op#br /#ed_cl#");
	document.post.message2.value= MESS_EDITOR;

	//EDITOR END HERE 

# 
#-----[ FIND around line number 268 ]------------------------------------------ 
# 

	<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="return checkForm(this)">

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	<!-- //EDITOR HERE -->
	<input type=hidden name=message2 value ="">
	<!-- //EDITOR HERE -->

# 
#-----[ FIND around line number 409 ]------------------------------------------ 
# 

	<textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	<!-- //EDITOR HERE -->
	{DISPLAY_EDITOR_OPTION}
	<!-- //EDITOR HERE --> 

# 
#-----[ FIND around line number 500 ]------------------------------------------ 
# 

	{TOPIC_REVIEW_BOX}

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

	<!-- //EDITOR ADD JAVASCRIPT CODE HERE -->
	<script language=javascript>
	var MESS_EDITOR = document.post.message.value;
	MESS_EDITOR = MESS_EDITOR.replace(/<br>/ig,"\n");
	document.post.message.value = MESS_EDITOR;
	</script>
	<!-- //EDITOR ADD JAVASCRIPT CODE HERE -->

# 
#-----[ SAVE/CLOSE FILE ]------------------------------------------ 
# 

[USE FTP TO UPLOAD FILE getvars.php TO FOLDER phpbb (SAME LOCATION WITH FILE posting.php)]
[USE FTP TO UPLOAD FILE posting_body_ie.tpl TO FOLDER phpbb/templates/subSilver/posting_body_ie.tpl]

# EoM - END OF MOD
En son er-13 tarafından 19.11.2006, 14:11 tarihinde düzenlendi, toplamda 2 kere düzenlendi.
Kullanıcı avatarı
kelkirpi
Kayıtlı Kullanıcı
Mesajlar: 291
Kayıt: 06.09.2006, 13:36
Konum: İstanbul
İletişim:

Mesaj gönderen kelkirpi »

kurulumunu sağlayamaman normal, çünkü kurulacak bişey yok.. Yani link kırık..
Ama editör çok güzelmiş, file upload bile var içinde, süper bişey.. Keşke olsaydı.
Kullanıcı avatarı
NEFRİT
Uzaklaştırıldı
Mesajlar: 1404
Kayıt: 28.01.2006, 04:15
Konum: DarkKingdom
İletişim:

Mesaj gönderen NEFRİT »

Bu editör ne kadarda güzelmiş aslında basit gibi geldi bana ilk bakışta ama o linkelere butoıbnlara tıklayınca ne kadar süper bişey olduğu anlaşılıyor.

Kurulum için bişeyt diyemeyeceğim çünki download linki kırık.
Özellerden kullanıcılara reklam yaptığım için sayın yöneticim beni uzaklaştırdı.
Dungeon Master
Kayıtlı Kullanıcı
Mesajlar: 48
Kayıt: 27.05.2006, 23:14
İletişim:

Mesaj gönderen Dungeon Master »

Arkadaslar ucretli bir urun sitesinde baktım. demo versiyonunu indirebilirsiniz ama ne gibi olaylar/farklılıkar vardır bilemem. Demo sonucta bu da demonun linki :
http://www.ecardmax.com/hoteditor/hoteditor.zip
Dungeon Master
Kayıtlı Kullanıcı
Mesajlar: 48
Kayıt: 27.05.2006, 23:14
İletişim:

Mesaj gönderen Dungeon Master »

Arkadaslar phbb2 icine entegre edilmis hazır halde bulabileceginiz link (phpbb 2.0.18surumu icin) :

http://www.ecardmax.com/hoteditor/phpBB ... Editor.zip

Buda 2.0.19 icin :
http://www.ecardmax.com/hoteditor/phpBB ... Editor.zip


Phpbb2(2.0.19) entegre edilmiş bir forum (DEMO) linki :
http://www.ecardmax.com/HE_phpbb_2019/


NOT: Bu arada Hot editor isimli program ucretliymis ben cok incelemeden sazan gibi atladım :oops: :oops: kusura bakmaın. linklerden dl edip phpbb2 foruma uygulanabiliyor :D ucretli programda sanırım baska islere yarıyor ama tabii satın almadan bu bir gizem olarak kalır :lol:
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

Herkezin aradığı modifaksyon bu işte . Vbulletinden imrenen çok ve wordpressden
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
Kullanıcı avatarı
er-13
Kayıtlı Kullanıcı
Mesajlar: 273
Kayıt: 02.08.2006, 04:52
Konum: /index.php
İletişim:

Mesaj gönderen er-13 »

download linki kırık değilde özellikle vermek istemedim normalde bu http://www.ecardmax.com/index.php?step=Hoteditor2phpbb ama tıklayınca anasayfa açılıo direk o yüzden anasayfanın linkini vermiştim ki bu linkte kurulumu da var ben bunu plus a kurduydum belki ondan çalışmadı hiç bişi gözükmüyordu plus ı sildim şimdi normal versiyona geçtim ve denemedim deneyince eğer olursa sizide aydınlatırım kolay gelsin phpbb sitesinden de onaylı heralde orada gördüydüm ve açıklamalara baktım biraz analdığım kadarıyla memnun kalan çok sanırım bakıp görebilirsiniz yorumlara http://www.phpbb.com/phpBB/viewtopic.ph ... highlight=
Dungeon Master
Kayıtlı Kullanıcı
Mesajlar: 48
Kayıt: 27.05.2006, 23:14
İletişim:

Mesaj gönderen Dungeon Master »

Bide bunun icinde hazır dosyalar var sadece. Richedit klasoru dısında editlenmis (foruma atmamız gereken) baska dosya varmı acaba ? Ayrıca sql sorgusu yaptırmak da gerekirmi ? Yardımcı olursanız yukleyip gorelim sunu :D
Kullanıcı avatarı
er-13
Kayıtlı Kullanıcı
Mesajlar: 273
Kayıt: 02.08.2006, 04:52
Konum: /index.php
İletişim:

Mesaj gönderen er-13 »

Kurulumunu başlığa ekledim oradan kurabilirsiniz yalnız bilemediğim bir yer var

Kod: Tümünü seç

#
#-----[ OPEN ]------------------------------------------
#
search.php

#
#-----[ FIND around line number 868 ]------------------------------------------
#

   $message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message;

#
#-------[COMMENT THE CODE LIKE THIS] ---------------------------------------------
#

   //$message = ( strlen($message) > $return_chars ) ? substr($message, 0, $return_chars) . ' ...' : $message; 
ve

Kod: Tümünü seç

#
#-----[ FIND around line number 977 ]------------------------------------------
#

   $template->set_filenames(array(
       'body' => 'posting_body.tpl',
       'pollbody' => 'posting_poll_body.tpl',
       'reviewbody' => 'posting_topic_review.tpl')
   );

#
#-------[COMMENT THE CODE LIKE THIS] ---------------------------------------------
#
   //$template->set_filenames(array(
   //    'body' => 'posting_body.tpl',
   //    'pollbody' => 'posting_poll_body.tpl',
   //    'reviewbody' => 'posting_topic_review.tpl')
   //);

# 
yerlerindeki

Kod: Tümünü seç

#-------[COMMENT THE CODE LIKE THIS] --------------------------------------------- 
yazısı ne anlama geliyor bilmiyorum değiştir yaptım fakat o zamanda

Kod: Tümünü seç

Parse error: parse error, unexpected T_VARIABLE in /home/slamer/public_html/posting.php on line 731
hatasını alıyorum. burası çözülürse sorun kalmaz ve kullanabiliriz sanırım... kolay gelsin
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

FIND around line number 977

977.ci satırda ara
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
Kullanıcı avatarı
er-13
Kayıtlı Kullanıcı
Mesajlar: 273
Kayıt: 02.08.2006, 04:52
Konum: /index.php
İletişim:

Mesaj gönderen er-13 »

hocam onu değil

Kod: Tümünü seç

#-------[COMMENT THE CODE LIKE THIS] ---------------------------------------------
bunu sorduydum ama kurdum modu ve ii çalışıyor da link eklediğimden ötürü CrackerTracker

Kod: Tümünü seç

SECURITY ALERT » » » » 
CBACK CrackerTracker has detected a potential attack on this site with a worm or exploit script so the Security System stopped the script. 


If you can see this page after including a new MOD into your board or after clicking on a link please contact the Board Administrator with this error message and a description what you have done before you could see this page, that the Admin has the possibility to fix the problem.  
mesajını veriyor ve bunu engelliyor. ne yapsak ki? normal bi mesajı sorunsuz çıkartıyor. editorun phpbb forumda görünümü şu şekilde [ resmi görüntülemek için tıklayın ]
Dungeon Master
Kayıtlı Kullanıcı
Mesajlar: 48
Kayıt: 27.05.2006, 23:14
İletişim:

Mesaj gönderen Dungeon Master »

SAnırım kodlarda birsey var uyarı mesajı veriyorsa eger. Mod arkadaslardan rica edelim kodları inceleyip zararlı yerler varsa tespit etsinler.

Bu arada er-13 o kodları nasıl kllandın yani

Kod: Tümünü seç

#-------[COMMENT THE CODE LIKE THIS] ---------------------------------------------
kısmını nasıl duzenledin ?
Kullanıcı avatarı
er-13
Kayıtlı Kullanıcı
Mesajlar: 273
Kayıt: 02.08.2006, 04:52
Konum: /index.php
İletişim:

Mesaj gönderen er-13 »

Kod: Tümünü seç

REPLACE WITH
usulü yaptım orayı yani değiştirdim.

Editorde alıntı gibi yapınca yani bi siteden kopyala yapıştır yapınca, linkleri değil sadece, resimleri dahi sakıncalı görüyor anladım ki html ye izin vermiyor bi bakayım iice nerede sorun verebilir mod arkadaşlarda bakarsa bi orta yol buluruz modu türkçelerştirmeye de çalışacağım kolay gelsin.
Kilitli

“2.0.x MOD Destek” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 6 misafir