Getting the family tree looking good
pyutaros - November 5, 2007 - 02:05
| Project: | Family Tree 2 |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
Creating this issue for pfolk to keep us updated on his current effort when he has time. Thanks pfolk.

#1
#2
Have you managed to create any sort of family tree structure yet pfolk?
I have created a crude ascendancy graph and am working on a decsendancy one.
if anyone would like to comment you can add it too:
1. put the files attached in the family directory remaning tree.inc.txt to tree.inc
2. put the following code at the bottem of family_menu() before the return in family.module
$items[] = array('path' => 'family/tree',
'title' => t('Family Tree Diagrams'),
'callback' => 'family_view_tree',
'access' => user_access('access family'),
);
3. add the following line allow with the other requires at the top of family.module
require_once "$path/tree.inc";any comments appreciated
if anyone can help with the formatting it would be useful as im not very good at styles or css stuff
#3
Oops that one didn't resize properly when you changed the amount of generations :( didn't notice that.
fixed file attached
another problem i hadn't thought about (i am new to this drupal stuff) was the theming having to be universal to all themes so the image used needs to have a transparent background. That is now changed in this version too.
#4
Microbe,
Thanks for the work. As soon as I finish fixing the form.inc errors, I will commit this to 5.x-1.x-dev and 5.x-2.x-dev. I've been done for a bit as my Ubuntu box at home has had some growing pains. Hopefully by the end of this week.
Thanks,
Jonathan
#5
Commit has been made. Please download 5.x-1.1 and test.
Thanks,
Jonathan
#6
I have finished creating a system that can successfully output the data for a descendancy graph :D (the attached file replaces tree.inc in the 1.1 version)
Unfortunatly though the formatting doesn't seem to come out the same as the ascendancy graph even though the coding is the same but sort of 'upside down'. You can see if you look at the source of the page produced that the width of some of the td elements is bigger than you see on the screen - wierd. Also i haven't added in the pictures to show parents to children links. The links are quite obvious looking at it already due to formating, but not brilliant. It is different from the ascendry as not everying is equal.
I haven't got a lot of time at the moment and if anyone wants to try and fix the formatting please do. If people have an idea looking at the html source but don't know how to implement this message me and I will give it a go. Also i can produce the pictures if people have ideas on implementing.
Suggestions for missing features also please.
Thanks for any help
Microbe
#7
Committed to ver 1.2.
#8
not sure the new version was quite ready to be commited yet but hey.
still not sure whats happning with the formatting. some additional features suggestions - see what u think of them and post a comment
1. links to peoples trees on there profile page
2. links to peoples trees on the family_individual nodes
3. extra detail options; not sure what vthough
4. spouses added in on the descendancy graph
5. better graphics
6. more types of graphs - please suggest
microbe
#9
i randomly thought of a way to do the graphics gave it a quick go and came up with the following result (attached files)
also attached is a far smaller version of asctree.png even though the picture has the same dimensions. it didn't save it properly the first time for an unknown reason.