You are not logged in.
Pages: 1
Hi;
I deleted most of the smiley-gifs. Never the less it keeps on listing 570 smilies. So this list you get when clicking "insert smiley" is not dynamicaly? How/where do i modify this list.
Is it posible to hide/show styles in css-menu? Muy css is quite complex, so 90% of the styles are not necessary for a "editor/publisher".
Greets
Koen
Offline
This looks pretty static indeed, look in the "insert-smiley.js" file, you will find this code in the beginning :
function Init() {
var totalsmileys = 580;
__dlg_translate("InsertSmiley");
__dlg_init();
param = window.dialogArguments;
editor = param['editor'];
window.resizeTo(400, 300);
var tbody = document.getElementById("smileytable");
var inum;
var trow;
for(var i = 1; i <= totalsmileys; i++) {
As you see all images are numbered from 0001 and up, and the script just generates an imagetable from 0 to 580, you see the 580 number? The last line in my excerpt is the accuall looping.
How do you change this?
Well, If you have chewed it down to say 20 smilies, make sure you are numbering them from 0001 and up, just alter the 580 to 20. (This was you keep the code kinda practical and easy to maintain). There are several ways of doing this differently, but I guess the author found those lines of code pretty effective for 580 icons, (But I agree, to many icons indeed)
Mvh,
Kim Steinhaug
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.steinhaug.no - www.easywebshop.no - www.easycms.no
Last edited by kimss (2006-02-27 19:21:33)
Offline
Thx,
Already found a way around this. I must admit i didn't found the solution myself. For those interested, here's the link to our CMS-forum, etomite:
http://www.etomite.org/forums/index.php?showtopic=3286
Offline
Pages: 1