Jump to content

Welcome to DevFuse Forums

Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
Guest Message by DevFuse

Tutorial info Visit support topic

  • Added on: Mar 25 2011 06:11 AM
  • Views: 2287

Adjusting the number of emoticons per row

A quick article on how to adjust the number of emoticons shown per row in the editor

Posted by AndyF on Mar 25 2011 06:11 AM
Here is a quick article on how to adjust the number of emoticons shown in the editor. This might be helpful if you have a lot set 'clickable' and want some more to appear initially.

Connect via FTP or your hosts File Manager. Open /public/js/ips.editor.js

Around line 2162, find...
var table = new Element( 'table', { id: this.id + '_emoticons_palette' } ).addClassName('rte_emoticons');
		var tbody = new Element('tbody'); // IE needs a tbody
		table.insert( tbody );
		var perrow = 2;
		var classname = '1';
		var i = 0;

Adjust the var perrow = 2; line, taking care not to disturb any other code and save the change.

View the posting screen and hard refresh (CTRL +F5 on a Windows machine) the page to see the results. :)

I would suggest 3 or 4 usually. A couple of quick pics:

3 per row:

Posted Image

4 per row:

Posted Image

Powered by Tutorials 1.5.1 © 2017, by Michael McCune