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

some ideas...

This forum is now locked as we will no longer be developing the v1.x branch

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

Topic locked
2 posts • Page 1 of 1

Postby komaetil » Fri Nov 03, 2006 10:27 am

working with the avatar metadata¡¡ fantastic idea¡¡

I did this in customize.js (at the theme dir), for people who doesn´t have avatar:
// append the avatar image
if (pfc.getUserMeta(nickid,'avatar') != "")
{

For prevent a box empty...

And the ideas are:
it´s possible to add a link at the img? i tried with img.setAttribute('href'... but doesn´t work..
Tried with img.onclick... again doesn´t work..

The idea, is clicking on the image, jump to the chatter´s profile...

An the other idea is, to load the avatar image, in the privatte messages, looking like messenger...


Thanks a lot for this great script¡¡¡

Karlos from www.felupus.org
Helping people who suffer from lupus.
komaetil
Member
 
Posts: 11
Joined: Fri Nov 03, 2006 10:22 am
Top

Postby phpfreechat » Mon Nov 13, 2006 3:32 pm

Try to replace :
Code: Select all
    // append the avatar image
    var img = document.createElement('img');
    img.setAttribute('src',this.getUserMeta(nickid,'avatar'));
    img.setAttribute('class',     'pfc_nickwhois_avatar');
    img.setAttribute('className', 'pfc_nickwhois_avatar'); // for IE6
    div.appendChild(img);

by :
Code: Select all
    // append the avatar image
    var a = document.createElement('a');
    a.setAttribute('href','http://google.fr');
    var img = document.createElement('img');
    img.setAttribute('src',this.getUserMeta(nickid,'avatar'));
    img.setAttribute('class',     'pfc_nickwhois_avatar');
    img.setAttribute('className', 'pfc_nickwhois_avatar'); // for IE6
    a.appendChild(img);
    div.appendChild(a);

in your customize.js file
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Topic locked
2 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 4 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