• 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

Live nicknames in chatlog

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
5 posts • Page 1 of 1

Postby DJ_XaKeP » Sat May 27, 2006 1:05 am

Now, if I click in userlist, there is "<NICK>, " in Input line.
Very comfortably if I can also click on nickname in chatlog frame to the same effect.
DJ_XaKeP
New member
 
Posts: 7
Joined: Mon May 22, 2006 5:00 pm
Top

Postby phpfreechat » Sat May 27, 2006 10:13 am

Right but this is not a priority for me, I'm first working on moderation.
It should be not very hard to implement this so feel free to submit a patch to do that.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Hap » Tue May 30, 2006 12:52 am

I made a quick hack to add onMouseClicks to the nicknames in the chat.

In your /themes/*Theme in use*/pfcclient.js.tpl.php file find:
If using an unmodified default theme it will start at line 511.
Code: Select all
   line += '<span ';
   if (nickcolor != '') line += 'style="color: ' + nickcolor + '" ';
   line += 'class="<?php echo $prefix; ?>nickmarker <?php echo $prefix; ?>nick_'+ hex_md5(nick) +'">';
   line += nick;

Change to:

Code: Select all
   line += '<span ';
   if (nickcolor != '') line += 'style="color: ' + nickcolor + '" ';
   line += 'onclick="pfc.insert_text('' + nick + '','')" '
   line += 'class="<?php echo $prefix; ?>nickmarker <?php echo $prefix; ?>nick_'+ hex_md5(nick) +'">';
   line += nick;
Last edited by Hap on Tue May 30, 2006 12:52 am, edited 1 time in total.
Hap
New member
 
Posts: 8
Joined: Tue May 30, 2006 12:09 am
Top

Postby phpfreechat » Tue May 30, 2006 10:19 am

Thank you Hap, it's now integrated in the source code.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby DJ_XaKeP » Tue May 30, 2006 3:40 pm

Thanks! Simply, but very usable patch! :)
DJ_XaKeP
New member
 
Posts: 7
Joined: Mon May 22, 2006 5:00 pm
Top


Topic locked
5 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

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