I am running phpGedView as a standalone and not a module or addon to phpNuke. If I delete all my cookies. I can see the text from the language files. If I access directly, no problem. I can come in from anywhere on the web and it still works. But, if I go to my website and try to go to phpGedView again, either by link or typing in the url, I have the same problem with the text not showing up. I tried blocking all cookies in my browser and that let it work, but then I can't login to my own site. I know you didn't create this to work with other programs, but is there a way to get phpGedView to not care about this cookie. I use english only on a family website so this would not be a problem. To see what I mean, you can go to www.laframboise-tribe.com/genealogy then click on "Return to Family Website" then try coming back in by clicking on the "Family Tree" link on the lefthand side.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Probably what is happening is that phpNuke and phpGedView are using the same variable names.
So far, I believe it is over-writing the variable $language. I think that you can fix this just by moving some lines of code around in the config.php file.
In the config file, find the following line:
if (phpversion() >= '4.2') import_request_variables("cgp");
This line makes it so that phpGedView will work without register_globals on.
Move it just above this line:
$language["english"] ="lang.en.php";
Try that and let me know if it works.
--John
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-12-27
I cut and pasted the line but it didn't seem to make any difference.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-12-29
Problem solved :) The problem was not with phpGedView because if I turned register_globals = Off in php.ini, it worked great. Some of the modules in phpnuke needed it set On or they would hang or crash. I thought I was stuck with having to delete my cookies everytime I returned to phpGedView but I created a sub-domain called http://genealogy.mydomain.com and it works great. I guess the problem was as you said. They were over writing each others vars using the same cookie. Thanx again for all your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am running phpGedView as a standalone and not a module or addon to phpNuke. If I delete all my cookies. I can see the text from the language files. If I access directly, no problem. I can come in from anywhere on the web and it still works. But, if I go to my website and try to go to phpGedView again, either by link or typing in the url, I have the same problem with the text not showing up. I tried blocking all cookies in my browser and that let it work, but then I can't login to my own site. I know you didn't create this to work with other programs, but is there a way to get phpGedView to not care about this cookie. I use english only on a family website so this would not be a problem. To see what I mean, you can go to www.laframboise-tribe.com/genealogy then click on "Return to Family Website" then try coming back in by clicking on the "Family Tree" link on the lefthand side.
Probably what is happening is that phpNuke and phpGedView are using the same variable names.
So far, I believe it is over-writing the variable $language. I think that you can fix this just by moving some lines of code around in the config.php file.
In the config file, find the following line:
if (phpversion() >= '4.2') import_request_variables("cgp");
This line makes it so that phpGedView will work without register_globals on.
Move it just above this line:
$language["english"] ="lang.en.php";
Try that and let me know if it works.
--John
I cut and pasted the line but it didn't seem to make any difference.
Problem solved :) The problem was not with phpGedView because if I turned register_globals = Off in php.ini, it worked great. Some of the modules in phpnuke needed it set On or they would hang or crash. I thought I was stuck with having to delete my cookies everytime I returned to phpGedView but I created a sub-domain called http://genealogy.mydomain.com and it works great. I guess the problem was as you said. They were over writing each others vars using the same cookie. Thanx again for all your help.