- Moderated by:
- Support
-
- rank:
-
Legend
- registered:
- December 1969
- Status:
- online
- Posts:
- 6533
The following code does not seem to be working properly...
Code
/*Begin FirstVisit Mod*/
$status=pnUserGetVar('uname');
if (pnConfigGetVar('pnFirstVisitOn') =='1' AND !pnUserGetVar('pnFirstVisit')){
$url = pnConfigGetVar('pnFirstVisitURL');
}
/*End FirstVisit Mod*/
The pnFirstVisitOn flag is 1, and the test user DOES have the proper flag set for pnFirstVisit, but it still does the redirect to the pnFirstVisitURL instead of going through as normal. -
- rank:
-
Professional
- registered:
- April 2004
- Status:
- offline
- last visit:
- 21.01.08
- Posts:
- 2723
Does this have to do with the dynamic type switching?
I don't know a thing about the module, but have had some issues when using the "is equal" (==) operator. Instead, I used the is identical" (===) operator and my issues were fixed.
Hopefully it works out for you.
--
Photography | PHP | Other
