You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2016-10-06 15:29:46

javier.sansaloni
Member
Registered: 2013-10-17
Posts: 34

Problem with external links (more text)

Hello, thank you for your time,

I have a problem in the visualization of external links.

I would like to put inside each computer an external link to open my vnc application.

I can open vnc and it's ok but each computer have all the configuration and it is difficult to see more than 2 computers.

It's possible to explain if there are a way for not see all the text in each computer?

For example I would wanna see this only,
    VNC Link #1: [Connection] Host=192.168.0.243

I see this now, in each computer
    VNC Link #1: [Connection] Host=192.168.0.243 port=5900 proxyhost= proxyport=16832 [options] use_encoding_0=1 use_encoding_1=1 use_encoding_2=1 use_encoding_3=0 use_encoding_4=1 use_encoding_5=1 use_encoding_6=1 use_encoding_7=1 use_encoding_8=1 use_encoding_9=1 use_encoding_10=1 use_encoding_11=0 use_encoding_12=0 use_encoding_13=0 use_encoding_14=0 use_encoding_15=0 use_encoding_16=1 use_encoding_17=1 preferred_encoding=16 restricted=0 viewonly=0 nostatus=0 nohotkeys=0 showtoolbar=1 AutoScaling=0 fullscreen=0 directx=0 autoDetect=0 8bit=1 shared=1 swapmouse=0 belldeiconify=0 emulate3=1 JapKeyboard=0 emulate3timeout=100 emulate3fuzz=4 disableclipboard=0 localcursor=1 Scaling=0 scale_num=100 scale_den=100 cursorshape=1 noremotecursor=0 compresslevel=6 quality=6 ServerScale=1 Reconnect=0 EnableCache=0 QuickOption=3 UseDSMPlugin=0 UseProxy=0 sponsor=0 selectedscreen=1 DSMPlugin=NoPlugin AutoReconnect=3 ExitCheck=0 FileTransferTimeout=30 KeepAliveInterval=5 SocketKeepAliveTimeout=10000 ThrottleMouse=0 AutoAcceptIncoming=0 AutoAcceptNoDSM=0 RequireEncryption=0 PreemptiveUpdates=0


thank you very much for your attention.

Offline

#2 2016-10-06 16:25:06

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Problem with external links (more text)

Pour moi il faut définir un lien externe applicable à l'object Ordinateur
lien du style http://[IP]:5900 ou http://[NAME].[DOMAIN]:5900.


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2016-10-06 19:55:46

javier.sansaloni
Member
Registered: 2013-10-17
Posts: 34

Re: Problem with external links (more text)

I don't have installed in my client machines, RVNC. I have installed UltraVNC and it does not have Web service.

I need to execute a file extension .vnc and I can execute, the problem is that the line is very large.

Thank you very much for your attention

Offline

#4 2016-10-06 20:26:42

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Problem with external links (more text)

Have you try the external link like i said?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#5 2016-10-07 08:32:04

javier.sansaloni
Member
Registered: 2013-10-17
Posts: 34

Re: Problem with external links (more text)

I have found a solution and it works for me.

I think  that in future versions, we could have an option to see the value of the link or not.

I show you the difference between to see value or not in the link.

Before
before.jpg

After
after.jpg
I have modified the core file link.class.php

Line 532:

    } else {
         // Generate files
         $files = $item->generateLinkContents($params['link'], $item);
         $links = $item->generateLinkContents($params['data'], $item);
         $i     = 1;
         foreach ($links as $key => $val) {
            $name = (isset($names[$key]) ? $names[$key] : reset($names));
            if (isset($files[$key])) {
               // a different name for each file, ex name = foo-[IP].txt
               $file = $files[$key];
            } else {
               // same name for all files, ex name = foo.txt
               $file = reset($files);
            }
            $url             = $CFG_GLPI["root_doc"]."/front/link.send.php?lID=".$params['id'].
                                 "&itemtype=".$item->getType().
                                 "&id=".$item->getID()."&rank=$key";
            $newlink         = "<a href='$url' target='_blank'>";
            $linkname        = sprintf(__('%1$s #%2$s'), $name, $i);
/************************* MODIFIED LINE ****************************************/
            $newlink        .= sprintf(__('%1$s: %2$s'), $linkname," ");// $val);
/************************* MODIFIED LINE ****************************************/
            $newlink        .= "</a>";
            $computedlinks[] = $newlink;
            $i++;
         }
      }

      return $computedlinks;
   }

Will you put this feature in the next versions?

Thank you very much for your attention,

Offline

Board footer

Powered by FluxBB