[ABD] HotEditor WYSIWYG MOD for phpBB3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
eCardMax.com
Registered User
Posts: 61
Joined: Thu Jan 01, 2004 11:10 am
Contact:

[ABD] HotEditor WYSIWYG MOD for phpBB3

Post by eCardMax.com » Sat May 26, 2007 6:51 am

##############################################################
## MOD Title: WYSIWYG - Rich Text Editor for posting HTML message
## MOD Author: eCardMAX.com < webmaster@ecardmax.com > (Jimbo Hong) http://ecardmax.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! Our Rich Text Editor will work on all popular browsers such as: IE - FireFox - Netscape - Opera 9x - Safari 1.3x
## MOD Version: 4.2 for phpBB3 RC1
##
## Installation Level: (Easy)
## Installation Time: 5 ~ 10 Minutes
## Files To Edit:
## common.php
## search.php
## includes/bbcode.php
## styles/prosilver/template/posting_buttons.html
## styles/prosilver/template/posting_editor.html
## styles/prosilver/template/ucp_header.html
## styles/prosilver/template/ucp_main_drafts.html
## styles/prosilver/template/ucp_profile_signature.html
## styles/prosilver/template/editor.js
##
## Included Files: 0
##
## Included Folders: [richedit]
## 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/
##############################################################
## Author Notes:
##
## Upload folder [richedit] to phpbb main (root) folder (same location with file posting.php)
##
##############################################################
## MOD History:
##
## 2007-05-23 - Version 4.2
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
A cross-browser, cross-platform WYSIWYG Editor. Compatible with the most major browsers: IE 5.5+, Firefox 1.0+, Mozilla 1.3+, Netscape 7+, Opera 9+ and Safari 1.3+

Image

HotEditor will output BBCode instead of HTML code like other version.

Live Demo:
[link removed]

Fore more information and download go here
[link removed]

Regards,
Last edited by DavidIQ on Fri Aug 12, 2011 3:38 pm, edited 2 times in total.
Reason: Links removed.

Arm@nd
Registered User
Posts: 12
Joined: Mon Jan 10, 2005 5:10 pm

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by Arm@nd » Sat May 26, 2007 3:47 pm

Sounds great ! I think I'm going to try it.

tfinry
Registered User
Posts: 32
Joined: Sat Jun 10, 2006 10:20 pm
Contact:

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by tfinry » Sat May 26, 2007 3:50 pm

vns mod i use is since phpbb2

but here i think you forget some lines

in file common :

instead of

Code: Select all

//HotEditor MOD
function BBCodeToHTML($text){
	$patterns[] = "#  #si";
	$replacements[] = '&nbsp;&nbsp;';

	$patterns[] = "#\t#si";
	$replacements[] = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';

	$patterns[] = "#\[(sub|sup|strike)(.*?)\]#si";
	$replacements[] = '<$1>';

	$patterns[] = "#\[\/(sub|sup|strike)(.*?)\]#si";
	$replacements[] = '</$1>';

	$patterns[] = "#\[font=(.*?)\]#si";
	$replacements[] = '<span style="font-family:$1;">';

	$patterns[] = "#\[highlight=(.*?)\]#si";
	$replacements[] = '<span style="background-color:$1;">';

	$patterns[] = "#\[\/(font|highlight)(.*?)\]#si";
	$replacements[] = '</span>';

	$patterns[] = "#\[hr\]#si";
	$replacements[] = '<hr class=HR_Color>';

	$text = preg_replace($patterns, $replacements, $text);

	return $text;
}

muse be like :

Code: Select all

