Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-09-12 07:19:21

koeniman
New member
Registered: 2005-09-12
Posts: 6

Edit smilies

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

#2 2005-09-19 12:05:14

kimss
Xinha Pro
From: Sweden
Registered: 2005-04-05
Posts: 99
Website

Re: Edit smilies

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, smile (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

#3 2005-09-19 16:24:09

koeniman
New member
Registered: 2005-09-12
Posts: 6

Re: Edit smilies

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

Board footer

Powered by FluxBB