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

GenoPro Support Forum




Timestamp html pages

Click to view RSS...
Author Quick reference to indicate when information was last updated
Posted Thursday, September 2, 2010 - Post #26420
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Customers
FamilyTrees.GenoPro.com
GenoPro version: 2.5.4.1

Last Login: Tuesday, April 28, 2020
Posts: 7, Visits: 76
It would be great to be able to indicate when information on an individual/family/etc. was last updated.  Perhaps a little statement at the bottom of each html page like...

"This page was last updated on...."
Posted Thursday, September 2, 2010 - Post #26421
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Customers
GenoPro version: 2.5.3.9

Last Login: Monday, September 5, 2022
Posts: 27, Visits: 75
Totally agree with Lomax, it sure would be helpfull. Although as i got 11000 persons in my family i'm nog gonna check on just the ones i update. I just reload the whole of my genopages. So to me it would already be nice if the timestamp would be on the default page. Think that would be easier to realize for now, and maybe later they could see if it's possible to do this on all pages.

Bye Rioxiann
Posted Friday, September 3, 2010 - Post #26429
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.1.0.1

Last Login: 2 hours ago
Posts: 442, Visits: 7,617
Rioxiann (9/2/2010)
So to me it would already be nice if the timestamp would be on the default page.


Perhaps I have misunderstood your requirements, but there is a timestamp on the default page of the Narrative Report (at the bottom of the right-hand pane).
Posted Wednesday, September 8, 2010 - Post #26457
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

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

Last Login: Yesterday @ 8:09 PM
Posts: 3,419, Visits: 26,408
As I understand it, if you generate a report to the same location as a previous one, then GenoPro will only replace updated pages,leaving other pages unchanged. Note this will also leave pages related to deleted items in the report area (but unreferenced).

It is possible to report details of when each page was modified on the server using the 'last-modified' filed from the HTTP header sent by the server when a page is accessed . Of course this does not necessarily reflect on when the data in the .gno file was changed, other than it must have been earlier than the date the page changed.

I will add something in the next version of the Narrative Report. However that will not be ready for a 'few weeks' Hehe as it will have other goodies like Google Chrome support with improved SVG Pan/Zoom (á la Google Maps) and Google Maps API V3 

Here are the required changes for the date footnote if you want to try yourself:

Add a line after 947 in Utils.vbs
Sub WriteHtmlFramesetSafeguardK(s, k, o)
 Dim strHref, strName, strClass, strLink strHref = "toc_individuals.htm"
 If (Not Util.IsNothing(o)) Then
     Report.WriteLn StrDicExt("FmtHtmlLastModified", "", "<div Class='small aligncenter'><span>Page last modified </span><span  id='lastModified'></span></div>", "", "2.0.1.6 (>01.09.2010)")
 strClass = o.Class
a line in Dictionary.xml
<FmtHtmlHomeSkin ......................

   <FmtHtmlLastModified T="&lt;div Class='small aligncenter'&gt;&lt;span&gt;Page last modified &lt;/span&gt;&lt;span  id='lastModified'&gt;&lt;/span&gt;&lt;/div&gt;"/>
<!-- 0=name, 1=son/daughter, 2=father, 3=mother, 4=DoB, 5=PoB, 6=0 is female?, 7=possessive of 0, 8=possessive of 2, 9=possessive of 3
Test={0}=Mary|, {1}=daughter|, {2}=John|, {3}=Jane|, {4}=21 Oct 1946|, {5}= in Scotland|, {6}=Y| -->
<FmtMetaDescIndividual1 ................................
a line before line 41 in Code/script.js
mytop.location = 'default.htm?page=' + fileName;
}
showLastModified();
}
and finally add the showLastModified function at the end of Code/script.js
function showLastModified() {
    var out = document.getElementById('lastModified');
    if (out) {
        var d = new Date();
        if (d.toLocaleDateString) {
        out.innerHTML = d.toLocaleDateString(document.lastModified);
        }
        else {
        out.innerHTML = document.lastModified;
        }
    }
}

This will add a date to the foot of Individual & Family pages. To add it to every page move that initial Report.WriteLn staement up one line.

I would be really nice if GenoPro timestamped changes to the .gno file. Don't know if the collaboration module in Gamma does that?


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



Reading This Topic

Expand / Collapse
Active: 3 - 1 guest, 1 member, 0 anonymous.
Refresh