//EDITOR
function BBCodeToHTML($text){

	$patterns[] = "#  #si";
	$replacements[] = '&nbsp;&nbsp;';

	$patterns[] = "#\t#si";
	$replacements[] = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';

	$patterns[] = "#\[(\/)indent\]#si";
	$replacements[] = '<$1blockquote>';

	$patterns[] = "#\[(sub|sup|strike|blockquote)\]#si";
	$replacements[] = '<$1>';

	$patterns[] = "#\[\/(sub|sup|strike|blockquote)(.*?)\]#si";
	$replacements[] = '</$1>';

	$patterns[] = "#\[font=(.*?)\]#si";
	$replacements[] = '<font face="$1">';

	$patterns[] = "#\[highlight=(.*?)\]#si";
	$replacements[] = '<font style="background-color:$1">';

	$patterns[] = "#\[\/(font|highlight)(.*?)\]#si";
	$replacements[] = '</font>';

	$patterns[] = "#\[center\]#si";
	$replacements[] = '<div align="center">';

	$patterns[] = "#\[left\]#si";
	$replacements[] = '<div align="left">';

	$patterns[] = "#\[right\]#si";
	$replacements[] = '<div align="right">';

	$patterns[] = "#\[justify\]#si";
	$replacements[] = '<div align="justify">';

	$patterns[] = "#\[\/(center|left|right|justify)\]#si";
	$replacements[] = '</div>';

	$patterns[] = "#\[\/\*:(.*?)\]#si";
	$replacements[] = '';

	$patterns[] = "#\n+(\[list:(.*?)\])#si";
	$replacements[] = '[LIST]';

	$patterns[] = "#\n+(\[list=1:(.*?)\])#si";
	$replacements[] = '[LIST=1]';

	$patterns[] = "#\n+\[\/list:(.*?)\]#si";
	$replacements[] = '[/LIST]';

	$patterns[] = "#\[list:(.*?)\]\n+#si";
	$replacements[] = '[LIST]';

	$patterns[] = "#\[list=1:(.*?)\]\n+#si";
	$replacements[] = '[LIST=1]';

	$patterns[] = "#\[\/list:(.*?)\]\n+#si";
	$replacements[] = '[/LIST]';

	$patterns[] = "#\n+(\[list\])#si";
	$replacements[] = '[LIST]';

	$patterns[] = "#\n+(\[list=1\])#si";
	$replacements[] = '[LIST=1]';

	$patterns[] = "#\n+\[\/list\]#si";
	$replacements[] = '[/LIST]';

	$patterns[] = "#\[list\]\n+#si";
	$replacements[] = '[LIST]';

	$patterns[] = "#\[list=1\]\n+#si";
	$replacements[] = '[LIST=1]';

	$patterns[] = "#\[\/list\]\n+#si";
	$replacements[] = '[/LIST]';

	$patterns[] = "#\[hr\]#si";
	$replacements[] = '<hr>';

	$patterns[] = "#\[list=1\]#si";
	$replacements[] = '<ol>';

	$patterns[] = "#\[list\]#si";
	$replacements[] = '<ul>';

	$patterns[] = "#\[\*(.*?)\]#si";
	$replacements[] = '<li>';

	$patterns[] = "#\[list=1:(.*?)\]#si";
	$replacements[] = '<ol>';

	$patterns[] = "#\[list:(.*?)\]#si";
	$replacements[] = '<ul>';

	$patterns[] = "#\n#si";
	$replacements[] = '<br>';

	$patterns[] = "#<br[^>]*><li>#si";
	$replacements[] = '<li>';

	$patterns[] = "#<br[^>]*> <li>#si";
	$replacements[] = '<li>';

	$patterns[] = "#<br[^>]*><\/li>#si";
	$replacements[] = '</li>';

	$patterns[] = "#\[\/list\]#si";
	$replacements[] = '</list>';

	$text = preg_replace($patterns, $replacements, $text);

	return $text;
}

right ??

tfinry
Registered User
Posts: 32
Joined: Sat Jun 10, 2006 10:20 pm
Contact:

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by tfinry » Sat May 26, 2007 8:24 pm

hey again

can i know who this mod work with supsilver style ?
i tried to put it and all things is fine also when i make font size 7 for example the finall text look very small
how can i fix it ?

thanx in advanced

User avatar
ac_roma
Registered User
Posts: 307
Joined: Thu Mar 08, 2007 2:48 pm
Location: egypt,alexandria
Contact:

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by ac_roma » Sat May 26, 2007 8:57 pm

looks great

i will test it sure :)

Nicolas Fraga
Registered User
Posts: 31
Joined: Mon Nov 20, 2006 9:37 pm

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by Nicolas Fraga » Sat May 26, 2007 10:16 pm

Oh my god! :o


Congratulations, very very good! ;)
The Best Regards, Nicolas Fraga

Image Access my new web-site!

Peter77sx
Registered User
Posts: 3257
Joined: Wed Nov 09, 2005 2:51 pm

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by Peter77sx » Sun May 27, 2007 2:46 am

This is very good. I enjoy the phpbb 2.0.22 version and glad to see it made for phpbb3 ( RC ). :D


If anything, one request would be to still have a post stay checked on HTML mode when editing. in the 2.0.22 phpbb version, the editor resets when edting a post done in HTML.



Thanks.

Tw3nt
Registered User
Posts: 145
Joined: Tue Oct 19, 2004 7:17 am

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by Tw3nt » Sun May 27, 2007 3:50 am

Will custom bbcodes work with this mod?

