Firefox PHP

DHTML editor for HTML in posts

Posted by Pavel Rùžièka 
Rename th attachement to .zip and unzip. Copy (some files replace) to the phorum directory and try write some post.

In the Ineternet Explorer you will use easy HTML by clicking button as for example in Frontpage Express editor. In other browsers is show normally text form with bar for entering smileys.

Why is beta?
1. The entering qoutas is disabled, it still not working with this editor.
2. The language is fixed in the files, not using language files of the phorum and is in czech.
3. The detection of browser is not very clearly, but is function - should be enhanced.
Attachments:
open | download - dhtmed.txt (12.2 KB)
New version
August 08, 2001 12:17PM
This new version with enhanced compatibility with no IE browsers, add new features.
Its for the 3.3 version.

1. The entering qoutas is disabled, it still not working with this editor.
2. The language is fixed in the files, not using language files of the phorum and is in czech.
3. The sending reply to the email is visible only for logged-in users - this no bug, its my adding to the form.php, you easy remove this feature editing this file.
Attachments:
open | download - dhtmedv2.txt (22.2 KB)
Re: New version
August 11, 2001 06:06AM
can we see an example?
Re: New version
August 11, 2001 07:45AM
Maybe on the [forum.trance.cz]
Re: New version
August 16, 2001 05:03AM
I have a new version including Preview hack - if some interested in, let me send email.
Jules
Re: New version
September 05, 2001 09:13AM
hmm...new version with preview hack? i'm interested..mind posting it? thanks
Re: New version
September 29, 2001 03:25PM
Hey,

that looks pretty cool on your site. Congratulations for your work! It'd like to get the new version... Please mail it to me - thank you!
Re: New version
September 30, 2001 02:07AM
Sorry - it was created for previous 3.3 version, which is incompatible with current RC1. Wait for final version 3.3 - then I will prepare new version of DHTML editor.
If you want try to play with current version of DHTML editor, you may contact me by ICQ 22635022 :)
Re: New version - English
December 01, 2001 07:50PM
I hacked Pavel's *excellent* hack to translate it into English.

Four files need to be changed
- english.php
- form.php
- dhtmed.php
- dhtmed.js (unfortunately, this is a js file, so it's not parsed by PHP, and language variables can't be written into it without making it a PHP include. I didn't want to do that)

*Those* files are attached. First you'll have to download and set up Pavel's version, then make the changes using my files.

I am working on Hungarian and German translations. Should be ready in a week or so.

Thanks for the hard work Pavel.
Re: New version - English
December 01, 2001 07:51PM
I hacked Pavel's *excellent* hack to translate it into English.

Four files need to be changed
- english.php
- form.php
- dhtmed.php
- dhtmed.js (unfortunately, this is a js file, so it's not parsed by PHP, and language variables can't be written into it without making it a PHP include. I didn't want to do that)

*Those* files are attached. First you'll have to download and set up Pavel's version, then make the changes using my files.

I am working on Hungarian and German translations. Should be ready in a week or so.

Thanks for the hard work Pavel.
Attachments:
open | download - english.php (8.9 KB)
open | download - dhtmed.js (4.3 KB)
open | download - dhtmed.php (8.7 KB)
open | download - form.php (12.3 KB)
Re: New version - English
December 01, 2001 07:53PM
Sorry about the mulitple posts. Now where's that "sheepish" smiley face..... ;-)
Ken
Re: New version - English
January 09, 2002 03:30AM
Hey Guys,

I noticed that the DHTML editor doesn't switch from the "Standard" editor back to the "Enhanced" one... So, attached is a "real" text file with the new code for dthmed.php and form.php which fixes this problem.

I'm not exactly a great programmer at PHP but I can usually hack my way thru with cheap code. Take a look, and if you can do this a better way let me know!
Attachments:
open | download - editorswitching.txt (1 KB)
Re: DHTML editor for HTML in posts
February 11, 2002 01:20PM
Whoopee this is good!

I've installed the script as instructed, using Phorum 3.3.2a, yet I can't seem to get the HTML to display when I check the test posts I've done.

I've tried editing the 'dHTML.js' file subsituting the '<' for '[' in order to support the 'Phorum' code standard. I also can't seem to get the css implemented rollover states to work for buttons...

Has anyone got any clues..?

Peace, love and flowers,

Bumblepuppy.

FTC
Re: DHTML editor for HTML in posts
March 15, 2002 11:37AM
Hi,

Regarding the .js, you can rename it to dHTML.js.php and make it a dynamically generated script replacing all prompts with <?php echo $whatever; ?> :)

You'll have to include the correct files and possibly pass some parameters in in form.php so it loads the language files.
I have new version with special DHTML editor for posting HTML formatted postings. Because I must "hack" read_functions.php for show normally HTML (may cause cross-scripting bug or other security errors), I dont want publish it here.
If someone interested in, should be contact me by mail or ICQ 22635022 - I will send set of needed files to him.
Try the new version:

1. Copy unzipped files to your 3.3.2a Phorum folder. Some files will be replaced.
2. Activate the replace plugin if phorum admin.
3. Deactivate phorum code. With this DHTML editor are HTML post accepted,
forum may be affected by cross-site scripting and other errors.
4. Code of DHTML editor contain texts only in czech language - you should translate it to your language.
5. Preview function is opened in new window - I dont know, where is function previw plugin for this version.

Enjoy it :)
Attachments:
open | download - dhtmed.zip (28.3 KB)
I tried it out and found that I had to modify the include/read_functions.php file. I commented out line 10 through 19, so that it would display the HTML tags properly.
how about a "phorum-code-version" of this editor? ;-)
Sorry, you do not have permission to post/reply in this forum.