By boydgray26 - Friday, February 23, 2007
|
Hi Folks, I'm back to torture you. I want to be able to add the wee programme "Statcounter" to my GP website so that I can see who is visiting my site. It actually gives the IP addresses and a world map of where they live. I have opened the index.html file in my Customised English Narrative Skin using Nopepad and inserted the code, as instructed from the Statcounter site, after <body>. Seemed easy enough even for a dweeb like me. But, no sign of my wee counter on my website, or the Statcounter icon. And nothing on the webcounter site either. In a much simpler genealogy hosting site, I was able to embed it just by copying the code onto the equivelant of "Document" on Generate Report. I tried that too but with no success. Please keep instuctions veeeeeeeeeeeeeery simple. Thanks, Boyd
|
By boydgray26 - Friday, February 23, 2007
|
Sorry - I intended adding this to my previous thread on this topic but wrote in the wrong window. Can they be amalgamated?
|
By maru-san - Friday, February 23, 2007
|
A) Just one idea, others may have others: 1) change line 36 in home.htm from
@[ Report.WriteText doc.Description ]@ to
@[ Report.Write doc.Description ]@
2) put your counter code into the Description field (under Generate Report > Document tab) B) If you have the present introduction already there, I suggest you use an iframe and a separate htm file (like intro.htm or mycomments.htm) and show this content within the iframe (codes for this can be found on the internet). By doing so you do not have to scroll down the home.htm page to see most popular names and places. The counter code was pasted into toc_individual.htm after line 29.A sample of idea B) is shown here:
|
By Poolzone - Friday, February 23, 2007
|
Hi Boyd, I keep it in the "home.htm" file. Just go to the bottom of the file and before the <body> (second last line) insert the script that they supplied. It should look something like this. <!-- Start of StatCounter Code --> <script type="text/javascript"> <!-- var sc_project=2094875; var sc_invisible=1; var sc_partition=19; var sc_security="11cc1bba"; //--> </script>
<script type="text/javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><div class="statcounter"><a class="statcounter" href="http://www.statcounter.com/"><img class="statcounter" src="http://c20.statcounter.com/counter.php?sc_project=2094875&java=0&security=11cc1bba&invisible=1" alt="javascript hit counter" /></a></div></noscript> <!-- End of StatCounter Code --> </body> </html>
Cheers
|
By boydgray26 - Saturday, February 24, 2007
|
Nope, didn't work. I am supposed to see it on the Home page, am I not - sort of down the bottom of the main pane? I thought it might have something to do with my Stacounter code which has a bit extra after the End of Stacounter Code bit: <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=2094805; var sc_invisible=0; var sc_partition=19; var sc_security="ac80c3cd"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c20.statcounter.com/counter.php?sc_project=2094805&java=0&security=ac80c3cd&invisible=0" alt="best tracker" border="0"></a> </noscript> <!-- End of StatCounter Code --><br><a href="http://my.statcounter.com/project/standard/stats.php?project_id=2094805&guest=1">View My Stats</a> So, I deleted the extra bit from my home.htm file but it still didn't work. One other thing, can I be sure I am putting the code into the right place by clicking on "Edit skin" button on the "Generate Report" window and opening the Customised English Narrative Report folder which pops up (after I click OK on a warning that tells me I have to "...rename the folder to a different name...")? I know you guys would sort this in seconds if you were here! Boyd
|
By boydgray26 - Saturday, February 24, 2007
|
Still not working. Becuase of the doubt about the code which I mentioned last time, I asked Statcounter to redo the code and this time it DID end at <!-- End of StatCounter Code -->: <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=2094805; var sc_invisible=0; var sc_partition=19; var sc_security="ac80c3cd"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c20.statcounter.com/counter.php?sc_project=2094805&java=0&security=ac80c3cd&invisible=0" alt="free web page hit counter" border="0"></a> </noscript> <!-- End of StatCounter Code --> I notice that Stacounter suggests placing it in the Index page: "Using windows notepad, macintosh simpletext or any other simple text editor, open the file for the web page on which you want to install the counter (most likely, index.htm or index.html)" but I have already tried this and it didn't work. In fact the old code is still in there. I have just replaced it with the new one and tried again - still no go. One other thing Stacounter says is: "If you are using frames: When inserting the code, do not insert it on the page that contains the frameset tags. The code must go in the main content pages of your site." Is that of any relevance?
|
By Poolzone - Saturday, February 24, 2007
|
Hi Boyd, My code will not 'show' the counter as I have chosen not to. It is possible that you also have selected the option of making the label invisible. Check your setup and installation criteria in Statcounter. It will work fine without the counter being visible. Genopro uses the Index file differently than Statcounter expects. We ususally access the 'Default' page rather than the 'index' page, and so the statcounter would not get loaded. You will need to remove the entry from the 'Index' file for the entry on the 'home' page to be sure it will work. I find using the 'home' page to be successful, and provides most information on hits. If you install it on the 'home' page as I suggest, it WILL work. Mine does.
|
By boydgray26 - Sunday, February 25, 2007
|
Fraid not - I have done exactly as you said (well, I THINK I have done it exactly as you said) and still no luck. Could (and would) you check my website and make sure it's not there? Below is the entire code from my home.htm file - you can see where I have inserted the code as you suggested. <%[@ IncludeFile "Code/Util.vbs" ]%> <%[ Set doc = ReportGenerator.Document Set oStringDictionaryNames = Session("oStringDictionaryNames") strTitle = Session("Title") InitGlobalVariables ]%><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Language" content="en"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>@[ Report.WriteText strTitle ]@ - Report Summary</title> <meta name="description" content="@[WriteMetaDescriptionReport]@" /> <meta name="keywords" content="@[WriteMetaKeywordsReport]@" /> <link rel="stylesheet" href="style.css" type="text/css"/> <script src="script.js" type="text/javascript"></script> </head> <body onload="document.getElementById('divEnableScripting').style.display='none'; top.document.title='@[Report.Write Util.JavaScriptEncode(strTitle)]@'; if (self == parent) document.getElementById('divFrameset').style.display='block';"> <p>@[ Report.WriteFormattedLn Dic("FmtHtmlHomeIntro"), strTitle, Individuals.Count, Families.Count ]@ <%[ strFamilyTreeGno = ReportGenerator.ExtraFiles("FamilyTree.gno") If (strFamilyTreeGno <> "") Then Report.WriteFormattedBr Dic("FmtHtmlHomeBrowser"), strFamilyTreeGno, Dic.FormatString("FmtAltViewGnoFile", Util.HtmlEncode(strTitle)) End If ]%> </p><p>@[ Report.WriteText doc.Description ]@</p> <br/> <%[ iNameLast = oStringDictionaryNames.Count - 1 If (iNameLast > 19) Then iNameLast = 19 ' Keep only the first 20 families End If strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' target='toc'>{0&t}</a> <small>({})</small>" If g_fUseTreeIndexes Then strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' onclick='explorerTreeOpenTo(parent.parent.toc, ""names"",""{0&j}"", 0, 1, ""2"");' target='toc'>{0&t}</a> <small>({})</small>" cPlaces = Places.Count ]%> <a name='MostPopular'></a> <hr/> <table class='table1'><tr><td@[Report.Write Util.IfElse(cPlaces > 0," width='49%'","")]@> <h2>@[ Report.WriteTextDic "HomeMostPopularFamilyNames" ]@</h2> <%[ strSep="" For iName = 0 To iNameLast Report.WriteFormatted strSep & strFmtTemplate, oStringDictionaryNames.Key(iName), oStringDictionaryNames.KeyCounter(iName) strSep = ", " Next If g_fUseTreeIndexes Then Report.WriteBr Report.TagBr Report.WriteFormattedLn "<a href='toc_names.htm' target='popup' onclick='showPopUpFrame(""40%"");'><img src='images/toc_names.jpg' align='bottom' alt=''/> {}</a>", Dic("TocAZSurnameIndex") End If If cPLaces > 0 Then Report.WriteFormattedLn "</td><td width='2%'></td><td><h2>{}</h2>", Dic("TocIndexPlacesPopular") Places.SortBy("-Dependents.Count") ' Sort by most popular place iLast = Places.Count - 1 If iLast > 19 Then iLast = 19 strSep="" For i = 0 to iLast Set p = Places(i) Report.WriteFormatted strSep & "<a href='place-{0}.htm' onclick='showPopUpFrame("""");' title='{1&t}' target='popup'>{2&t}</a> <small> ({3})</small>", p.id, p.Category, p, p.Dependents.Count strSep = ", " Next End If ]%> </td></tr></table> <br/> <div id="divEnableScripting"><hr/> <table width="80%" cellpadding="10"> <tr> <td bgcolor="#FFFF00">@[Report.Write Dic("FmtHtmlHomeScripts")]@</td> </tr> </table><br/></div><hr/> <p align="center"><small>@[Report.WriteFormatted Dic("FmtHtmlHomeSkin"), ReportGenerator.SoftwareVersion, FormatDateTime(Date(),1), Util.IfElse(ReportGenerator.PathSkin, "", "custom "), ReportGenerator.SkinName, ReportGenerator.SkinVersion ]@.<br/><br/> </small></p><div class="floatleft"> <a href="http://validator.w3.org/about.html "target="_blank"><img src="images/valid-xhtml10.png" alt="Valid XHTML 1.0 Transitional" title="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </div> <p align="center"><a target="_blank" href="http://www.genopro.com/"><img src="images/genopro.logo.gif" alt="@[Report.Write Dic("AltGenoProLogo")]@" title="@[Report.Write Dic("AltGenoProLogo")]@" border="0" width="36" height="36"/></a></p> <%[WriteHtmlFramesetSafeguard(oStringDictionaryNames.Count)]%> <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=2094805; var sc_invisible=0; var sc_partition=19; var sc_security="ac80c3cd"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c20.statcounter.com/counter.php?sc_project=2094805&java=0&security=ac80c3cd&invisible=0" alt="free web page hit counter" border="0"></a> </noscript> <!-- End of StatCounter Code --> </body> </html> Thanks for your help anyway. I guess I will just have to give up. Boyd
|
By boydgray26 - Sunday, February 25, 2007
|
Sheepish grin.............. It IS working. There are stats at Stacounter. I have had five visitors. But honestly - I definitely did NOT clcik invisible and have checked - I chose the counter rather than the Statcounter icon - and it is just not there on any of my pages. Anyway, that's down to me and Statcounter. Thank you once again for all your help....................... Nowwwwwwwwww - how do I make my email addy into a hyperlink like everyone else?
|
By Poolzone - Sunday, February 25, 2007
|
Ok Boyd, you now need to edit the 'home.htm' file again and insert the following line ONLY THE THIRD LINE, you will find the others exist about half way down the file. Please do not use my email address, or you'll get that sheepish grin again. ]%> </p><p>@[ Report.WriteText doc.Description ]@</p> <p><a href="mailto:poolzone@optusnet.com.au">Contact the Writer at mailto:poolzone@optusnet.com.au</a></p> <br/> <%[
|
By boydgray26 - Sunday, February 25, 2007
|
I think I'm a bit of a slow learner. Does not seem, on the face of it, at least initially, as far as I can see, and with any other qualification I can think of, to have worked. Again, I THINK I have done what you sais, copying and pasting your third line into the correct space and then changing your email address for mine in both places - and no hyperlink at my email address on the Home Page. This is what my home.htm file looks like now: <%[@ IncludeFile "Code/Util.vbs" ]%> <%[ Set doc = ReportGenerator.Document Set oStringDictionaryNames = Session("oStringDictionaryNames") strTitle = Session("Title") InitGlobalVariables ]%><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Language" content="en"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>@[ Report.WriteText strTitle ]@ - Report Summary</title> <meta name="description" content="@[WriteMetaDescriptionReport]@" /> <meta name="keywords" content="@[WriteMetaKeywordsReport]@" /> <link rel="stylesheet" href="style.css" type="text/css"/> <script src="script.js" type="text/javascript"></script> </head> <body onload="document.getElementById('divEnableScripting').style.display='none'; top.document.title='@[Report.Write Util.JavaScriptEncode(strTitle)]@'; if (self == parent) document.getElementById('divFrameset').style.display='block';"> <p>@[ Report.WriteFormattedLn Dic("FmtHtmlHomeIntro"), strTitle, Individuals.Count, Families.Count ]@ <%[ strFamilyTreeGno = ReportGenerator.ExtraFiles("FamilyTree.gno") If (strFamilyTreeGno <> "") Then Report.WriteFormattedBr Dic("FmtHtmlHomeBrowser"), strFamilyTreeGno, Dic.FormatString("FmtAltViewGnoFile", Util.HtmlEncode(strTitle)) End If ]%> </p><p>@[ Report.WriteText doc.Description ]@</p> <p><a href="mailto:boydgray26@utvinternet.com">Contact the Writer at mailto:boydgray26@utvinternet.com</a></p> <br/> <%[ iNameLast = oStringDictionaryNames.Count - 1 If (iNameLast > 19) Then iNameLast = 19 ' Keep only the first 20 families End If strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' target='toc'>{0&t}</a> <small>({})</small>" If g_fUseTreeIndexes Then strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' onclick='explorerTreeOpenTo(parent.parent.toc, ""names"",""{0&j}"", 0, 1, ""2"");' target='toc'>{0&t}</a> <small>({})</small>" cPlaces = Places.Count ]%> <a name='MostPopular'></a> <hr/> <table class='table1'><tr><td@[Report.Write Util.IfElse(cPlaces > 0," width='49%'","")]@> <h2>@[ Report.WriteTextDic "HomeMostPopularFamilyNames" ]@</h2> <%[ strSep="" For iName = 0 To iNameLast Report.WriteFormatted strSep & strFmtTemplate, oStringDictionaryNames.Key(iName), oStringDictionaryNames.KeyCounter(iName) strSep = ", " Next If g_fUseTreeIndexes Then Report.WriteBr Report.TagBr Report.WriteFormattedLn "<a href='toc_names.htm' target='popup' onclick='showPopUpFrame(""40%"");'><img src='images/toc_names.jpg' align='bottom' alt=''/> {}</a>", Dic("TocAZSurnameIndex") End If If cPLaces > 0 Then Report.WriteFormattedLn "</td><td width='2%'></td><td><h2>{}</h2>", Dic("TocIndexPlacesPopular") Places.SortBy("-Dependents.Count") ' Sort by most popular place iLast = Places.Count - 1 If iLast > 19 Then iLast = 19 strSep="" For i = 0 to iLast Set p = Places(i) Report.WriteFormatted strSep & "<a href='place-{0}.htm' onclick='showPopUpFrame("""");' title='{1&t}' target='popup'>{2&t}</a> <small> ({3})</small>", p.id, p.Category, p, p.Dependents.Count strSep = ", " Next End If ]%> </td></tr></table> <br/> <div id="divEnableScripting"><hr/> <table width="80%" cellpadding="10"> <tr> <td bgcolor="#FFFF00">@[Report.Write Dic("FmtHtmlHomeScripts")]@</td> </tr> </table><br/></div><hr/> <p align="center"><small>@[Report.WriteFormatted Dic("FmtHtmlHomeSkin"), ReportGenerator.SoftwareVersion, FormatDateTime(Date(),1), Util.IfElse(ReportGenerator.PathSkin, "", "custom "), ReportGenerator.SkinName, ReportGenerator.SkinVersion ]@.<br/><br/> </small></p><div class="floatleft"> <a href="http://validator.w3.org/about.html "target="_blank"><img src="images/valid-xhtml10.png" alt="Valid XHTML 1.0 Transitional" title="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </div> <p align="center"><a target="_blank" href="http://www.genopro.com/"><img src="images/genopro.logo.gif" alt="@[Report.Write Dic("AltGenoProLogo")]@" title="@[Report.Write Dic("AltGenoProLogo")]@" border="0" width="36" height="36"/></a></p> <%[WriteHtmlFramesetSafeguard(oStringDictionaryNames.Count)]%> <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=2094805; var sc_invisible=0; var sc_partition=19; var sc_security="ac80c3cd"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c20.statcounter.com/counter.php?sc_project=2094805&java=0&security=ac80c3cd&invisible=0" alt="free web page hit counter" border="0"></a> </noscript> <!-- End of StatCounter Code --> </body> </html>
How does that look?
|
By Poolzone - Sunday, February 25, 2007
|
Remove the words "Contact the Writer at " and see how that effects it. As you can see, the hyperlink in your example is split, something in the way it was edited I think. Just by double clicking on the 'home.htm' file should show a working hyperlink once the line is inserted correctly. Alternately use <A HREF=mailto:poolzone@optusnet.com.au> Send me your feedback on this site</A>
|
By IainTait - Sunday, February 25, 2007
|
I went to the site, registered and after choosing format etc the code showed up and I copied it to the bottom of my home.htm just above </body> and then uploaded to my web site and it now works perfectly. : :I don't think you can use someone else's code as it is site specific and you need a password to see the stats anyway.  Thanks for the idea :
|
By boydgray26 - Monday, February 26, 2007
|
Hi Iain, I think you are getting a tad confused. I am defo not trying to use someone else's code to put Stacounter on my website. I have registered with Statcounter, just as you did, set up my project with them, DID NOT CLICK INVISIBLE - chose the counter option - got my code, and thanl's to Poolzone, inserted it into the correct place in my "home.htm" file. It now works in so far as I get the stats at Statcounter. What isn't working yet is that there is no visible counter on my website. We then moved on from there and Poolzone is now trying to help me make my email address a hyperlink by showing me what code to insert, again into the home.htm file. But this is an entirely separate task and I am using the code I am sure he used to do it on his site, except, of course, I am changing his email address for mine. But thanks for your help. I suspect you got your Statcounter to work straight off (gnashing of teeth!) because you have some experience of website building and messing with codes. I am a complete ingenue! Boyd
|
By IainTait - Monday, February 26, 2007
|
boydgray26 (2/26/2007)
Hi Iain, I think you are getting a tad confused. I am defo not trying to use someone else's code to put Stacounter on my website. I have registered with Statcounter, just as you did, set up my project with them, DID NOT CLICK INVISIBLE - chose the counter option - got my code, and thanl's to Poolzone, inserted it into the correct place in my "home.htm" file. It now works in so far as I get the stats at Statcounter. What isn't working yet is that there is no visible counter on my website.Boyd I did not mean you, I was generalising as I had tried the code shown myself as a test and it didn't work which is why I went to the site. I don't remember what I did exactly but my counter is visible at the bottom of my home.htm and is working on my web site but I haven't put it in my tree here at GenoPro as there is no need. Edit. I also have my email address in my home page which you can see is encrypted to avoid web crawlers. I will try and find the tool that did this for me ages ago and post it. I haven't found the java script but here is the web site for it <!-- HTML Source Code Protected By: <http://www.DesignerWiz.com> FREE HTML Source Code Encryption Protection --> I hope this helps
|
By boydgray26 - Monday, February 26, 2007
|
Hi (is it John?), It DOES show a working hyperlink when you double click on the home.htm file - which when you left click on, opens Outlook Express, with my name in the To window, and when you double click on that, it is indeed my email address. I removed the words you suggested and it still shows a hyperlink, only this time just saying mailtoboydgray26@utvinternet.com and again left clicking gives my name in the To window of OE and my email addy when you double click on my name. So, it should be working on the site - but it isnt! A bit like the counter which doesn't show either. I will try your second suggestion.
|
By boydgray26 - Monday, February 26, 2007
|
Iain, What is the difference between your website and "the tree here at genopro" because that is what I am calling my website? Boyd
|
By boydgray26 - Monday, February 26, 2007
|
Sigh, no good. Going backwards in fact, as there is now no hyperlink when you double click on the home.htm file. This is what it looks like: <%[@ IncludeFile "Code/Util.vbs" ]%> <%[ Set doc = ReportGenerator.Document Set oStringDictionaryNames = Session("oStringDictionaryNames") strTitle = Session("Title") InitGlobalVariables ]%><?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Language" content="en"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>@[ Report.WriteText strTitle ]@ - Report Summary</title> <meta name="description" content="@[WriteMetaDescriptionReport]@" /> <meta name="keywords" content="@[WriteMetaKeywordsReport]@" /> <link rel="stylesheet" href="style.css" type="text/css"/> <script src="script.js" type="text/javascript"></script> </head> <body onload="document.getElementById('divEnableScripting').style.display='none'; top.document.title='@[Report.Write Util.JavaScriptEncode(strTitle)]@'; if (self == parent) document.getElementById('divFrameset').style.display='block';"> <p>@[ Report.WriteFormattedLn Dic("FmtHtmlHomeIntro"), strTitle, Individuals.Count, Families.Count ]@ <%[ strFamilyTreeGno = ReportGenerator.ExtraFiles("FamilyTree.gno") If (strFamilyTreeGno <> "") Then Report.WriteFormattedBr Dic("FmtHtmlHomeBrowser"), strFamilyTreeGno, Dic.FormatString("FmtAltViewGnoFile", Util.HtmlEncode(strTitle)) End If ]%> </p><p>@[ Report.WriteText doc.Description ]@</p> <p><A HREF=mailto:boydgray26@utvinternet.com> Send me your feedback on this site</A> <br/> <%[ iNameLast = oStringDictionaryNames.Count - 1 If (iNameLast > 19) Then iNameLast = 19 ' Keep only the first 20 families End If strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' target='toc'>{0&t}</a> <small>({})</small>" If g_fUseTreeIndexes Then strFmtTemplate = "<a href='toc_individuals.htm#{0&t}' onclick='explorerTreeOpenTo(parent.parent.toc, ""names"",""{0&j}"", 0, 1, ""2"");' target='toc'>{0&t}</a> <small>({})</small>" cPlaces = Places.Count ]%> <a name='MostPopular'></a> <hr/> <table class='table1'><tr><td@[Report.Write Util.IfElse(cPlaces > 0," width='49%'","")]@> <h2>@[ Report.WriteTextDic "HomeMostPopularFamilyNames" ]@</h2> <%[ strSep="" For iName = 0 To iNameLast Report.WriteFormatted strSep & strFmtTemplate, oStringDictionaryNames.Key(iName), oStringDictionaryNames.KeyCounter(iName) strSep = ", " Next If g_fUseTreeIndexes Then Report.WriteBr Report.TagBr Report.WriteFormattedLn "<a href='toc_names.htm' target='popup' onclick='showPopUpFrame(""40%"");'><img src='images/toc_names.jpg' align='bottom' alt=''/> {}</a>", Dic("TocAZSurnameIndex") End If If cPLaces > 0 Then Report.WriteFormattedLn "</td><td width='2%'></td><td><h2>{}</h2>", Dic("TocIndexPlacesPopular") Places.SortBy("-Dependents.Count") ' Sort by most popular place iLast = Places.Count - 1 If iLast > 19 Then iLast = 19 strSep="" For i = 0 to iLast Set p = Places(i) Report.WriteFormatted strSep & "<a href='place-{0}.htm' onclick='showPopUpFrame("""");' title='{1&t}' target='popup'>{2&t}</a> <small> ({3})</small>", p.id, p.Category, p, p.Dependents.Count strSep = ", " Next End If ]%> </td></tr></table> <br/> <div id="divEnableScripting"><hr/> <table width="80%" cellpadding="10"> <tr> <td bgcolor="#FFFF00">@[Report.Write Dic("FmtHtmlHomeScripts")]@</td> </tr> </table><br/></div><hr/> <p align="center"><small>@[Report.WriteFormatted Dic("FmtHtmlHomeSkin"), ReportGenerator.SoftwareVersion, FormatDateTime(Date(),1), Util.IfElse(ReportGenerator.PathSkin, "", "custom "), ReportGenerator.SkinName, ReportGenerator.SkinVersion ]@.<br/><br/> </small></p><div class="floatleft"> <a href="http://validator.w3.org/about.html "target="_blank"><img src="images/valid-xhtml10.png" alt="Valid XHTML 1.0 Transitional" title="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </div> <p align="center"><a target="_blank" href="http://www.genopro.com/"><img src="images/genopro.logo.gif" alt="@[Report.Write Dic("AltGenoProLogo")]@" title="@[Report.Write Dic("AltGenoProLogo")]@" border="0" width="36" height="36"/></a></p> <%[WriteHtmlFramesetSafeguard(oStringDictionaryNames.Count)]%> <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=2094805; var sc_invisible=0; var sc_partition=19; var sc_security="ac80c3cd"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c20.statcounter.com/counter.php?sc_project=2094805&java=0&security=ac80c3cd&invisible=0" alt="free web page hit counter" border="0"></a> </noscript> <!-- End of StatCounter Code --> </body> </html>
I wonder could I send you my home.htm file as an attachment and let you edit it?
|
By Poolzone - Monday, February 26, 2007
|
I should be more careful when giving advice. Go to the beginning of the line "Send me your feedback on this site</A>" and 'baclspace' so it joins the line above it. ]%> </p><p>@[ Report.WriteText doc.Description ]@</p> <A HREF=mailto:poolzone@optusnet.com.au>Send me your feedback</A> <br/> <%[ The only part that should show when you double click the home.htm file is the comment i.e. "Send me your feedback" which you can click to open your email client. Iain is quite right in warning you about Robots picking up an email address posted as a hyperlink, or even written in the form of an email address. Your Spam can increase considerably.
|
By IainTait - Monday, February 26, 2007
|
boydgray26 (2/26/2007)
Iain, What is the difference between your website and "the tree here at genopro" because that is what I am calling my website? Boyd Hi Boyd, My web site is at www.beath.net and at the moment has the same tree as on the GenoPro site plus the password protected private trees. I put the stat counter on my web site as there is already one at GenoPro. I will be reducing the tree on my web site soon to just my ancestors and the directly connected families to save space. By the way this is where I put my stat counter code in my home.htm just before the </body> <center> <!-- Start of StatCounter Code --> <script type="text/javascript" language="javascript"> var sc_project=2305422; var sc_invisible=0; var sc_partition=21; var sc_security="e06cdeaa"; </script> <script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/frames.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c22.statcounter.com/counter.php?sc_project=2305422&java=0&security=e06cdeaa&invisible=0" alt="free web stats" border="0"></a> </noscript> <!-- End of StatCounter Code --> </center> </body> </html> I hope this will help
|
By boydgray26 - Monday, February 26, 2007
|
Sorry - it's not a hyperlink - even though the words "Send me your feedback on this site" is a hyperlink to my email addy when I double click on the home.htm file. I did exactly as you said, and my home'htm file looks exactly like your example above. In the Skin Name window on the Report generator, should I be using: English Narrative Report {EN} or \Customized English Narrative Report\* (English Narrative Report) {EN} from the drop down list?
I have been using the former all along. I suppose it must be the right one if I was able to get the Statcounter to work (partially). If I try to use the latter, the generation fails and I get this: Cloning document boyd gray - the full tree033... The privacy filter has removed 83 living individuals which represents 12% of the total document. To turn off the privacy filter, visit the "Privacy" tab and uncheck the option "Remove All Living Individuals". Opening configuration file Config.xml for skin '\Customized English Narrative Report\* (English Narrative Report)'... Validating picture cache... Error in Config.xml at line 114: Unable to parse '{Name.LastOrLast2:25}-{Name.FirstMiddle:35}-{id}.htm' (Invalid tag name 'Name.FirstMiddle') Loading dictionary.xml... [0.00] Processing template 'init.htm'... [0.45] The tag 'PedigreeLink.pedigree_link' is no longer valid. Try 'PedigreeLink.PedigreeLink' Error at line 254 (init.htm) : Object doesn't support this action: 'pedigree_link.id' Microsoft VBScript runtime error 800A01BD Sorry I am making this so difficult. Boyd PS (Don't rush your reply, assming you were going to dive one, - I am off to Portugal for a week - nervous exhaustion after all this programming!)
|
By Poolzone - Monday, February 26, 2007
|
Hi Boyd, Firstly, the hyperlink appears to be working correctly. As you say, when you click on the words "Send me your feedback on this site" you open up your email client. The problem seems to be that you are confused about the report Generator useage. You need to study up on the help files in this regard. But I do notice that you have upgraded to 2.0.0.2 and may be using the report generator skin from 2007. You should rename the current Customised English Narative Report by putting 2007 after it's name (Customised English Narative Report 2007), then go back to the report generator and pull down the English Narative Report and click on Edit Skin. This will create a new skin called Customised English Narative Report. This is the skin you should then use. If you have made any changes to the previous skin you can copy them over, but do not replace entire files. This probably explains why you are not seeing the desired results in your Reports. Have a pleasant trip to Portugal. Don't get sunburnt.
|
By GenoProSupport - Monday, February 26, 2007
|
Poolzone is right; you have to upgrade to GenoPro 2007. Some of the tags have been renamed for GenoPro 2007 and almost any code you will receive from others will not work unsing an old Beta.
|
|