GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




External Hyperlink

Click to view RSS...
Author In the html pages the External Hyperlink always becomes <a href='media/http..
Posted Sunday, September 23, 2018 - Post #38932
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
FamilyTrees.GenoPro.com
Important Contributors
Translator
GenoPro version: 3.0.1.4

Last Login: Yesterday @ 6:00 PM
Posts: 189, Visits: 2,679
I inserted an external link between the data of an individual:  (e.g.   https://gw.geneanet.org/roberto63?lang=it&p=pietro&n=adamo&oc=4 )

In the individual's html page, the link becomes so, and obviously does not work:
"External Hyperlik: <a href='media/https://gw.geneanet.org/roberto63?lang=it&p=pietro&n=adamo&oc=4' ......"

Why "media/"? As if it were a picture?
Or did I do something wrong?
I think this is a recent anomaly, because I had never noticed.
Regards

Vittorino Lepore 
"
Se non porti almeno una soluzione, anche tu fai parte del problema" or "If you don't bring at least a solution, even you're a part of the problem"
Posted Sunday, September 23, 2018 - Post #38935
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.4

Last Login: Yesterday @ 8:38 PM
Posts: 2,659, Visits: 19,338
The code hasn't changed in a long time, in fact not since the secure HTTPS protocol became more popular.  The script only checked for http: not https:

Use the attached genomap.svg script in Narrative Common\Code folder to correct this.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


genomap.svg (15 views, 89.98 KB)
Posted Sunday, September 23, 2018 - Post #38938
Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.3

Last Login: 2 hours ago
Posts: 1,461, Visits: 26,270
The easier way to link the files is to use the system built into GenoPro; I have just tried it and it worked.
Select an individual in the first file; open Properties; select the Hyperlink tab; browse to the new file.
This will create an internal (PC only) link which will open the other file centered on the same individual. If you open the properties here and open the Family tab you can copy the Permanent ID. Return to the first file, open the Hyperlink tab of properties and add to the external hyperlink the phrase ?id= followed by the Permanent ID (where I used copy/paste )
Apologies for being over detailed but this might help others.
Also I realise it does not address your problem of creating a link that works generally but this should be the sort of format you need
Posted Monday, September 24, 2018 - Post #38939
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
FamilyTrees.GenoPro.com
Important Contributors
Translator
GenoPro version: 3.0.1.4

Last Login: Yesterday @ 6:00 PM
Posts: 189, Visits: 2,679
thanks for the changes and for the answers Smile

Vittorino Lepore 
"
Se non porti almeno una soluzione, anche tu fai parte del problema" or "If you don't bring at least a solution, even you're a part of the problem"
Posted Monday, September 24, 2018 - Post #38941
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
FamilyTrees.GenoPro.com
Important Contributors
Translator
GenoPro version: 3.0.1.4

Last Login: Yesterday @ 6:00 PM
Posts: 189, Visits: 2,679
I tried the genomap.svg fix: the external link from the genomap SVG was changed. But the problem was not this.
Sorry if I had not explained the problem well.

The problem concerns the html page of every individual!
With some difficulty, I realized that the correction must be made in util.vbs to the line 984.
I tried this correction and it seems to me that it works:

line 984: If  strLink = "http:" or strLink = "https"  or  strLink = "file:" or  mid(Lcase(obj.Hyperlink.Target),1,7) = "mailto:" Then
strLink = obj.Hyperlink.Target
Else
                                ....................
Greetings

Vittorino Lepore 
"
Se non porti almeno una soluzione, anche tu fai parte del problema" or "If you don't bring at least a solution, even you're a part of the problem"


Edited: Monday, September 24, 2018 by vlepore
Posted Monday, September 24, 2018 - Post #38942
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.4

Last Login: Yesterday @ 8:38 PM
Posts: 2,659, Visits: 19,338
Yes I misread your original post and also had forgotten about any external hyperlink also appearing in the Additional Information section of the Individual's page and so I wrongly assumed you were referring to the GenoMap link. 

Thanks for the update and I have attached the amended Util.vbs here in case anyone else needs it before an update appears in a GenoPro update.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Util.vbs (22 views, 121.94 KB)

Edited: Thursday, September 27, 2018 by genome
Posted Tuesday, September 25, 2018 - Post #38945
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
FamilyTrees.GenoPro.com
Important Contributors
Translator
GenoPro version: 3.0.1.4

Last Login: Yesterday @ 6:00 PM
Posts: 189, Visits: 2,679
Thanks Ron.
I do not know why, but now Google maps also work without API key.
Greetings


Vittorino Lepore 
"
Se non porti almeno una soluzione, anche tu fai parte del problema" or "If you don't bring at least a solution, even you're a part of the problem"
Posted Tuesday, September 25, 2018 - Post #38947
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.4

Last Login: Yesterday @ 8:38 PM
Posts: 2,659, Visits: 19,338
Yes Google Maps API seems to work initially but then the grey overlay returns after about 5 to 10 map requests.  Angry Sad


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, September 26, 2018 - Post #38948
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.4

Last Login: Thursday, November 15, 2018
Posts: 184, Visits: 1,017
Thank you for including the code for Line 984.

For some reason, Windows Defender kept identifying the Util.vbs file as containing a Trojan when I attempted to download it.
Posted Thursday, September 27, 2018 - Post #38953
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.4

Last Login: Yesterday @ 8:38 PM
Posts: 2,659, Visits: 19,338
That is really strange.  I got exactly the same thing when I tried to download it.   I tried converting to a zip and uploaded that but on download Windows Defender blocked that too.

I even got the error when trying to re-save the file from my text editor.

So eventually I tried amending the script slightly by adding a comment line above line 984.

' check if external hyperlink
If  strLink = "http:" Or  strLink = "file:" Or mid(Lcase(obj.Hyperlink.Target),1,6) = "https:" Or            mid(Lcase(obj.Hyperlink.Target),1,7) = "mailto:" Then
strLink = obj.Hyperlink.Target

This time Windows Defender stayed silent and I was able to upload the (slightly) changed file.   I can only assume a checksum of the original file coincidentally matched that of a known virus.

Any way you should be able to download it now.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse