1
wcrwcr
3 dots
  • 2004/3/10 21:59

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi all

Why my signature has some misterious 3 dots (...) after It?
This little bug is making impossible to access the site on It.
Thanks

2
Veratil
Re: 3 dots
  • 2004/3/10 22:08

  • Veratil

  • Just popping in

  • Posts: 4

  • Since: 2004/3/2 1


It's the default string that XOOPS will add on to the end of your signiture. It annoyed me on my site for a long time until I found out it's a XOOPS function that does it.

3
wcrwcr
Re: 3 dots
  • 2004/3/10 22:12

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Wowwwwww

Do you think it will be corrected here?

4
EyeKeeper
Re: 3 dots
  • 2004/3/10 22:47

  • EyeKeeper

  • Quite a regular

  • Posts: 209

  • Since: 2002/6/11


one of our community members solved this problem.

you need to edit the file include/functions.php
there you search for the function called xoops_substr
you'll see this line there

Quote:

function xoops_substr($str, $start, $length, $trimmarker = '...')


change it to look like this one:

Quote:

function xoops_substr($str, $start, $length, $trimmarker = '')


so... that's it

5
Veratil
Re: 3 dots
  • 2004/3/10 22:47

  • Veratil

  • Just popping in

  • Posts: 4

  • Since: 2004/3/2 1


Um.. I'd just have to say ask one of the webmasters.

6
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;        
        }
}

7
Mithrandir
Re: 3 dots

wcrwcr - is it a problem here on xoops.org, you feel? If so, then it's your signature being too long, so cut it down a bit.

The problem, I have met is that it doesn't stop at the signature, but adds ... to the "Extra info" field

8
Dave_L
Re: 3 dots
  • 2004/3/21 12:46

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7



9
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 ;)

10
studioC
Re: 3 dots
  • 2004/3/21 13:57

  • studioC

  • Friend of XOOPS

  • Posts: 922

  • Since: 2003/12/7


@wcrwcr ...no solution, just to make your link in signature klickable.... add one or two
's after the link..

michael

Login

Who's Online

662 user(s) are online (47 user(s) are browsing Support Forums)


Members: 0


Guests: 662


more...

Donat-O-Meter

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

Latest GitHub Commits