...

View Full Version : help!



Saithin
03-25-2007, 01:03 AM
Ok So I have been having this problem on a few different sites, and not its getting annoying. When a user logs on to my php forum, it shows the as logged in, but wont display any of the member only threads. If they refresh the page it will show them all the threads but remove the "unread" logo off the unread sites. Does anyone know how to fix this?

Nightfire
03-25-2007, 01:08 AM
Change line 10 to


echo 'show us the code';


Use a more descriptive title next time too

iLLin
03-25-2007, 01:11 AM
Change line 10 to


echo 'show us the code';


Use a more descriptive title next time too

LOL! I was thinking it... :p

CFMaBiSmAd
03-25-2007, 01:25 AM
I'll take a wild guess at it.

This is a classic cookie problem. Your code sets a cookie saying they are logged in and then assumes that the cookie value can be accessed on the same page. Since this is an incorrect assumption, the code does not show the members only information.

Refreshing the page makes the cookie value that was just set available in the code, but because you have set the last "visited" time and this time is now greater than that of the information, it all appears to have been read.

JohnDubya
03-25-2007, 01:27 AM
if (empty($code_of_user)) {
ban_for_life($user);
} else {
pat($user, 'back');
}

:D

iLLin
03-25-2007, 01:47 AM
Post up those functions please I want to use them :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum