Author |
Message |
bgrob26
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/012.gif)
Joined: Nov 23, 2004
Posts: 9
Location: Long Island,NY
|
Posted:
Tue Nov 23, 2004 10:26 am |
|
I installed CNB_Your_Account_750_440_beta1 on my site
Now when i logged in it brings up the personal info screen like im logged in .but it doesnt show me im online.also the login block still looks as if i wasnt logged in at all..btw im running nuke 7.5 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
menelaos61
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/52a104614192a1b0641b5.jpg)
Joined: Nov 10, 2004
Posts: 110
|
Posted:
Tue Nov 23, 2004 10:35 am |
|
Hi bgrop26 (is that you real name?),
I have some questions for you to better analyze your problem.
Did you enable the cookiecheck in the config panel of CNBYA?
Do you see a little stop-sign icon in the right corner of your taskbar?
Did you apply the fixes for 4.4 beta1 as described in:
http://www.ravenphpscripts.com/postt3629.html ?
(specially those related to cookies)
You see, I suspect your problem has to deal with your browsers cookies.
Cheers,
Richard |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bgrob26
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 10:46 am |
|
Yea i have done all the above which you have mentioned.
Its odd b/c i can still log in as admin but doesnt show me logged in |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
menelaos61
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 11:26 am |
|
Some more questions...
Did you delete all current set cookies already as well?
Do you see the navbar in the userinfo screen when you logged in?
Do you use NSN Groups on your site?
If you try to register an new testuser for your system,
is that user able to login?
Did you try to set cookiedebug to 1 in /modules/Your_Account/includes/copkiecheck.php ?
(this is for debugging purposes)
Let me know...
Cheers,
Richard |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bgrob26
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 11:50 am |
|
Some more questions...
Did you delete all current set cookies already as well?
Yes
Do you see the navbar in the userinfo screen when you logged in?
Yes
Do you use NSN Groups on your site?
No
If you try to register an new testuser for your system,
is that user able to login?
Yes,when i first registered it,,,once i logged out i couldnt log back in again.
Did you try to set cookiedebug to 1 in /modules/Your_Account/includes/copkiecheck.php ?
(this is for debugging purposes)
Yes this is waht it said "Your browser passed our cookie test without any problems!"
Ok now I can logg on with the debug mode set to 1...lol
if i set it back to 0 It goes back to not showing me logged in.
I just noticed i cant change themes either.
Incase you want to look www.gfyclan.com user:testuser pass:testuser
btw thx for the quick replys |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
menelaos61
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 1:04 pm |
|
OK, I'm just trying to help you out, which is kind of hard as I can only guess as it comes to your installation.
Some people reported just the exact error as you do.
They had to addCode:else {
setcookie("CNB_test1","value1");
setcookie("CNB_test2","value2",time()+3600);
setcookie("CNB_test3","value3",time()+3600,"/");
setcookie("CNB_test4","value4",time()+3600,"$ya_config[cookiepath]");
}
| to the end to /modules/Your_Account/includes/mainfileend.php
But like you said, you've already made all changes to known bugs that are provided here.
I logged in at your site and I see the error.
Right now I cannot come up with another guess than that it has to do with the cookies.
You've fixed all known bugs.
You've added the code to your mainfile.php
Do you use full page caching for anonymous users?
I'm thinking with you and I'm sure we'll fix this together!
cheers,
Richard |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tommyguns
Hangin' Around
![](modules/Forums/images/avatars/Risque/fhf239.jpg)
Joined: Jul 07, 2004
Posts: 32
|
Posted:
Tue Nov 23, 2004 1:05 pm |
|
You have to click on the CONTINUE button after the cookie test - then it will show you logged in. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Tommyguns
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 1:09 pm |
|
Did you do the following? Also after doing this turn the cookiedebug off:
Quote: | menelaos61 wrote:
Hey guys,
I think I figured out a solution. It will take some more time to evaluate if this is the best solution but it solves the described problems with the Login-block. Forget what I said about adding lines to your loginblock, instead: if you added my earlier recomended lines, please remove them.
open modules/Your_Account/index.php
FIND (AND REMOVE):
Code:
// cookiecheck by menelaos dot hetnet dot nl
yacookiecheck();
open modules/Your_Account/includes/mainfileend.php
FIND
Code:
// CNB Mod
?>
BEFORE THIS LINE ADD:
Code:
else {
setcookie("CNB_test1","value1");
setcookie("CNB_test2","value2",time()+3600);
setcookie("CNB_test3","value3",time()+3600,"/");
setcookie("CNB_test4","value4",time()+3600,"$ya_config[cookiepath]");
}
The testcookies will now be set everytime a anonymous user visits
your website, and not only when they login through the main Your_Account login screen.
Please try this fix and let me know if it worked for you. |
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bgrob26
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 1:32 pm |
|
Tommyguns wrote: | Did you do the following? Also after doing this turn the cookiedebug off:
Quote: | menelaos61 wrote:
Hey guys,
I think I figured out a solution. It will take some more time to evaluate if this is the best solution but it solves the described problems with the Login-block. Forget what I said about adding lines to your loginblock, instead: if you added my earlier recomended lines, please remove them.
open modules/Your_Account/index.php
FIND (AND REMOVE):
Code:
// cookiecheck by menelaos dot hetnet dot nl
yacookiecheck();
open modules/Your_Account/includes/mainfileend.php
FIND
Code:
// CNB Mod
?>
BEFORE THIS LINE ADD:
Code:
else {
setcookie("CNB_test1","value1");
setcookie("CNB_test2","value2",time()+3600);
setcookie("CNB_test3","value3",time()+3600,"/");
setcookie("CNB_test4","value4",time()+3600,"$ya_config[cookiepath]");
}
The testcookies will now be set everytime a anonymous user visits
your website, and not only when they login through the main Your_Account login screen.
Please try this fix and let me know if it worked for you. | |
Ive done this already
As long as debug is set to 1 and i click continue when i log in it keeps me logged in.If i set it back to 0 it doesnt |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
Spouse Contemplates Divorce
![](modules/Forums/images/avatars/d1ecfa674c890aee2698b.jpg)
Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Tue Nov 23, 2004 3:16 pm |
|
For arguements sake open cookiecheck.php
change
if ( (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) AND (!eregi("admin.php", $_SERVER['SCRIPT_NAME'])) ) {
header("Location: ../../../index.php");
die ();
}
to just
if ( (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) ) {
header("Location: ../../../index.php");
die ();
}
I think the and not admin.php part may be causing the whole thing to fail. |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bgrob26
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 3:22 pm |
|
Quote: | to just
if ( (!eregi("modules.php", $_SERVER['SCRIPT_NAME'])) ) {
header("Location: ../../../index.php");
die ();
}
I think the and not admin.php part may be causing the whole thing to fail. |
this is the way i already have it |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 4:45 pm |
|
Ok I've long since crashed my 7.5 test site (suprise) but I'll bring another one up and see if I can find out whats going on there. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
menelaos61
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 5:17 pm |
|
Hi bgrop26,
Can you mail me from phpnuke your mainfile.php, modules.php
and from YA, your
modules/Your_Account/index.php,
modules/Your_Account/includes/mainfileend.php
modules/Your_Account/includes/cookiecheck.php
modules/Your_Account/includes/functions.php
It seems a lot nut it will help me sort out your problem.
(and in the meantime improve CNBYA!!!)
cheers,
Richard
Please do not post the files mentioned, just mail 'em to me ![Smile](modules/Forums/images/smiles/icon_smile.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 6:05 pm |
|
One last guess here (I just did it myself on a test site) did you get this step from the install.txt?
4. Modifications Needed
-----------------------
Open mainfile.php in a text editor and goto the end of the file.
Just before the ?> add the following code:
if ($forum_admin == 1) {
include("../../../modules/Your_Account/includes/mainfileend.php");
} elseif ($inside_mod == 1) {
include("../../modules/Your_Account/includes/mainfileend.php");
} else {
include("modules/Your_Account/includes/mainfileend.php");
} |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bgrob26
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 23, 2004 7:42 pm |
|
Yes i did that also
menelaos61 I sent you the files you asked me to. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
menelaos61
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 24, 2004 5:04 am |
|
I'm sorry, I haven't received your files yet. Could you resend them?
Cheers,
Richard |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bgrob26
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 24, 2004 10:31 am |
|
ok i just sent them again |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 24, 2004 11:05 am |
|
bgrob26 Your Site shows me as logged in but it is running cookies in debug mode currently. Can you set debug mode to off and I'll test it again.
I've created the account logged in logged off and re logged on. I am being shown as logged in as expected. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bgrob26
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 25, 2004 8:30 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
menelaos61
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 25, 2004 11:33 am |
|
Hello bgrob26,
Actually testing the new beta2 of CNBYA 4.4 I ran into the same problem.
I my case the cookiepath was configured incorrectly.
Of course such a thing would be an admin caused error,
but it made me think about ways to work arround it,
or show the admin a warning with instructions or so.
Is your problem already solved? what made it work for you?
Cheers,
Richard |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Thu Nov 25, 2004 11:50 am |
|
As soon as he shut off debug mode it failed again. Not sure if he has a path setup for the cookies or if its left to default. My suggestion was to wait to shut the cookie check off until hearing from you ![worship](modules/Forums/images/smiles/icon_worship.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
bgrob26
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 26, 2004 11:20 am |
|
the cookies path is set to default b/c i wouldnt know what to set it too...i turn the debug mode back on for now until i can get this fixed..thx for all the help thus far |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sixonetonoffun
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Nov 26, 2004 11:35 am |
|
bgrob26,
Could you check your error log also just in case there is a clue there? Any error with Your_Account in the path would be relevent. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|