coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: jarekn on July 20, 2004, 01:43:54 PM

Title: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: jarekn on July 20, 2004, 01:43:54 PM
Hello,

I have been running vBulleting 3.0.0 now 3.0.3... all is good with the integration except for one thing... In order for members to be able to view the gallery the Remember Me check box on the login page must be checked in order for CPG to know that the user is a member.  While this shouldn't be a big issue it is for some users who's cookies are not working like they should... I guess this has to do with session variables...

Did anyone figure out this problem? or am I the onlyone having it?

My forum is at http://forum.nitelifeinfo.com/forum and cpg is at http://forum.nitelifeinfo.com/cpg

Server is running on W2K, PHP 4.3.4, MySql 4.0.17-nt.

For some reason I think this issue is related to my configuration, so if you have vBulleting working with session variables (no need to have the Remember Me box checked) let me know your configuration... And if you do have it working on W2K box please let me know if you had to do anything special?

Any help would be very very much apreciated... I've got people bugging me on the daily basis :\'(

Thanx
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: jarekn on July 22, 2004, 03:30:14 PM
Does anyone else have the same problem?
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: Joachim Müller on July 23, 2004, 09:38:30 AM
If you want us to check on login/logout issues, please provide a test account.

GauGau
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: jarekn on July 24, 2004, 03:15:31 AM
Hello GauGau,

What I was asking is if anyone else has the same problem with their site... I've checked my from different computers, using different logins and it's always the same...

I think the only difference is that I use W2K server, and I've heard that PHP for windows has issue with sessions...



Quote from: GauGau on July 23, 2004, 09:38:30 AM
If you want us to check on login/logout issues, please provide a test account.

GauGau
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: kegobeer on July 24, 2004, 07:44:07 AM
IIS does indeed have serious issues with SESSIONS.  Do a google and you can read all about it.  I've tried a bunch of different recommendations, but unfortunately haven't been able to get SESSIONS working.  I recommend installing Apache, if you can.
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: jarekn on July 27, 2004, 01:25:03 PM
K, I think I narrowed the issue down...

In displayimage.php I have added the following code to ensure that the user has logged into the system before being able to view full size image:

require('include/init.inc.php');

if (USER_ID){

} else {
{
$redirect = $redirect . "../forum/userlogin.php";
header("Location: $redirect");

exit();
}}


Now while this works fine on my system and many others, but there are systems that do not work with this code... Each time you try to view the page it doesn't know that you're logged in and redirects you to the login page...

Am I missing something??? How can I ensure that this will work on all browsers?

Is there another way I can ensure/force users to login before being able to access the displayimage.php page???

I have created test account : user:test password: test
Site is http://forum.nitelifeinfo.com/forum
or http://forum.nitelifeinfo.com/cpg

Please if you have access to multiple computers with different versions of IE please try it and see if it works... I think I am going to lose all my hair because of this....argh

Any help would be very much apreciated,

Thanx
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: jarekn on July 29, 2004, 02:37:57 PM
I should have mentioned that it works on my system as long as the check box to remember user name is selected....

On the systems that it doesn't work, people tried both with selected and without still the same issue...

Anyone???
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: kegobeer on July 30, 2004, 07:44:29 AM
Hmmm, no checkbox, problems.  Check box, good to go.  I'm not sure what would be causing that, but I did notice something else.  While looking around I noticed the URL in the information box has a double slash after /cpg.

Here's one...
http://forum.nitelifeinfo.com/cpg//displayimage.php?pos=-11192

While not a show stopper, it's a flag that something ain't quite right.  It might be related to the cookie problem.
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: jarekn on August 09, 2004, 03:47:28 PM
I fixed the // issue (under settings link to see Ecards had sitename.com/cpg/ - changed it to sitename.com/cpg)


Quote from: kegobeer on July 30, 2004, 07:44:29 AM
Hmmm, no checkbox, problems.  Check box, good to go.  I'm not sure what would be causing that, but I did notice something else.  While looking around I noticed the URL in the information box has a double slash after /cpg.

Here's one...
http://forum.nitelifeinfo.com/cpg//displayimage.php?pos=-11192

While not a show stopper, it's a flag that something ain't quite right.  It might be related to the cookie problem.
Title: Re: vBulleting and cpg - Remember Me must be checked??? PLZ Help
Post by: jarekn on August 09, 2004, 03:52:31 PM
Is there something wrong withe the following code? What could affect it?

I am thinking of hanging myself... argh...  Or is there another way I could force users to login before seeing full size pictures?  Any one has the code?  (PS I have coppermine integrated wiht vBulleting 3.0.3)

THANX for all your help

Quote from: jarekn on July 27, 2004, 01:25:03 PM
K, I think I narrowed the issue down...

In displayimage.php I have added the following code to ensure that the user has logged into the system before being able to view full size image:

require('include/init.inc.php');

if (USER_ID){

} else {
{
$redirect = $redirect . "../forum/userlogin.php";
header("Location: $redirect");

exit();
}}


Now while this works fine on my system and many others, but there are systems that do not work with this code... Each time you try to view the page it doesn't know that you're logged in and redirects you to the login page...

Am I missing something??? How can I ensure that this will work on all browsers?

Is there another way I can ensure/force users to login before being able to access the displayimage.php page???

I have created test account : user:test password: test
Site is http://forum.nitelifeinfo.com/forum
or http://forum.nitelifeinfo.com/cpg

Please if you have access to multiple computers with different versions of IE please try it and see if it works... I think I am going to lose all my hair because of this....argh

Any help would be very much apreciated,

Thanx