|
|
Customers FamilyTrees.GenoPro.com GenoPro version: 3.1.0.0
Last Login: Friday, April 17, 2020
Posts: 67,
Visits: 220
|
Hi Folks,Back again after my glorious failure with Statcounter. I have just received the March Newsletter and it has a video showing how to add a pic to your Home Page. Just what I need to tart up a tres boring Home Page. Looks easy peasy cept for one huge hurdle. The video at one point scrolls out onto the Document Tab Description window of the Reprt generator the magic html script needed to add the pic - but without any explanation for where an html illiterate like me would get such magic runes! I couldn't even copy and paste with appropriate amendments (since I am not Einstein - yes, I know, you HAD noticed!)cause you cannot copy and paste from a video. That's all I want this time. That html text that will magically turn into a pic when the GP Report wizard waves his magic wand. I have already removed the "text" from Writetext, so it should be easy! Or am I being naive again? Thanks, Boyd....................
Edited: Sunday, March 25, 2007 by
GenoProSupport
|
|
|
Customers Important Contributors GenoPro version: 2.5.4.0
Last Login: Thursday, January 11, 2024
Posts: 386,
Visits: 4,475
|
Boyd,You already use this area for displaying Text on the home page. By editing the home.htm file you will now cause the program to see your text as HTML markup and will not work. Unfortunately , without extra editing of the home.htm page you cannot have both.
Poolzone a mere cog in a revolution
|
|
|
Customers Important Contributors GenoPro version: 2.5.4.0
Last Login: Thursday, January 11, 2024
Posts: 386,
Visits: 4,475
|
Boyd,It is quite easy to edit the home.htm page and between the body tags at the location you wish to place the picture type the following... <p><img src="/pictures/photo.jpg" width="386" height="576"></p> Replace your photo that has been uploaded already where I have named "photo.jpg" OR use the images directory and include your extra picture there and use that directory rather than "/pictures"
Poolzone a mere cog in a revolution
|
|
|
Customers FamilyTrees.GenoPro.com GenoPro version: 3.1.0.0
Last Login: Friday, April 17, 2020
Posts: 67,
Visits: 220
|
Poolzone,Thanks - but it hasn't worked - and it has messed up my left hand pane. I was not sure where to locate the new line within the body tags of the home file so i stuck it right at the start - <%[@ 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 <p><img src="/pictures/aliceboydgray.jpg" width="386" height="576"></p> 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)) SNIP
|
|
|
Customers FamilyTrees.GenoPro.com GenoPro version: 3.1.0.0
Last Login: Friday, April 17, 2020
Posts: 67,
Visits: 220
|
Oh dear, I have deleted the extra line but the left hand pane of the Home page has not returned to normal - it's indented way over to the right!
|
|
|
Customers Important Contributors GenoPro version: 2.5.4.0
Last Login: Thursday, January 11, 2024
Posts: 386,
Visits: 4,475
|
Yes, aren't frames wonderful?Sorry, my mistake. The forward slash before 'pictures/' should be removed and place the line immediately before the edited line as follows. Note also the change to width and height. Report.WriteBr ]%> <p><img src="pictures/0052.jpg" width="200" height="200" ></p> </p><p>@[ Report.WriteText doc.Description ]@</p> <br/> <%[ iNameLast = oStringDictionaryNames.Count - 1 If (iNameLast > 19) The
Poolzone a mere cog in a revolution
|
|
|
Customers FamilyTrees.GenoPro.com GenoPro version: 3.1.0.0
Last Login: Friday, April 17, 2020
Posts: 67,
Visits: 220
|
Portugal was lovely, Jon. So beautiful, we are going back again mid-May!Thanks for you help - it is really appreciated. The new text has put the frames back the way they were before - but no sign of Mary Alice Boyd Gray on my Home page. I am not sure if I was supposed to leave "0052" as it was or change to "aliceboydgray", which is the name of the pic I already have on the website and which I am trying to place on the Home Page. May I prevail upon you to look at the edited file again and see if I have done it right: <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><img src="pictures/aliceboydgray.jpg" width="200" height="200" ></p> </p><p>@[ Report.Write doc.Description ]@</p> <p><A HREF=mailto:boydgray26@utvinternet.com>Send me your feedback on this site</A> <br/> <%[ Would the fact that on my computer the filename is JPG (upper case) make any difference? Perhaps I should have the full filepath for the Pic = ..\GRAY-McCLEMENTS\Photographs\aliceboydgray.JPG?
|
|
|
Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 5 minutes ago
Posts: 1,576,
Visits: 31,180
|
Not sure if this is what you want but look at http://familytrees.genopro.com/appleshaw/test/default.htm To get this I used a customised skin to change home.htm @[ Report.WriteText doc.Description ]@
to
@[ Report.Write doc.Description ]@
then added text
this is assuming you have loaded the jpg as part of the report. Unlike Windows, it is important that you do not change the case of any letters
Hope this works here as on a previous post the forum converted the html to output
|
|
|
Gamma Moderators Administrators FamilyTrees.GenoPro.com Customers GenoPro version: 3.1.0.0
Last Login: Wednesday, October 7, 2020
Posts: 952,
Visits: 10,075
|
|
|
|
Customers Important Contributors GenoPro version: 2.5.4.0
Last Login: Thursday, January 11, 2024
Posts: 386,
Visits: 4,475
|
Hi Boyd,The directory is different on your 'local' computer so the use of the 'pictures/' directory will not work locally. But it will on 'Familytrees.genopro.com' I always store my photos in a 'pictures/' directory in the same directory as my Genopro database. Therefore what works locally will also work on the web site.
Poolzone a mere cog in a revolution
|