This topic is locked
[SOLVED]

 how can I limit a displayed link to 20 characters?

7/24/2018 7:26:34 AM
PHPRunner General questions
P
Pamibo author

Hello,

i'm working with phprunner 9.7.

How can I display a working http: link without it being completely visible.

Links are often very long and I would like to limit it to 20 characters but it should work

admin 7/24/2018

Set 'View as' type of this URL field to Custom and use the following code:

$value = "<a href='".$value."'>".substr($value, 0, 20)."</a>";
P
Pamibo author 7/26/2018



Set 'View as' type of this URL field to Custom and use the following code:

$value = "<a href='".$value."'>".substr($value, 0, 20)."</a>";



It works

Thank You

P
Pamibo author 7/26/2018



Set 'View as' type of this URL field to Custom and use the following code:

$value = "<a href='".$value."'>".substr($value, 0, 20)."</a>";



oncemore me.

What would I have to enter so that the link starts in a new window?
Sorry it works fine. I didn't think at mouse right klick <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=85493&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />

S
stiven 7/26/2018
$value = "<a href='".$value."' target='_blank'>".substr($value, 0, 20)."</a>";