Quote

"Ich weiß, dass ich nichts weiß!" - Sokrates

Select a Design

Choose a template (changes appearance of my homepage):

Site Information

This site is powered by:
powered by php
powered by apache
powered by mysql
powered by smarty
Firefox 2

Blog

Filter on: Tutorial Remove

Improving ICQ's built-in Status Manager

10. December 2006, 01:23

Hey folks,

in fact, there is no need for a Custom ICQ Status Manager, like the one I programmed. Because there is an easy way that which allows you to modify the built-in Status Manager of ICQ adding these features:
  • ability to select all icons available
  • create more than 5 concurrent
  • remove the character limit

(ICQ 5.1 required)

This is how:
Open up the install directory of ICQ in explorer (normally C:\Program Files\ICQLite\) and browse to the folder Plugins\User\Customeicq\CustomAwayStatus (e.g. C:\Program Files\ICQLite\Plugins\User\Customeicq\CustomAwayStatus).

Now you will see a bunch of files, but only 2 of them are of real interest for us:
index.js and
index#.html where # is any number

So first open up index.js in your favorite text editor (mine is Programmers Notepad).
These two lines will help us achieve our goals:
var gl_num_of_icons = 23;
var gl_num_of_text_rows = 5;
(Note: If there are different values entered, that's not bad)
The first line tells the script how many icons there are: 24 (0-based counting), the second how many times input boxes will be shown, thus, how many concurrent status may be created.

But before we change these values, get the additional icons here and unpack them into the Plugins\User\Customeicq\CustomAwayStatus\icons folder. (Note: I modified one, precisely the one that looks like the icon of the status manager. it was originally just a blank icon. besides in the custom status manager window, you will see the blank image and your friends as well when selecting it as icon for a status.)
These icons are the ones that will be shown in the status manager, other windows in ICQ (main window etc.) use different source icons, so don't be surprised if changing this folder only changes the status manager.

Now that we have more icons we can go on and adjust the settings accordingly:

var gl_num_of_icons = 31; // added 8 icons
var gl_num_of_text_rows = 10; // change this to whatever you want ;), now we can have 10 custom statuses at a time

But this is not all. Now we need to remove the character limit. To do this open index#.html (# = any number, if you have multiple index#.html files in this folder, I'd modify the one with the highest number. If that doesnt have any effect try the next one.) in your editor. Go to line 32 (starts with: document.write, you should see some <input> tags in this line) and remove
maxlength='20'
and
onKeyUp='textCounter(this, 80);'
and
onKeyDown='textCounter(this, 80);'

Additionally, you can change the function in the index.js file:
just change

// Texterea character limit
function textCounter(obj, maxlimit) {
if (obj.value.length > maxlimit) obj.value = obj.value.substring(0, maxlimit);
disableApplyButton(false);
}

To

// Texterea character limit
function textCounter(obj, maxlimit) {
return;
}

That's it, folks.

If you encounter any difficulties or errors please inform me and feel free to ask any questions regarding this issue here.
Furthermore, I don't take any responsibility for any damage that may be caused by incorrectly or even correctly modifying these files.

So long
Tags: Tutorial ICQ