geoffreak
Registered User
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am
Contact:

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by geoffreak » Sun May 27, 2007 4:17 am

WOW! :D
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!

User avatar
eCardMax.com
Registered User
Posts: 61
Joined: Thu Jan 01, 2004 11:10 am
Contact:

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by eCardMax.com » Sun May 27, 2007 2:45 pm

Last updated: HotEditor WYSIWYG MOD for phpBB3 and phpBB2 have been updated.
Below is what news:
  • Cut - Copy - Paste buttons now work with FireFox & Opera (& IE of course)
  • FIxed minor bug when switching between WYSIWYG Editor and BBCode Editor
  • Enabled buttons align LEFT / CENTER / RIGHT / JUSTIFY
  • Removed button Line Break (will see in IE only). We don't need this button any more because from now on HotEditor will force IE acts like FireFox when user hit Enter (will create single line instead of double line)
For those who haven't install this MOD, visit this link to see Demo and download the zip file
http://www.ecardmax.com/index.php?step=Hoteditor2phpbb

If you already installed this MOD and need upgrade, then follow the link above to re-download the zip file, find code change inside: common.php + styles/prosilver/template/posting_editor.html + new version editor.js
Will custom bbcodes work with this mod?
Yes, it will. But you have to edit file editor.js to enable button More Tags (add code btMoreTags to var toolbar1 ="....,btMoreTags"), then edit file richedit/styles/office2007/select_moretags.htm (add your custom code to the array, you have to create new button images for your new code). You will see your custom buttons when you click More Tags. The custom bbcode will not show in BBCode Editor.
If anything, one request would be to still have a post stay checked on HTML mode when editing. in the 2.0.22 phpbb version, the editor resets when edting a post done in HTML.
The latest MOD will show alert message to tell user Un-check the ViewHTML checkbox before submitting their post.
can i know who this mod work with supsilver style ?
i tried to put it and all things is fine also when i make font size 7 for example the finall text look very small how can i fix it ?
This MOD will work with any theme including supsilver. About your font size problem you need to add function convertSize under function get_hoteditor_data() (view file preset_files_phpbb_3_RC1/styles/prosilver/posting_editor.html and look for function convertSize)

Regards,

tfinry
Registered User
Posts: 32
Joined: Sat Jun 10, 2006 10:20 pm
Contact:

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by tfinry » Sun May 27, 2007 6:56 pm

This MOD will work with any theme including supsilver. About your font size problem you need to add function convertSize under function get_hoteditor_data() (view file preset_files_phpbb_3_RC1/styles/prosilver/posting_editor.html and look for function convertSize)

Regards,

thanx thats need me to edit editor.js too
and add this line to postingpody.html

Code: Select all

getdata = convertSize(getdata,"1");
thanx again

powerful_rogue
Registered User
Posts: 118
Joined: Sun Feb 11, 2007 2:44 pm

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by powerful_rogue » Sun May 27, 2007 9:36 pm

Hi!

Great mod!

Ive got one problem though -

Image

May have something to do with the fact that I have changed the width of my forum to 800px. Also when you click "Turn Off WYSIWYG" it exposes even more of the smilies.

Is there anything I can edit so it dosent show them?

rmwilk
Registered User
Posts: 4
Joined: Thu May 24, 2007 2:19 am

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3 (FIXED)

Post by rmwilk » Sun May 27, 2007 11:29 pm

Ok, trying to update and made the changes to the 2 files (common.php and posting_editor) and updated editor.js. I still don't have the left, center, and right justify buttons and now I get size numbers displayed in the final posts. And the copy and paste still does not work in Firefox.
UPDATE:

All is working well this morning :)
Last edited by rmwilk on Mon May 28, 2007 2:08 pm, edited 1 time in total.

powerful_rogue
Registered User
Posts: 118
Joined: Sun Feb 11, 2007 2:44 pm

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by powerful_rogue » Mon May 28, 2007 12:53 pm

Just found another small problem when you go into create a PM.

Image

Any suggestions on how to make this fit the forum? My forum width is 800px.

Its just a little bit too short in when replying to a post (piccy few posts back) and slightly too long when creating a PM.

Any help greatly appreciated. This really is a superb mod.

rmwilk
Registered User
Posts: 4
Joined: Thu May 24, 2007 2:19 am

Re: [Beta] HotEditor WYSIWYG MOD for phpBB3

Post by rmwilk » Mon May 28, 2007 2:19 pm

I too have problems with PM's. Here is what I'm seeing:

Image

Locked

Return to “[3.0.x] Abandoned MODs”