1
Cata75
Re: 3 dots
  • 2004/3/21 13:08

  • Cata75

  • Just popping in

  • Posts: 2

  • Since: 2004/3/21


I think it's a problem that the 3 dots are _always_ added - go to your users profile and save it a few times - your signature will then contain many dots. That's the problem behind it.

Edit: Ups, your message was not in reply to mine. Sorry :) Disregard mine ;)



2
Cata75
Re: 3 dots
  • 2004/3/21 12:25

  • Cata75

  • Just popping in

  • Posts: 2

  • Since: 2004/3/21


Here a very simple fix if you like to keep adding "..." if the string is too long, but don't want to add it all the time:

Edit include/functions.php and replace the function xoops_substr with this one.

function xoops_substr($str$start$length$trimmarker '...')
{
        if( 
strlen($str) <= $length ) {
                return 
$str;
        }
        else {
                if (
XOOPS_USE_MULTIBYTES == && function_exists('mb_internal_encoding') && @mb_internal_encoding(_CHARSET)) {
                        return 
mb_strimwidth($str$start$length$trimmarker_CHARSET); 
                }

                return 
substr($str$start$length strlen($trimmarker)).$trimmarker;        
        }
}




TopTop



Login

Who's Online

164 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 164


more...

Donat-O-Meter

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

Latest GitHub Commits