1
marcan
2.0.6 Automaticaly adds "..." in signature
  • 2004/2/11 21:36

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


If I edit my account, what ever I write in the Signature box or in the Extra Info, 3 little points are automatically added at then end.

Why?

2
brunelle
Re: 2.0.6 Automaticaly adds "..." in signature
  • 2004/2/11 23:28

  • brunelle

  • Just popping in

  • Posts: 3

  • Since: 2004/2/2 1


I'm having the same problem. Also confirmed that this is happening on this site, so others are bound to notice and get a little pissed. Other problems I've had seem to be caused by my particular host/server setup; xoops.org was always a pretty good example of a properly-functioning setup. The good news seems to be that editing other text fields doesn't seem to cause the same problem, so it's probably in or referred to by something in edituser.php. I'll do some digging and post again if I find anything...

/probably not 1337 enough to actually fix this...

3
marcan
Re: 2.0.6 Automaticaly adds "..." in signature
  • 2004/2/12 16:49

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


A precision : The little "..." are added to those textbox evreytime a user hits the Save Change in edituser.php. So the first time, it is "...", the second time, it's "......" etc...

Anoying...

4
marcan
Re: 2.0.6 Automaticaly adds "..." in signature [solved]
  • 2004/2/12 20:46

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


I've found the cause. Since I'm not a coder I don't understand why... but however...

In 2.0.6, only 2 lines of codes have changed in edituser.php. Those 2 lines concern the fields (oh, what a coincidence ! ) user_sig, and bio. So I've put back the original lines of 2.5.0.2 and everything works fine now, I don't get thos anoying "...".

Here is what to do :

In edituser.php, at the line 95 change
$edituser->setVar('user_sig'xoops_substr($user_sig0255));

To :
$edituser->setVar('user_sig'$user_sig);


In line 111, change :
$edituser->setVar('bio'xoops_substr($bio0255));

To :
$edituser->setVar('bio'$bio);


That's it


5
Dave_L
Re: 2.0.6 Automaticaly adds "..." in signature [solved]
  • 2004/2/12 22:21

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


The function xoops_substr in include/functions.php incorrectly appends "..." all the time, even if the string was not truncated.

I was going to post a fix, but I'm not sure how to handle the case where the starting position is greater than zero. Also, I'm not familiar with the multibyte functions.

6
brunelle
Re: 2.0.6 Automaticaly adds "..." in signature [solved]
  • 2004/2/13 2:27

  • brunelle

  • Just popping in

  • Posts: 3

  • Since: 2004/2/2 1


thanks for the fix, marcan!

Login

Who's Online

275 user(s) are online (190 user(s) are browsing Support Forums)


Members: 0


Guests: 275


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits