GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Adding Pic to Home Page


https://support.genopro.com/Topic16935.aspx
Print Topic | Close Window

By boydgray26 - Wednesday, March 21, 2007
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....................Smile 

By Poolzone - Wednesday, March 21, 2007
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. 

By Poolzone - Wednesday, March 21, 2007
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"

By boydgray26 - Wednesday, March 21, 2007
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

By boydgray26 - Wednesday, March 21, 2007
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!
By Poolzone - Wednesday, March 21, 2007
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

By boydgray26 - Thursday, March 22, 2007
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?

By appleshaw - Thursday, March 22, 2007
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
By jcmorin - Thursday, March 22, 2007
Check out video Customizing your HTML Report.

http://www.genopro.com/tutorials/videos/customizing-html-report/

By Poolzone - Thursday, March 22, 2007
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.

By boydgray26 - Thursday, March 22, 2007
Jean-Claude - it was the video which got me in this spot of bother in the first place!  Have a wee glance at my opening message.  It points out that the video gives me no clue as to what the code is for inserting a pic.
By boydgray26 - Thursday, March 22, 2007
Jon,

I think I will just give up.  I do not know what you mean by either "Directory" or "Genopro database" so I haven't a clue what you're trying to tell me.  That I can't add a pic?  That I can add a pic but need to move all the pics on my computer to somewhere else on my computer?

It really shouldn't be this difficult.  And why does it not mention any of this on the video which got me interested in the first place?  The video seemed to imply that I could add any pic I already had on the website to the front page of the website.

Anyway, thanks for your attempts to help.

Boyd

By Poolzone - Thursday, March 22, 2007
Boyd,

Just upload your current version to Familytrees.genopro.com under another name (if yo like so you can delete it later), and you will see your photo.

By boydgray26 - Saturday, March 24, 2007
Jon,

I uploaded it under the same name but with 02 stuck on the end - is that what you meant = http://familytrees.genopro.com/boydgray26/GrayGordon02/default.htm

Still no photo unfortunately.

Not sure why you think it would be there if I did nothing different since the last time.

B

By Poolzone - Saturday, March 24, 2007
Hi Boyd

The home.htm file should read (in part) as follows

]%>
<p><img src="pictures/aliceboydgray.jpg" width="200" height="200" ></p>
</p><p>@[ Report.WriteText doc.Description ]@</p>
<p><A HREF=mailto:boydgray26@utvinternet.com>Send me your feedback on this site</A>
<br/>
<%[

Loading it to a different name just means you do not spoil your good work that is already in place.

By boydgray26 - Saturday, March 24, 2007
Hi Jon,

Still not there.

There must be something we have missed or something I have messed up without you knowing because I was able to have a lot of success at first but now I have failed three times in a row:

cannot get this pic on

never got the email hyperlink to work

never got Stacounter to work.

I just don't know what it might be.  What else could it be?

Boyd

PS, Peter is also helping me directly by email and he told me I should have that code line (the one with the name of the pic and the sizes 200) at the top of my "Description" and I have tried generating both with and without this line in the Description window of the Document tab of the Report Generator.

Thanks to you both - without your prompting I would have given up ages ago.

By Poolzone - Saturday, March 24, 2007
Hi Boyd,

I have inserted the following code into the file home.htm , replacin the other code between ]%> and <%[ of a Customised English Narrative Skin

]%>
<p><img src="pictures/aliceboydgray.jpg" width="200" height="200" ></p>
</p><p>@[ Report.WriteText doc.Description ]@</p>
<p><A HREF=mailto:boydgray26@utvinternet.com>Send me your feedback on this site</A>
<br/>
<%[

I have then written some text in the 'description' field.

The result is at http://familytrees.genopro.com/poolzone/test11/default.htm

Of couse the picture will not show as it is not i my directory, but a placeholder does. And the mailto: also works. Hence....it must be in the transcription on your site or that you are not using the skin that you are editing.

By boydgray26 - Saturday, March 24, 2007
Jon,

I agree.  I have often wondered if I am using the skin I am editing and reediting.  But I have tried editing it by clicking edit skin on the report generator and also by finding it in the skins folder of my genepro folder.  In both cases it is called "Customised English Narrative Report".  In fact, I cannot see any other skins at all.  BUT, when I generate a report, it always says "English Narrative Report" in the skin name on the drop down menu.  Now, I thought this did not look right so I changed the drop down menu to:

\Customized English Narrative Report\*  (English Narrative Report)  {EN}

and always get an error message as follows:

Connecting to server familytrees.genopro.com...

Cloning document boyd gray - the full tree036...

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.48] 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

Whats this all about?

Boyd

By boydgray26 - Saturday, March 24, 2007
Btw Jon, should I now change my home.htm file to read as per the new code you have written?  I won't do anything til I hear what you say about the two types of skins and the error message.

B

By Poolzone - Saturday, March 24, 2007
Hi Boyd,

REPORT GENERATOR, select Customised English Narrative skin ,EDIT SKIN

Now DELETE this entire folder.

Return to REPORT GENERATOR, select English Narrative Skin, and EDIT SKIN. This will produce an new Customised skin. Edit this skin and all should be well.  Boyd, this has to be done everytime you upgrade your Genopro version, else re-name the old skin to say...Customised English Narrative 2.0.0.3  for example and then start again. This will save the old version for reference.

You should then be using the 'Customised English Narrative Skin' to produce the report.

By boydgray26 - Saturday, March 24, 2007
Jon,

Good lord - you cannot mean start from scratch again?!  How would I ever remember what I did?!  Even if I kept all the files from the old skin, I am not sure i would remember which ones I had altered and if I copied and pasted new files with old ones, I still might not remember them all - apart from home and perhaps index - I think I might have changed it.

This is really waaaayyy out of my league.

Sorry,

Boyd

By Poolzone - Saturday, March 24, 2007
Since version 2007, all tags have remained unchanged, therefore the error messages you

get with your Customised skin are caused by it being a previous version Customised

skin.  

You are obviously not using it, so you might just as well delete it (rename it if you

are uncertain, so the operation can be reversed).

When I look at your Reports , I see no changes to the report files at all.  The

recreating of the Customised  skin will not effect your information stored in the

Details pane of the report generator. "Fortune may favour the brave" so be brave. Else

wait for Ron's amendment which may allow you to start up your home page with editing

the code. But you'll feel much better achieving it yourself.