I can't seem to figure out how to change the background color. I've tried editing the style.css file and everthing else can be edited, but the background. Any suggestions?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I created an iframe and imported it into my PHPNuke site. I'm currenlty trying to get the gedviewer to look like the rest of my site (new header.html file is similar to the forum header, but needs a lot of work).
I would like to put a link on the Print Preview page so the users can print just that page that is in the iframe.
And if you are curious, I will probably make the iframe compatible with Netscape later. I believe it's called ilayer. It's not a concern at this time though.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
forget about the bg color, i figured that out, I was doing it right, but my browser wasn't refreshing correclty for some reason. Anyway, I'd still like to know about putting that print link on the print preview page.
Thanks :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To add the print link you will want to modify functions.php file and put it in either the print_header() function or the print_footer() function. I'd reccommend the print_footer() function. In that function there is a section that begins with:
if ($view!="preview") {
...
}
Add an "else" after this block to print out your link. Something like this:
if ($view!="preview") {
...
}
else {
print "<a href=\"print\">Print</a>";
}
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On another note about the functions.php file. Before and after I edited it. I would get the following error message on the Decendancy tree at the bottom, just above the footer.
Warning: Missing argument 2 for print_fact() in /home/virtual/site156/fst/var/www/html/phpGedView/functions.php on line 927
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I assumed you knew how to change the print link. But I've decided to add this to the project. Version 2.02 fixes the errors on the family page and adds the print link in print preview mode.
I don't know if the link will print just the content in the iFrame or if it will print the whole page. You will have to test that out. Another option you might consider for print preview mode is to leave the iFrame by having the print preview link taget the top instead of the frame.
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It works great now. Thanks! Yeah it prints just what is in the iframe as it should. I expected this, especially because, at the same time, I also password protected the phpGedView folder and get the "Authorization Required" error message just in the frame as it also should.
I did notice this just now though..... I don't use the feature, but forgot to turn it off during the configuration. The Multiple Language option doesn't really need a Go button because the language changes automatically when you make your selection.
If I press the Go button at any time, I get the following error:
Fatal error: Failed opening required '' (include_path='.:/php/includes:/usr/share/php:/usr/share/pear') in /home/virtual/site156/fst/var/www/html/phpGedView/session.php on line 128
Sorry for bugging you so much. I like to call myself quality control.
Thanks
Murphy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't seem to figure out how to change the background color. I've tried editing the style.css file and everthing else can be edited, but the background. Any suggestions?
Thanks.
Is there a way to add a link on the Print Preview page?
If you care to see my page that has the viewer on it, go to http://www.theklings.net/modules.php?name=Family_Tree
I created an iframe and imported it into my PHPNuke site. I'm currenlty trying to get the gedviewer to look like the rest of my site (new header.html file is similar to the forum header, but needs a lot of work).
I would like to put a link on the Print Preview page so the users can print just that page that is in the iframe.
And if you are curious, I will probably make the iframe compatible with Netscape later. I believe it's called ilayer. It's not a concern at this time though.
forget about the bg color, i figured that out, I was doing it right, but my browser wasn't refreshing correclty for some reason. Anyway, I'd still like to know about putting that print link on the print preview page.
Thanks :)
To add the print link you will want to modify functions.php file and put it in either the print_header() function or the print_footer() function. I'd reccommend the print_footer() function. In that function there is a section that begins with:
if ($view!="preview") {
...
}
Add an "else" after this block to print out your link. Something like this:
if ($view!="preview") {
...
}
else {
print "<a href=\"print\">Print</a>";
}
--John
Inserting that code into the functions.php file gives a link that directs the browser to http://www.mysite.net/phpGedView/print
On another note about the functions.php file. Before and after I edited it. I would get the following error message on the Decendancy tree at the bottom, just above the footer.
Warning: Missing argument 2 for print_fact() in /home/virtual/site156/fst/var/www/html/phpGedView/functions.php on line 927
It's always in the Family Group Information section if that helps.
I assumed you knew how to change the print link. But I've decided to add this to the project. Version 2.02 fixes the errors on the family page and adds the print link in print preview mode.
I don't know if the link will print just the content in the iFrame or if it will print the whole page. You will have to test that out. Another option you might consider for print preview mode is to leave the iFrame by having the print preview link taget the top instead of the frame.
--John
It works great now. Thanks! Yeah it prints just what is in the iframe as it should. I expected this, especially because, at the same time, I also password protected the phpGedView folder and get the "Authorization Required" error message just in the frame as it also should.
I did notice this just now though..... I don't use the feature, but forgot to turn it off during the configuration. The Multiple Language option doesn't really need a Go button because the language changes automatically when you make your selection.
If I press the Go button at any time, I get the following error:
Fatal error: Failed opening required '' (include_path='.:/php/includes:/usr/share/php:/usr/share/pear') in /home/virtual/site156/fst/var/www/html/phpGedView/session.php on line 128
Sorry for bugging you so much. I like to call myself quality control.
Thanks
Murphy
I'm very grateful for feedback from you and others because it is impossible for test every possible thing that you might try to do.
Thank you for helping to make phpGedView better,
--John