I logged in with the netid and password you sent me, but I am not seeing as many of the problems you are seeing. I did notice that the arrow for descendants shows up in the wrong spot.
I think I know what is happening though. I suspect that if you turn off relationship privacy that the problem will go away. There is a bug in the relationship privacy function in v2.13 that places HTML comments in the code about how many nodes were visited and how many iterations were required to calculate the relationship. I printed these comments out wrong for the pedigree chart.
To fix this bug edit the functions.php file and cut line 1698:
print "\n<!-- ";
insert it before line 2001"
print "Visited ".count($visited)." nodes<br>\nRequired $count iterations.<br>\n";
The last few lines of the functions.php file should look like this:
print "\n<!-- ";
print "Visited ".count($visited)." nodes<br>\nRequired $count iterations.<br>\n";
print "-->\n";
return $node;
}
?>
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've got some strange effects happening when a non-admin user logs in.
The footer is appearing across the middle of the pedigree tree and some of the navigation symbols appear in odd places.
If I make the user account administrative or change the gedcom id for the user back to the default, the problem disappears.
Owen
Owen,
I'm not sure why this is happening. It could be a problem with the print_user_links function.
Yes, I just looked at the code there is a div missing.
replace the print_user_links() function in the functions file with this one (lines 1012-1027:
//-- print user info and links
function print_user_links() {
global $pgv_lang;
$user = getUser(getUserName());
print '<div style="white-space: nowrap">';
if ($user) {
print '<a href="edituser.php" class="link">'.$pgv_lang["logged_in_as"].' ('.getUserName().')</a>';
if (!empty($user["gedcomid"])) print "<br><a href=\"index.php?rootid=".$user["gedcomid"]."\" class=\"link\">".$pgv_lang["my_pedigree"]."</a> | <a href=\"individual.php?pid=".$user["gedcomid"]."\" class=\"link\">".$pgv_lang["my_indi"]."</a>\n";
print "<br><a href=\"index.php?logout=1\" class=\"link\">".$pgv_lang["logout"]."</a>";
if (userIsAdmin($user["username"])) print " | <a href=\"admin.php\" class=\"link\">".$pgv_lang["admin"]."</a>";
}
else {
print "<a href=\"login.php\" class=\"link\">".$pgv_lang["login"]."</a>";
}
print "</div>";
}
--John
John,
Sorry, but this had no noticeable effect.
Owen
Could you email me a temporary username and password so that I can see the problem?
--John
I used the sourceforge messaging to send you details for an account I set up. Did it get to you OK?
Owen
I got your message, but I haven't had a chance to login to your site yet. I will look at it later today and get back with you.
--John
Owen,
I logged in with the netid and password you sent me, but I am not seeing as many of the problems you are seeing. I did notice that the arrow for descendants shows up in the wrong spot.
I think I know what is happening though. I suspect that if you turn off relationship privacy that the problem will go away. There is a bug in the relationship privacy function in v2.13 that places HTML comments in the code about how many nodes were visited and how many iterations were required to calculate the relationship. I printed these comments out wrong for the pedigree chart.
To fix this bug edit the functions.php file and cut line 1698:
print "\n<!-- ";
insert it before line 2001"
print "Visited ".count($visited)." nodes<br>\nRequired $count iterations.<br>\n";
The last few lines of the functions.php file should look like this:
print "\n<!-- ";
print "Visited ".count($visited)." nodes<br>\nRequired $count iterations.<br>\n";
print "-->\n";
return $node;
}
?>
--John
John,
Once again, that has sorted the problem out perfectly. Thank you for your time and effort.
Owen