Adding Pic to Home Page
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
GenoPro Support Forum
Home        Members    Who's On
Welcome Guest ( Login | Register )
        


123»»»

Adding Pic to Home Page Expand / Collapse
Author
Message
Post #16935 Posted 3/21/2007 5:15:18 PM


Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 12/28/2008 6:54:57 PM
GenoPro Version: 2.0.1.6
Posts: 55, Visits: 166
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.................... 

Post #16936 Posted 3/21/2007 5:25:31 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Yesterday @ 6:23:59 PM
GenoPro Version: 2.0.1.6
Posts: 441, Visits: 3,757
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

Post #16937 Posted 3/21/2007 5:38:27 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Yesterday @ 6:23:59 PM
GenoPro Version: 2.0.1.6
Posts: 441, Visits: 3,757
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

Post #16941 Posted 3/21/2007 6:03:27 PM


Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 12/28/2008 6:54:57 PM
GenoPro Version: 2.0.1.6
Posts: 55, Visits: 166
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

Post #16942 Posted 3/21/2007 6:07:54 PM


Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 12/28/2008 6:54:57 PM
GenoPro Version: 2.0.1.6
Posts: 55, Visits: 166
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!
Post #16945 Posted 3/21/2007 6:34:07 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Yesterday @ 6:23:59 PM
GenoPro Version: 2.0.1.6
Posts: 441, Visits: 3,757
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

Post #16955 Posted 3/22/2007 12:37:48 PM


Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: 12/28/2008 6:54:57 PM
GenoPro Version: 2.0.1.6
Posts: 55, Visits: 166
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?

Post #16956 Posted 3/22/2007 1:08:02 PM
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master This user is an important contributor to the GenoPro community This user is a contributor to FamilyTrees.GenoPro.com 

Group: Customers
Last Login: Yesterday @ 4:42:16 PM
GenoPro Version: 2.0.1.6
Posts: 980, Visits: 9,343
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
Post #16964 Posted 3/22/2007 4:27:16 PM


IT Director GenoPro

IT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoProIT Director GenoPro  

Group: Customers
Last Login: 2 days ago @ 4:07:55 PM
GenoPro Version: 2.4.0.3
Posts: 466, Visits: 6,096
Check out video Customizing your HTML Report.

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


If the facts don't fit the theory, change the facts.
-- Albert Einstein

Jean-Claude Morin
Information Technology Director, GenoPro.
http://www.genopro.com

Post #16967 Posted 3/22/2007 5:21:20 PM


Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer This user is an important contributor to the GenoPro community 

Group: Customers
Last Login: Yesterday @ 6:23:59 PM
GenoPro Version: 2.0.1.6
Posts: 441, Visits: 3,757
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

« Prev Topic | Next Topic »

123»»»

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: GenoProSupport, JcMorin, Ron

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 2:01 PM

Copyright 1998-2009 GenoPro. All rights reserved. GenoPro and the GenoPro logo are trademarks.