PDA

View Full Version : shortening long links...


Solice
07-24-2003, 02:52 PM
I was wondering if anyone could tell me how to have links past a certain # of characters be shrunk down in size to prevent this:

~please see attachment~

I've seen it on forums before... where the link ends up looking like this www.longasslink...blabla
thanks in advance for any help given ^^

Gary King
07-24-2003, 06:51 PM
If you're talking about vBulletin's function, here is what it looks like:

function dowordwrap($text) {
global $wordwrap;

if ($wordwrap!=0 and $text!="") {
return preg_replace("/([^\n\r ?&\.\/<>\"\\-]{".$wordwrap."})/i"," \\1\n",$text);
}

}


Where $wordwrap is the number of letters before wrapping, and $text is the text to wrap.

Solice
07-25-2003, 09:49 PM
Ok, I saw what your saying and it actually does it in the threads automatically... but what I really want to change is the way it displays them on the whos online... is there a way to do that or to make it so that the whos online can identify the articles section or others like it?

Gary King
07-26-2003, 01:53 AM
What in tarnation are you talking about? (Just had to say it :p)

Solice
07-29-2003, 01:56 AM
click on the attachment in the first post... see how the forums are stretched out by that link?

I want to keep that from happening...

Gary King
07-29-2003, 02:32 AM
You mean the Unknown Location part? Only administrators see that anyways, so your members won't see that, they'll only see SoliceNet Main Index