Easy steps first: Put the emoticons in the correct folder for your chat to recognize (/img/emoticons), and make sure that config.js array's have been configured correctly with proper names and whatnot.
While you're in config.js, you're going to have to create another array which tells the chat where the images are placed. Your options are display under the text area, display in the popup, or display both. But first, we have to make sure we have the container declared for the emoticons to be placed in.
In Config.js.
Find:
// The ID of the emoticons container:
emoticonsContainer: 'emoticonsContainer',
Add After:
// The ID of the emoticons container:
emoticonsContainerPopUp: 'emoticonsContainerPopUp',
Find:
emoticonFiles: new Array(
'Example1.png',
'Example2.jpg',
'Example3.gif'
),
// Defines whether the associated emoticon will display (3 will only display outside popup, 2 will always display, 1 will display in the pop up, 0 is hidden):
emoticonDisplay: new Array(
1,
2,
3
),
Now we have to declare the array and allow the CSS to get data from it.
Open chat,js
Find:
this.emoticonFiles = config['emoticonFiles'];
this.emoticonDisplay = config['emoticonDisplay'];
initEmoticons: function() {
this.DOMbuffer = "";
Add After:
var emoticonDisplayPopUpCount=0;
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
if(this.emoticonDisplay[i] == 2 || this.emoticonDisplay[i] == 3){
if(this.dom['emoticonsContainer']) {
this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>'
);
}
}
if((this.emoticonDisplay[i] == 1 || this.emoticonDisplay[i] == 2) && (this.emoticonDisplay[i] != 3)){
emoticonDisplayPopUpCount++;
if(this.dom['emoticonsContainerPopUp']) {
this.updateDOM(
'emoticonsContainerPopUp',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '" height="'
+ 25
+ '" width="'
+ 25
+ '" style="padding: 10px"/></a>'
);
}
}
^^ What you can see being done here is that it's determining from the array that we set up, where the emoticons should be placed. Either in the container we're going to create, or the page, or nowhere. You can change the display size of the emotes from within here as well.
Find and Remove:
this.DOMbuffer = this.DOMbuffer
+ '<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>';
}
if(this.dom['emoticonsContainer']) {
this.updateDOM('emoticonsContainer', this.DOMbuffer);
}
this.DOMbuffer = "";
^^ This code is not needed as the code we entered in the step prior to this has already added the emoticons to their respectable places and therefore does not need to be called.
Now that everything is declared, we need a place to put all of it, and a button to activate the box we put the emoticons in.
Open Global.css
Find:
#content #colorCodesContainer {
position:absolute;
left:20px;
bottom:55px;
padding:3px;
z-index:1;
}
Add After:
#content #emoticonsContainerPopUp {
position:absolute;
left:450px;
bottom:125px;
padding:3px;
z-index:1;
}
Find:
#content #colorCodesContainer a {
display:block;
float:left;
width:20px;
height:20px;
}
Add After:
#content #emoticonsContainerPopUp a {
display:block;
float:left;
width:60px;
height:30px;
}
That creates the box for which we'll be adding the emoticons to in Chat.js. Now let's make that button!
Open LoggedIn.html
Find:
<div id="bbCodeContainer">
<input type="button" value="More Smilies" onclick="ajaxChat.showHide('emoticonsContainerPopUp', null);" />
<div id="colorCodesContainer" style="display:none;" dir="ltr"></div>
<div id="emoticonsContainerPopUp" style="display:none;" dir="ltr"></div>
I've just finished up a request to make an extra box with my container so that people with many emotes can separate them into two popup boxes. The steps are identical as the original post.
#content #emoticonsContainerPopUp2 {
position:absolute;
left:450px;
bottom:125px;
padding:3px;
z-index:1;
}
#content #emoticonsContainerPopUp2 a {
display:block;
float:left;
width:60px;
height:30px;
}
// The ID of the emoticons container:
emoticonsContainerPopUp2: 'emoticonsContainerPopUp2',
<input type="button" value="Images/gifs" onclick="ajaxChat.showHide('emoticonsContainerPopUp2', null);" />
<div id="emoticonsContainerPopUp2" style="display:none;" dir="ltr"></div>
initEmoticons: function() {
this.DOMbuffer = "";
for(var i=0; i<this.emoticonCodes.length; i++) {
// Replace specials characters in emoticon codes:
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
if(this.emoticonDisplay[i] == 2 || this.emoticonDisplay[i] == 3){
if(this.dom['emoticonsContainer']) {
this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>'
);
}
}
if((this.emoticonDisplay[i] == 1 || this.emoticonDisplay[i] == 2) && (this.emoticonDisplay[i] != 3)){
if(this.dom['emoticonsContainerPopUp']) {
this.updateDOM(
'emoticonsContainerPopUp',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '" height="'
+ 25
+ '" width="'
+ 25
+ '" style="padding: 10px"/></a>'
);
}
}
if((this.emoticonDisplay[i] == 4)){
if(this.dom['emoticonsContainerPopUp2']) {
this.updateDOM(
'emoticonsContainerPopUp2',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '" height="'
+ 25
+ '" width="'
+ 25
+ '" style="padding: 10px"/></a>'
);
}
}
}
},
Easy steps first: Put the emoticons in the correct folder for your chat to recognize (/img/emoticons), and make sure that config.js array's have been configured correctly with proper names and whatnot.
While you're in config.js, you're going to have to create another array which tells the chat where the images are placed. Your options are display under the text area, display in the popup, or display both. But first, we have to make sure we have the container declared for the emoticons to be placed in.
In Config.js.
Find:
// The ID of the emoticons container:
emoticonsContainer: 'emoticonsContainer',
Add After:
// The ID of the emoticons container:
emoticonsContainerPopUp: 'emoticonsContainerPopUp',
Find:
emoticonFiles: new Array(
'Example1.png',
'Example2.jpg',
'Example3.gif'
);
1 means they only show up in the container, 3 means they only show up under the about box, 2 means they show up in both places.
Right, so 1 will yield the smilies ONLY in the popup menu. 2 should ONLY display outside the window, and 3 will do both.
ok maybe im just being stupid here ... so this bit of code:
// Defines whether the associated emoticon will display (3 will only display outside popup, 2 will always display, 1 will display in the pop up, 0 is hidden):
emoticonDisplay: new Array(
1,
2,
3
),
// Defines the list of allowed emoticon codes: emoticonCodes: new Array( ':popcorn:', ':runs:', ':cry:', ':P', ':love:', ), // Defines the list of emoticon files associated with the emoticon codes: emoticonFiles: new Array( 'popcorn.gif', 'runs.gif', 'cry.png', 'stroke.png', 'love.png', ),
// Defines whether the associated emoticon will display (3 will only display outside popup, 2 will always display, 1 will display in the pop up, 0 is hidden): emoticonDisplay: new Array(
3, 3, 1, 2, 1 ),
if((this.emoticonDisplay[i] == 1 || this.emoticonDisplay[i] == 2) && (this.emoticonDisplay[i] != 3)){ emoticonDisplayPopUpCount++; if(this.dom['emoticonsContainerPopUp']) { this.updateDOM( 'emoticonsContainerPopUp', '<a href="javascript:ajaxChat.insertText(\'' + this.scriptLinkEncode(this.emoticonCodes[i]) + '\');"><img src="' + this.dirs['emoticons'] + this.emoticonFiles[i] + '" alt="' + this.emoticonCodes[i] + '" title="' + this.emoticonCodes[i] + '" height="' + 25 + '" width="' + 25 + '" style="padding: 10px"/></a>' );
initEmoticons: function {
initEmoticons: function() { this.DOMbuffer = ""; var emoticonDisplayPopUpCount=0;
for(var i=0; i<this.emoticonCodes.length; i++) { // Replace specials characters in emoticon codes:
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
if(this.emoticonDisplay[i] == 2 || this.emoticonDisplay[i] == 3){ if(this.dom['emoticonsContainer']) { this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\'' + this.scriptLinkEncode(this.emoticonCodes[i]) + '\');"><img src="' + this.dirs['emoticons'] + this.emoticonFiles[i] + '" alt="' + this.emoticonCodes[i] + '" title="' + this.emoticonCodes[i]
+ '"/></a>' );
} } if((this.emoticonDisplay[i] == 1 || this.emoticonDisplay[i] == 2) && (this.emoticonDisplay[i] != 3)){ emoticonDisplayPopUpCount++; if(this.dom['emoticonsContainerPopUp']) { this.updateDOM( 'emoticonsContainerPopUp', '<a href="javascript:ajaxChat.insertText(\'' + this.scriptLinkEncode(this.emoticonCodes[i]) + '\');"><img src="' + this.dirs['emoticons'] + this.emoticonFiles[i] + '" alt="' + this.emoticonCodes[i] + '" title="' + this.emoticonCodes[i] + '" height="' + 25 + '" width="' + 25 + '" style="padding: 10px"/></a>' ); } } }
},
#content #emoticonsContainerPopUp { position:absolute; left:450px; bottom:125px; padding:3px; z-index:1;}
emoticonFiles: new Array(
'Example1.png',
'Example2.jpg',
'Example3.gif'
); <<<<<<<<<<<<<< but ignore this bit i guess as nobody else had issues
// Defines the list of allowed emoticon codes:
emoticonCodes: new Array(
':)',
':(',
':help:'
),
// Defines the list of emoticon files associated with the emoticon codes:
emoticonFiles: new Array(
'smile.png',
'sad.png',
'help.png'
),
// Defines whether the associated emoticon will display (3 will only display outside popup, 2 will always display, 1 will display in the pop up, 0 is hidden):
emoticonDisplay: new Array(
1,
1,
2
),
initEmoticons: function() {
var emoticonDisplayPopUpCount=0;
for(var i=0; i<this.emoticonCodes.length; i++) {
// Replace specials characters in emoticon codes:
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
this.DOMbuffer = "";
if(this.emoticonDisplay[i] == 2 || this.emoticonDisplay[i] == 3){
if(this.dom['emoticonsContainer']) {
this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>'
);
}
}
this.DOMbuffer = ""; ** which achieves the image result above but still not 100% and doubling up on option 2 or 3, maybe I'm onto something here or maybe I've totally butchered the array creating this result ? what do you think mate >
just thought I would chime in as it never hurts to have another pair of eyes, so ive been messing around with the 123 thing and this is what ive found is working/not working for me:
if(this.dom['emoticonsContainerPopUp']) { this.updateDOM( 'emoticonsContainerPopUp',
'<a href="javascript:ajaxChat.insertText(\'' + this.scriptLinkEncode(this.emoticonCodes[i]) + '\');"><img src="' + this.dirs['emoticons'] + this.emoticonFiles[i] + '" alt="' + this.emoticonCodes[i] + '" title="' + this.emoticonCodes[i]
+ '" height="' + 25 + '" width="' + 25 + '" style="padding: 10px"/></a>' );
if(!(emoticonDisplayPopUpCount%5)){ this.updateDOM( 'emoticonsContainerPopUp', '<br clear="left">' ); }
initEmoticons: function() {
this.DOMbuffer = "";
for(var i=0; i<this.emoticonCodes.length; i++) {
// Replace specials characters in emoticon codes:
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
if(this.emoticonDisplay[i] == 2 || this.emoticonDisplay[i] == 3){
if(this.dom['emoticonsContainer']) {
this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>'
);
}
}
if((this.emoticonDisplay[i] == 1 || this.emoticonDisplay[i] == 2) && (this.emoticonDisplay[i] != 3)){
if(this.dom['emoticonsContainerPopUp']) {
this.updateDOM(
'emoticonsContainerPopUp',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '" height="'
+ 25
+ '" width="'
+ 25
+ '" style="padding: 10px"/></a>'
);
}
}
}
},
this.DOMbuffer = this.DOMbuffer
+ '<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>';
}
if(this.dom['emoticonsContainer']) {
this.updateDOM('emoticonsContainer', this.DOMbuffer);
}
this.DOMbuffer = "";
Got it - it was the dom buffer's fault,
I only know the code the way I do because it was a pain in my rear to get it working the first time, hence why i wrote it down for others haha.
That would require a little bit more work, but may I ask why you'd like this option?
insertBBCode: function(bbCode) { switch(bbCode) { case 'url': var url = prompt(this.lang['urlDialog'], 'http://'); if(url) this.insert('[url]' + url, '[/url]'); else this.dom['inputField'].focus(); break; default: this.insert('[' + bbCode + ']', '[/' + bbCode + ']'); } },
case 'img': var url = prompt(this.lang['imgDialog'], 'http://'); if(url) this.insert('[img]' + url, '[/img]'); else this.dom['inputField'].focus();break;
urlDialog: 'Please enter the address (URL) to the webpage:',
imgDialog: 'Please enter the address (URL) to the image:',
#content #chatList .bbCodeImage {
width:360px; <<<< your specifics
height:360px; <<<< your specifics
#content #emoticonsContainerPopUp a
I've just finished up a request to make an extra box with my container so that people with many emotes can separate them into two popup boxes. The steps are identical as the original post.
#content #emoticonsContainerPopUp2 {
position:absolute;
left:450px;
bottom:125px;
padding:3px;
z-index:1;
}
#content #emoticonsContainerPopUp2 a {
display:block;
float:left;
width:60px;
height:30px;
}
// The ID of the emoticons container:
emoticonsContainerPopUp2: 'emoticonsContainerPopUp2',
<input type="button" value="Images/gifs" onclick="ajaxChat.showHide('emoticonsContainerPopUp2', null);" />
<div id="emoticonsContainerPopUp2" style="display:none;" dir="ltr"></div>
if((this.emoticonDisplay[i] == 4)){
if(this.dom['emoticonsContainerPopUp2']) {
this.updateDOM(
'emoticonsContainerPopUp2',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '" height="'
+ 25
+ '" width="'
+ 25
+ '" style="padding: 10px"/></a>'
);
}
}
}
},
Well, since the HTML isn't the one handling the appearance of the boxes, it shouldn't be the one that we use to control the other boxes. The onclick preference calls the showHide function in chat.js, and that's where the box appearance is handled. Calling multiple instances of onclick that handles each box differently should allow us to make all boxes close while only leaving the one that we clicked open.
<input type="button" value="[LANG]bbCodeLabelColor[/LANG]" title="[LANG]bbCodeTitleColor[/LANG]" onclick="ajaxChat.showHide('emoticonsContainerPopUp', none);ajaxChat.showHide('emoticonsContainerPopUp2', none);ajaxChat.showHide('colorCodesContainer', null);"/>
<input type="button" value="Regular Smilies" onclick="ajaxChat.showHide('colorCodesContainer', none);ajaxChat.showHide('emoticonsContainerPopUp2', none);ajaxChat.showHide('emoticonsContainerPopUp', null);" />
<input type="button" value="Images/gifs" onclick="ajaxChat.showHide('colorCodesContainer', none);ajaxChat.showHide('emoticonsContainerPopUp', none);ajaxChat.showHide('emoticonsContainerPopUp2', null);" />
This will call the showHide function multiple times for each click, handling each box differently. The "none" parameter is set to tell the JS that we don't want the box to appear. So each time the button is pressed, there is an onclick call to all 3 buttons that turns the ones not clicked off, while opening the one that was clicked.
This will show you how to add a small box next to your BB codes that allows a popup box for storing more emoticons. I am doing this on a standalone version but it should work on all versions.Update: I have integrated this onto my PHPbb3 server and it is also working with no problems.Easy steps first: Put the emoticons in the correct folder for your chat to recognize (/img/emoticons), and make sure that config.js array's have been configured correctly with proper names and whatnot.
While you're in config.js, you're going to have to create another array which tells the chat where the images are placed. Your options are display under the text area, display in the popup, or display both. But first, we have to make sure we have the container declared for the emoticons to be placed in.
In Config.js.
Find:
// The ID of the emoticons container:
emoticonsContainer: 'emoticonsContainer',
Add After:
// The ID of the emoticons container:
emoticonsContainerPopUp: 'emoticonsContainerPopUp',
Find:
emoticonFiles: new Array(
'Example1.png',
'Example2.jpg',
'Example3.gif'
),
Add After:
// Defines whether the associated emoticon will display (3 will only display outside popup, 2 will always display, 1 will display in the pop up, 0 is hidden):
emoticonDisplay: new Array(
1,
2,
3
),Now we have to declare the array and allow the CSS to get data from it.
Open chat,js
Find:
this.emoticonFiles = config['emoticonFiles'];
Add After:
this.emoticonDisplay = config['emoticonDisplay'];
Find:
initEmoticons: function() {
this.DOMbuffer = "";
Add After:
var emoticonDisplayPopUpCount=0;
Find:
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
Add After:
if(this.emoticonDisplay[i] == 2 || this.emoticonDisplay[i] == 3){
if(this.dom['emoticonsContainer']) {
this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>'
);
}
}
if((this.emoticonDisplay[i] == 1 || this.emoticonDisplay[i] == 2) && (this.emoticonDisplay[i] != 3)){
emoticonDisplayPopUpCount++;
if(this.dom['emoticonsContainerPopUp']) {
this.updateDOM(
'emoticonsContainerPopUp',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '" height="'
+ 25
+ '" width="'
+ 25
+ '" style="padding: 10px"/></a>'
);
}
}
^^ What you can see being done here is that it's determining from the array that we set up, where the emoticons should be placed. Either in the container we're going to create, or the page, or nowhere. You can change the display size of the emotes from within here as well.
Find and Remove:
this.DOMbuffer = this.DOMbuffer
+ '<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>';
}
if(this.dom['emoticonsContainer']) {
this.updateDOM('emoticonsContainer', this.DOMbuffer);
}
this.DOMbuffer = "";
^^ This code is not needed as the code we entered in the step prior to this has already added the emoticons to their respectable places and therefore does not need to be called.
Now that everything is declared, we need a place to put all of it, and a button to activate the box we put the emoticons in.
Open Global.css
Find:
#content #colorCodesContainer {
position:absolute;
left:20px;
bottom:55px;
padding:3px;
z-index:1;
}
Add After:
#content #emoticonsContainerPopUp {
position:absolute;
left:450px;
bottom:125px;
padding:3px;
z-index:1;
}
Find:
#content #colorCodesContainer a {
display:block;
float:left;
width:20px;
height:20px;
}
Add After:
#content #emoticonsContainerPopUp a {
display:block;
float:left;
width:60px;
height:30px;
}
...
That creates the box for which we'll be adding the emoticons to in Chat.js. Now let's make that button!
Open LoggedIn.html
Find:
<div id="bbCodeContainer">
Add *At the last spot in before the </div>*:
<input type="button" value="More Smilies" onclick="ajaxChat.showHide('emoticonsContainerPopUp', null);" />
Find:
<div id="colorCodesContainer"<span style="c
initEmoticons: function() {
this.DOMbuffer = "";
for(var i=0; i<this.emoticonCodes.length; i++) {
// Replace specials characters in emoticon codes:
this.emoticonCodes[i] = this.encodeSpecialChars(this.emoticonCodes[i]);
if(this.emoticonDisplay[i] == 2 || this.emoticonDisplay[i] == 3){
if(this.dom['emoticonsContainer']) {
this.updateDOM(
'emoticonsContainer',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '"/></a>'
);
}
}
if((this.emoticonDisplay[i] == 1 || this.emoticonDisplay[i] == 2) && (this.emoticonDisplay[i] != 3)){
if(this.dom['emoticonsContainerPopUp']) {
this.updateDOM(
'emoticonsContainerPopUp',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '" height="'
+ 25
+ '" width="'
+ 25
+ '" style="padding: 10px"/></a>'
);
}
}
if((this.emoticonDisplay[i] == 4)){
if(this.dom['emoticonsContainerPopUp2']) {
this.updateDOM(
'emoticonsContainerPopUp2',
'<a href="javascript:ajaxChat.insertText(\''
+ this.scriptLinkEncode(this.emoticonCodes[i])
+ '\');"><img src="'
+ this.dirs['emoticons']
+ this.emoticonFiles[i]
+ '" alt="'
+ this.emoticonCodes[i]
+ '" title="'
+ this.emoticonCodes[i]
+ '" height="'
+ 25
+ '" width="'
+ 25
+ '" style="padding: 10px"/></a>'
);
}
}
}
},