Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
pnFirstVisit & 762
  • Posted: 15.07.2006, 00:19
     
    mhalbrook
    rank:
    Legend 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.
  • Posted: 17.07.2006, 21:22
     
    alarconcepts
    rank:
    Professional 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
  • Posted: 17.07.2006, 21:42
     
    mhalbrook
    rank:
    Legend Legend
    registered:
     December 1969
    Status:
    online
    Posts:
    6533
    Figured it out, the block of code needed to be moved for .762.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula