Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
bgrob26
New Member
New Member



Joined: Nov 23, 2004
Posts: 9
Location: Long Island,NY

PostPosted: Tue Nov 23, 2004 10:26 am Reply with quote

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
 
View user's profile Send private message Visit poster's website MSN Messenger
menelaos61
Worker
Worker



Joined: Nov 10, 2004
Posts: 110

PostPosted: Tue Nov 23, 2004 10:35 am Reply with quote

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
 
View user's profile Send private message Send e-mail
bgrob26







PostPosted: Tue Nov 23, 2004 10:46 am Reply with quote

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
 
menelaos61







PostPosted: Tue Nov 23, 2004 11:26 am Reply with quote

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
 
bgrob26







PostPosted: Tue Nov 23, 2004 11:50 am Reply with quote

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.Sad

Incase you want to look www.gfyclan.com user:testuser pass:testuser


btw thx for the quick replys
 
menelaos61







PostPosted: Tue Nov 23, 2004 1:04 pm Reply with quote

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 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]");
}
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
 
Tommyguns
Hangin' Around



Joined: Jul 07, 2004
Posts: 32

PostPosted: Tue Nov 23, 2004 1:05 pm Reply with quote

You have to click on the CONTINUE button after the cookie test - then it will show you logged in.
 
View user's profile Send private message Visit poster's website MSN Messenger
Tommyguns







PostPosted: Tue Nov 23, 2004 1:09 pm Reply with quote

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.
 
bgrob26







PostPosted: Tue Nov 23, 2004 1:32 pm Reply with quote

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
 
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Tue Nov 23, 2004 3:16 pm Reply with quote

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 
View user's profile Send private message
bgrob26







PostPosted: Tue Nov 23, 2004 3:22 pm Reply with quote

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
 
sixonetonoffun







PostPosted: Tue Nov 23, 2004 4:45 pm Reply with quote

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.
 
menelaos61







PostPosted: Tue Nov 23, 2004 5:17 pm Reply with quote

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
 
sixonetonoffun







PostPosted: Tue Nov 23, 2004 6:05 pm Reply with quote

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");
}
 
bgrob26







PostPosted: Tue Nov 23, 2004 7:42 pm Reply with quote

Yes i did that also


menelaos61 I sent you the files you asked me to.
 
menelaos61







PostPosted: Wed Nov 24, 2004 5:04 am Reply with quote

I'm sorry, I haven't received your files yet. Could you resend them?

Cheers,
Richard
 
bgrob26







PostPosted: Wed Nov 24, 2004 10:31 am Reply with quote

ok i just sent them again
 
sixonetonoffun







PostPosted: Wed Nov 24, 2004 11:05 am Reply with quote

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.
 
bgrob26







PostPosted: Thu Nov 25, 2004 8:30 am Reply with quote

ok its set off
 
menelaos61







PostPosted: Thu Nov 25, 2004 11:33 am Reply with quote

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
 
sixonetonoffun







PostPosted: Thu Nov 25, 2004 11:50 am Reply with quote

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
 
bgrob26







PostPosted: Fri Nov 26, 2004 11:20 am Reply with quote

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
 
sixonetonoffun







PostPosted: Fri Nov 26, 2004 11:35 am Reply with quote

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©