• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

stop smiley from loading

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby nishil » Fri Oct 20, 2006 10:20 am

Is there a way to stop the smiley from loading again and again.
Or
can i disable smiley totally.

Smiley slows the performance of the chat.
Last edited by nishil on Fri Oct 20, 2006 10:22 am, edited 1 time in total.
nishil
Member
 
Posts: 28
Joined: Thu Sep 14, 2006 2:47 am
Top

Postby roschler » Tue Oct 24, 2006 7:13 pm

nishil,

Look in ./src/client/pfcgui.js

Find the loadSmileyBox function and and edit it like this, adding a single "return;" statement as the first line of the function:

loadSmileyBox: function()
{
// Return immediately to avoid loading smileys.
return;
// Leave everything else alone.

That should do it.
roschler
Member
 
Posts: 23
Joined: Thu Oct 19, 2006 6:44 pm
Top

Postby nishil » Wed Oct 25, 2006 6:51 am

Thanks roschler,

I will give it a try and let u know how it goes.
nishil
Member
 
Posts: 28
Joined: Thu Sep 14, 2006 2:47 am
Top

Postby nishil » Fri Oct 27, 2006 6:47 am

Smiley Still loads and slow the chat Performance.

Below is the codes from
.srcclientpfcgui.js



loadSmileyBox: function()
{
return;
var container = $('pfc_smileys');
var smileys = pfc.res.getSmileyReverseHash();//getSmileyHash();
var sl = smileys.keys();
for(var i = 0; i < sl.length; i++)
{
s_url = sl[i];
s_symbol = smileys[sl[i]];

var img = document.createElement('img');
img.setAttribute('src', s_url);
img.setAttribute('alt', s_symbol);
img.setAttribute('title', s_symbol);
img.s_symbol = s_symbol.unescapeHTML();
img.onclick = function(){ pfc.insertSmiley(this.s_symbol); }
container.appendChild(img);
}
nishil
Member
 
Posts: 28
Joined: Thu Sep 14, 2006 2:47 am
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 27 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub