• 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

[FIX] Long texts and Color doesn\'t work

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

Post a reply
3 posts • Page 1 of 1

Postby Kachel » Sat Apr 08, 2006 10:23 am

Hello,

I read in the Changes-Log that the following bug was fixed:

Bug fix: If you write something that is as long as your set maximum message length, the color code is shown in chat not the actual chosen text color it self.

This is the output when entering a long text, tested in the Demo on this site:

Code: Select all
[color=#FF00FF] 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789
 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789
 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789
0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 01 [/color

Greetings Kachel
Kachel
Member
 
Posts: 11
Joined: Wed Apr 05, 2006 8:24 pm
Location: Berlin (Germany)
  • Website
Top

Postby phpfreechat » Sat Apr 08, 2006 11:52 am

Thank you this is now fixed in svn, here is the patch:

Code: Select all
Modified: trunk/themes/default/templates/chat.html.tpl.php
==============================================================================
--- trunk/themes/default/templates/chat.html.tpl.php (original)
+++ trunk/themes/default/templates/chat.html.tpl.php Sat Apr  8 12:50:12 2006
@@ -18,7 +18,7 @@
  </div>

  <div id="<?php echo $prefix; ?>input_container">
-    <input id="<?php echo $prefix; ?>words" type="text" title="<?php echo _pfc("Enter your message here"); ?>" maxlength="<?php echo $max_text_len-24; ?>" />
+    <input id="<?php echo $prefix; ?>words" type="text" title="<?php echo _pfc("Enter your message here"); ?>" maxlength="<?php echo $max_text_len-25; ?>" />
    <div id="<?php echo $prefix; ?>cmd_container">
      <a href="http://www.phpfreechat.net" id="<?php echo $prefix; ?>logo"<?php if($openlinknewwindow) echo ' target="_blank"'; ?>><img src="http://www.phpfreechat.net/pub/logo_80x15.gif" alt="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>" title="<?php echo _pfc("PHP FREE CHAT [powered by phpFreeChat-%s]", $version); ?>" /></a>
      <input id="<?php echo $prefix; ?>handle" type="button" title="<?php echo _pfc("Enter your nickname here"); ?>" maxlength="<?php echo $max_nick_len; ?>" value="<?php echo $nick; ?>" onclick="if (!pfc.isconnected) return false; pfc.el_words.focus(); pfc.handleRequest('/asknick');" />
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Kachel » Sat Apr 08, 2006 5:46 pm

Thanks a lot :)
Kachel
Member
 
Posts: 11
Joined: Wed Apr 05, 2006 8:24 pm
Location: Berlin (Germany)
  • Website
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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