I'm currently on a 2 week vacation.
Ciao
You are not logged in. Please login or register.
PunBB Forums → Posts by Nique
Pages 1
I'm currently on a 2 week vacation.
Ciao
Hello there,
I want to add a tinyMCE.triggerSave(); at the beginning inside the validateForm function, otherwise.. i get a validation error from punBB because the field is empty. (not trigger saved yet).
validateForm: function(form)
{
tinyMCE.triggerSave();
(..) // the function
return true;
}
Is there a way i can 'extend' the validateForm function inside my own javascript file? i'm not really a good javascript coder but this should be simple..
var validateForm_editor = validateForm.extend(function (form) {
????
});
Does anyone know this?
Is there any way to retrieve the current style information inside a attached javascript file?
I need to send data to javascript, but i do not want to put 'inline' javascript on top of screen.
I include the punEdit.js file via the manifest.. but when im in punEdit.js, i cannot retrieve the current path of extensions / styles.
I really need this information.
Where exactly do you want us to add the hook? As I understand from your topic, you need the hook in post.php. But there are two hooks before ("po_pre_post_contents") and after ("po_pre_optional_fieldset") the output of the textarea field already.
Huh,
I didnt see them but i've seen them now. So to add a new custom field above the 'optional post settings' fieldset, i'll have to use the po_pre_optional_fieldset hook?
Thanks
Well, i will put a download link online when the editor reaches beta status..
Beta's are for tests In the mean while you'll have to do it with screenshots (and maybe some examples). This is for security reasons...
You mean custom buttons?
Yes, maybe later. You have to be careful with adding options as it can breach the security. (script uploading e.g.)
Really looking forward to this!!
Yea i'm sorry guys, but even nicEdit was buggy..
I'm creating one myself now, and it works!. Pictures soon! edit: look at the start post
Ok, i leave the idea open but i've found a even more easyer way to make it compatible with other scripts..
use the: $lang_common['lang_identifier'] that is being set inside the common.php file of any language!
I'm changing to nicedit because nicedit can replace textarea by javascript.
So i do not have to replace the textarea by hardcoding (creating a new hook)
I think we need to setup some rules here for creating new language packs.
The problem is that we all name our languages differently (for example, Nederlands is the mother tongue name for Dutch, but Dutch is long and not often used by other 'scripts' on the web. So where does the language dutch come from?, lets link it to the mother country: the Netherlands, lets take the ISO: NL.. and this ISO code is used very often. So let's make punBB compatible with other scripts..
Extended story:
I'm creating a extension that includes a existing wysiwyg editor. That editor supports my language (Dutch). But because we named it here 'Dutch' and the editor calls it nl (like many other programs).. we have a problem here. Let's call our languages by the default ISO 3166-1 names.
English = en
French = fr
German = de
Spanish = es
Dutch = nl
and so on..
Most other programs are using this kind of naming to
This will improve the flexibility of punBB even more.
Then, even later.. we can eventualy add a 'second or third name' in the download directory for each file to match your own native country language name.
e.g.:
key name: en, second name: English, third name: English
key name: fr, second name: French, third name: Français
key name: de, second name: German, third name: Deutsch
key name: es, second name: Spanish, third name: Español
key name: nl, second name: Dutch, third name: Nederlands
A hook for replacing (changing) the textarea field. This can be very handy for wysiwyg text editor extensions. (for example where i 'm working on)
Hey there,
I'm currently working on a 'special' WYSIWYG extension for PunBB.. i will call it PunEdit.
It looks a bit like tinyMCE, but it isn't. It will replace the current textarea fields with a nicely developed WYSIWYG editor that's build on the WidgEditor code. Anyway, i had to change a lot of code of that editor, so i might call it just PunEdit. Every composed message will still be stored as BBcode into the database. I decided this because you might want to change (migrate) forum software in the future... (which i wouldn't understand! ) . Goals:
Updates:
I'll keep you updated in this post as often as possible.
WYSIWYG:
Optional functions (Bold, Italic, Underline, Strike-through, Links, E-mail, Lists, Quote, Code, text-color, text-size, smilies, Youtube).
Live Quoting.. no more quote tags!, just real life quoting
Custom toolbar.. Choose what kind of buttons you want at your chosen fields. (basic, advanced, minimal or your own setup). This can be setup inside a special settings page inside the administration panel. No more coding?
Complete language support
Smilies:
Smilies will be placed at the right side of the editor so you can quick pick one. Smilies will be live converted inside the editor while typing. The 'never show smilies as icons' will also work live inside the editor.. as soon you check it, the smilies will be transformed in plain text.
In the future i will try to add 'pack' support, so we can make our own packs.
ImageManager:
You can download this plugin separately from the main (PunEdit) extension, but it will lay on the PunEdit extension.
This ImageManager will go directly underneath the wysiwyg editor field. This takes some pixels in height, but users are able to upload images and click on their uploaded image to put it directly inside the editor. Users who are restricted can still place images using external images, the bar will be less in height, and the url field + 'add' button is still to insert images directly from it.
Users do upload to their own directory, so they can pick their already uploaded pictures in the future.
Attachments:
Like the ImageManager, there will be put a new field set beneath it (or, when ImageManager has not been installed beneath the editor field).
Uploaded files will be put in the attachment directory for users. So, in this case, you can bind 'pdf, doc or any other MIME type to a post)
Legend:
: Currently working on
: Not working on yet
I think, this will be a great 'attractive' addon.. and punBB will be downloaded twice more
And, to motivate me even more to finish it faster.. here is a hint :
good stuff. i've also seen many people announce they'll do a language and never deliver. better to do it like you! surprise deliver then announce:D
thx!
Well, i've seen some problems already, i will update the file as soon as posible.
Forgot 2 files to edit haha!
after seeing there was no langauge pack, i dicided to create one myself. And i did not announce it because i don't like to see anouncements before some results are there.
So here it is, in the list: http://punbb.informer.com/wiki/punbb13/language_packs
(direct zip, click here)
Two notes:
- The installation screen has not been translated..
- i think punBB needs to consider tools like PoEdit (google for it) for translation, there are php scripts available that can read po files. i had have a hard time, translating the same kind of words over and over again..
Greetz from holland
Pages 1
PunBB Forums → Posts by Nique
Powered by PunBB, supported by Informer Technologies, Inc.