|
|
Customers GenoPro version: 3.1.0.1
Last Login: Monday, October 2, 2023
Posts: 5,
Visits: 58
|
I need this script on the very first line of the html reports generated from the report generator<?php include "includes/header.php"; ?> . I am unfamiliar creating a skin, is there anyone that can provide me some instruction on how to creaate this type of skin. Thank you.
Tags:
Edited: Friday, September 24, 2010 by
jcmorin
|
|
|
Administrators Customers Important Contributors FamilyTrees.GenoPro.com GenoPro version: 3.1.0.1
Last Login: 12 hours ago
Posts: 3,347,
Visits: 25,658
|
You will need to insert your line above the <?xml version="1.0" encoding="utf-8"?> line in each of the 29 *.htm template files in a custom skin.
So 1st create your own skins folder ( Tools/Generate Report/ Option tab, 'Folder where skins are located') Next create the custom skin (Tools/Generate Report, select' English Narrative Report' as the skin then click ' New Skin' button. Locate the custom skin in your skins folder and use a text editor to change each of the 29 *.htm files. I suggest using the free PSPad editor and use 'Projects/create a project from directory' to access all files in the skin. Then use Search/ Search Replace in files..' using *.htm as the file mask and replace <?xml version="1.0" encoding="utf-8"?> with <?php include "includes/header.php"; ?><?xml version="1.0" encoding="utf-8"?> Not sure if a newline is required between these two directives however.
'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
|
|
|
Gamma Moderators Administrators FamilyTrees.GenoPro.com Customers GenoPro version: 3.1.0.0
Last Login: Wednesday, October 7, 2020
Posts: 952,
Visits: 10,075
|
The php code include require a server-side processing (by php) to include the other piece of html. That will not work on your machine unless you run it under a web server that have php installed.
|
|
|
Customers GenoPro version: 2.0.1.4
Last Login: Today @ 1:34 AM
Posts: 18,
Visits: 4,003
|
I have found that PHP will only run on a server if the file has the .php extention, not .htm. Therefore all links to the page will have to be changed. Also if you intend to put the <?php ........... ?> in the first line there has to be no space or hidden character before the <?php. Some editors place a BOM (byte order mark) character at the beginning of a text file which stops the php interpreter reading the line. It took me a weekend to discover this! I have added a secure contact page written in php to my family tree with an access link manually added to the home.htm page every time I generate it.
Ian
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Monday, October 2, 2023
Posts: 5,
Visits: 58
|
Thank you all for the response. The web provider does have phpcode, a server processing php. I did have a programer create this php script and the html programs do run in the php program as long as the php script is the very first line on the html program code. When I generate a report, there are several hundred html pages that are created. Need to get that php script on the first line of the 500+ html pages. I do not have time to manuely put this script in front of each page. lol . I will try to use instructions to see if the report generator can do this. Anyone else that has comments, I would appricate them.Thank You.
|
|
|
Gamma Moderators Administrators FamilyTrees.GenoPro.com Customers GenoPro version: 3.1.0.0
Last Login: Wednesday, October 7, 2020
Posts: 952,
Visits: 10,075
|
Of course you should not do it manually, you create a custom skin and modify the page template. Adding a single line on top of each page template should not be hard nor long.
|
|
|
Customers GenoPro version: 3.1.0.1
Last Login: Monday, October 2, 2023
Posts: 5,
Visits: 58
|
genome, i was finally able to come back and work on this, and your instructions worked out great. Thank you. Sorry letting you know now, but it took me a long time to get back to my project.
One other Thing that is Important with php. Need to remove the line <?xml version="1.0" encoding="utf-8"?> . It does conflict with the php code, and it does work without it.
Edited: Tuesday, October 11, 2011 by
ChrisIv
|