logo

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
bbcode and emoticons

the bbcode "buttons" should be made the same as the emoticons, an the emoticons needs to be "swapable".

I'm adding the "new" Admin menu/center into the themes section, under _Admin, mostly because its "close to the surface" of the eoCMS file tree (which makes it easy for non-techies to find them) and because it is no attached to any Themes, but also because every other place was in-appropriate (or you needed a map to find it)

theoretically this means the following are practical as well:
Code:
themes/_Smileys/african/
themes/_BBCode/programmer/
themes/_Menu/arrghghph/


the new bbcode I did would benefit from this, and a "backend" generator is to be made to get other bbcode plugins to be "dynamic" (no more haveing to do CSS etc). it works off a list, which can be from a db or a file, same with the emoticons..

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: bbcode and emoticons

the "list" of emoticons and bbcodes needs to be editable from the admin section (both), with a icon/theme choser too, and the a "these go on the menu in this order" things as well

this would facilitate the (current) lack of clickable buttons, or typing in the correct smiley :roll: (which is useful in the quick post)

the list could have contain both, and the menu only one (either one)

this would also make adding bbcode a breeze too

this would also have a "generate static" button on the page to, output appropriate HTML to cache folder..

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: bbcode and emoticons

Hmm the BBCode i had an idea. You have them in _BBCODE, would it be possible to have a folder in there for Posts and Comments? That way you can have certain BBCode for comments and not for forum posts and vice versa

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: bbcode and emoticons

ok, its theme specific, and that particular folder is for theme related bbcode "themes".

however, yes, I dont see why not, as a "default part" of the theme-info it should be able to cope with something like $bbcode

remember that what us used in the site (from admin) should not be "exclusive" to a bbcode "theme".

so maybe in this particular casewe would have the following (without overly complicating it)
Code:
Plugins/_BBcode/MarkItUp/
Plugins/_BBcode/bbCodePress/ (not bbCodePress-lite)
themes/_BBcode/light/

then there is the question of:
Code:
themes/_BBcode/egi/  or
themes/egi/images/bbcode/

I thinks the second one, because that is the default for egi, and hence "part of the theme"

anyway, there is a 3rd part to bbcode & emoticons, and that is how they are stored in eoCMS itself, and how they are linked back to "image sets". ATM you can link to a image, the trick will be to be able to choose a different set of images, and what happens when there is no "image" for a specific item

I so if you can imaging that all "bbcode" folders are "related" to each other, but each one does a diffent part (so that it can be quickly and simple added/plugged/unplugged)

a lot of word to say, yeah, there needs to be a theme-info-new example of how it would work.

the admin/db stuff  would be (in the code) separated into bbcode plugin (JS, etc), default images (theme), bbcode entries (buttons & "others"), and bbcode "replace" entries.. but presented as one in the admin..


BTW the example theme-info is able to extend to other "?-info" files too, and flexible enough to handle even the db stuff.. so its just a matter of organising it so that it has and does everything that you want (or needs it to do)

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: bbcode and emoticons

I just found this, will see what can be done:

Code:
$.fn.insertAtCaret = function (myValue) {
        return this.each(function(){
                //IE support
                if (document.selection) {
                        this.focus();
                        sel = document.selection.createRange();
                        sel.text = myValue;
                        this.focus();
                }
                //MOZILLA/NETSCAPE support
                else if (this.selectionStart || this.selectionStart == '0') {
                        var startPos = this.selectionStart;
                        var endPos = this.selectionEnd;
                        var scrollTop = this.scrollTop;
                        this.value = this.value.substring(0, startPos)
                                      + myValue
                              + this.value.substring(endPos,
this.value.length);
                        this.focus();
                        this.selectionStart = startPos + myValue.length;
                        this.selectionEnd = startPos + myValue.length;
                        this.scrollTop = scrollTop;
                } else {
                        this.value += myValue;
                        this.focus();
                }
        });

};


JQuery Google Groups on mail-archive

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 909
Re: bbcode and emoticons

I will look into a JQuery version of my bbcode when the language and db stuff are done..


Jump to:


0.07 seconds Queries: 14