Firefox PHP

Text style editor

Posted by hoowoo 
pat
Re: Text style editor
June 02, 2005 01:34PM
hoowoo Wrote:
-------------------------------------------------------
> Hi pat, nice work.
>
> I'm sending a czech file for your release, the
> word forms are arranged in some other way.

Yes I changed the appearance of the Variable to make it easier to read, thank you for the file.

> Now you do not need the styleedit.php file at all,
> isn't it? It can be deleted together with the
> "hook: format|phorum_bb_code_TEextension" line
> from the info.txt.

You still need the file for the localisation and plus that way you can turn the whole thing on and off globally as an Admin.

> You need fix the lang changes: the lang file
> contains "TE_enable" while readme advices to add
> "<?php echo
> $PHORUM['DATA']['LANG']['mod_styleedit']['TEenable
> ']?>".

although that line is correct it should really be:

{LANG->mod_styleedit->TE_enable}

instead

thanx
pat


pat
Re: Text style editor
June 03, 2005 01:33PM
Ok,

there is no expression for [li] (list) in the bb-code does anybody have one?

Annother thing I noticed is that the script uses enormous amount of memory if I reload several times it will result in a Windows-Crash anybody know why?

thanx
pat
Re: Text style editor
June 07, 2005 09:20AM
A non-enhanced text style editor. A small bug with link script fixed.

The bug: when adding a link to a marked text, a description interactive dialogue doesn't show the marked text. If changed, the modification doesn't affect the result. Fixed in the attached file.

------- To fix the bug make this: --------------
1.Insert this line No. 155 into the format.php file (or line No. 162 of the bb_texteditor.php file of the enhanced editor):
echo "popis = s2;\n";

2. replace the "popis" with "y" at the line No. 141 (the format.php file) (or No. 148 of the bb_texteditor.php file of the enhanced editor).

3. replace the "s2" with "y" at the line No. 158 (the format.php file) (or No. 164 of the bb_texteditor.php file of the enhanced editor).

----------------------------------------


The last version below.

Honza*), fórum o bylinkách a taky o křesťanském duchovním životě - [hoowoo.euweb.cz]



Edited 1 time(s). Last edit at 06/10/2005 02:35AM by hoowoo.
Re: Text style editor
June 08, 2005 04:07AM
Fixed the link script bug and the recommendation of readme.txt, added a Czech lang file (the enhanced BB-Code style editor).

The first styleedit.php file includes the expression for [li], added into the bbcode modul here now, it operates well.

Tried to delete the (empty in fact) styleedit.php file of the enhanced editor (together with corresponding line of info.txt) and it seems no new troubles appear, isn't it? You can turn the editor on/off as you like.

Nevertheless, still you get a warning about absent index "mod_styleedit" in your profile if the BB-Code editor is turned off (both you have or not the styleedit.php file):
Notice: Undefined index: mod_styleedit in ...\phorum-test\cache\tpl-default-cc_usersettings-2a2fa8aa2d4673ed7f67a36b5cb1fc2a.php on line 93
It needs some other way to define the "TE_enable" expression in lang files probably (to add the definition into the main lang file i.g.). Or, better, to show the dialogue enabling editor in an user's profile only if it is enabled by admin generally first.

This modification of the style editor (enhanced one only) enables the bb-code editor for registered users only!

The edited file below.

Honza*), fórum o bylinkách a taky o křesťanském duchovním životě - [hoowoo.euweb.cz]



Edited 2 time(s). Last edit at 06/10/2005 04:49AM by hoowoo.
Re: Text style editor
June 10, 2005 03:03AM
The editor needs to affect the moderation too.

Changes: -----
add a line No.33 (both into the format.php or into the bb_texteditor.php):
if (ereg ("moderation.php", $file)) $formarea = "body";
---------------

If you choose the basic editor - it is you will use it generally and don't need too much settings - take this one. (download the file below)

Honza*), fórum o bylinkách a taky o křesťanském duchovním životě - [hoowoo.euweb.cz]



Edited 3 time(s). Last edit at 06/20/2005 04:55PM by hoowoo.
Re: Text style editor
June 10, 2005 05:54AM
Enhanced editor.

The editor affects the moderation too and when enabled it is available to use for unregistered users (by an admin setting). Enabled for registered users as default.

Take the file below.

Honza*), fórum o bylinkách a taky o křesťanském duchovním životě - [hoowoo.euweb.cz]



Edited 1 time(s). Last edit at 06/10/2005 07:39AM by hoowoo.
Re: Text style editor
June 10, 2005 07:40AM
Enhanced SE with fixed bugs and better settings. Well, this can be made better too, see below.

Honza*), fórum o bylinkách a taky o křesťanském duchovním životě - [hoowoo.euweb.cz]



Edited 1 time(s). Last edit at 06/11/2005 01:37AM by hoowoo.
Re: Text style editor
June 11, 2005 01:36AM
Fixed some settings to prevent a sudden going when beginning with the editor. If you choose the enhanced editor, take this one ! (download the file below)

Honza*), fórum o bylinkách a taky o křesťanském duchovním životě - [hoowoo.euweb.cz]



Edited 1 time(s). Last edit at 06/20/2005 04:54PM by hoowoo.
Re: Text style editor
June 15, 2005 04:08PM
Nice stuff, getting used to it and it really works :).


Thomas Seifert
Re: Text style editor
June 17, 2005 05:12AM
Great! :-)

Honza*), fórum o bylinkách a taky o křesťanském duchovním životě - [hoowoo.euweb.cz]
Sorry, only registered users may post in this forum.

Click here to login