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

Dizkus

Goto page: 1 - 2 [+1]

Bottom
pnLastLogin
  • Posted: 05.03.2007, 01:39
     
    myths
    rank:
    Helper Helper
    registered:
     November 2003
    Status:
    offline
    last visit:
    14.10.08
    Posts:
    117
    very cool idea, but I'm a bit confused on how to apply the settings, anyone was lucky to set this correctly and got it to work?
  • Posted: 07.03.2007, 04:12
     
    rank:
    Freshman Freshman
    registered:
     July 2006
    Status:
    offline
    last visit:
    13.01.08
    Posts:
    31
    No. But you aren't alone. I'd like to figure this one out too.
  • Posted: 07.03.2007, 18:45
     
    quan
    rank:
    Freshman Freshman
    registered:
     May 2006
    Status:
    offline
    last visit:
    18.10.08
    Posts:
    22
    Hi!

    I'm, the author of this module. If you specify the problems a little bit more detailed I'll try to help you icon_wink

    Greetings, Flo (quan)



    edited by: quan, Mar 07, 2007 - 01:46 PM
  • Posted: 07.03.2007, 20:22
     
    myths
    rank:
    Helper Helper
    registered:
     November 2003
    Status:
    offline
    last visit:
    14.10.08
    Posts:
    117
    well, there's some points I cant really understand:

    How the lastlogin info (and the userid) will be stored in an existing field? shouldnt we create a new field instead or new table?

  • Posted: 07.03.2007, 22:37
     
    quan
    rank:
    Freshman Freshman
    registered:
     May 2006
    Status:
    offline
    last visit:
    18.10.08
    Posts:
    22
    You can deactivate an existing field in your dynamic user data and use this one.
    Fields that can be added via the dynamic user data can NOT be used.
    Disable te occupation-field for example, create a new occupation field as dynamical user data (if your users want o have such a field listed) and use the old occupation field to store the lastlogin value (as an example).
    You can also create a new table but consider that the new table has to have an user-id field as a row.

    Greetings, Flo
  • Posted: 09.03.2007, 04:27
     
    myths
    rank:
    Helper Helper
    registered:
     November 2003
    Status:
    offline
    last visit:
    14.10.08
    Posts:
    117
    Flo,
    Thanks for the clarification, its really great module.
  • Posted: 17.03.2007, 17:34
     
    silverscout
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    18.06.08
    Posts:
    408
    I am still confused, I would rather this be in its own table.

    I created two new cells. and it didn't work

    can you provide a SQL code to make it work? That would be great.

    SS.

  • Posted: 20.03.2007, 16:00
     
    quan
    rank:
    Freshman Freshman
    registered:
     May 2006
    Status:
    offline
    last visit:
    18.10.08
    Posts:
    22
    did you create new cells in the core users table of PostNuke? then you just have to specify the new cell as the cell in which the data should be stored and the uid cell to idenfity the user's row in the table.

    if you want to use an external extra table make sure that there is a row for the user-id and a row has to exist for EVERY user in this table before the last login value can be stored.
  • Posted: 23.03.2007, 01:15
     
    silverscout
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    18.06.08
    Posts:
    408
    I guess I am getting confused

    in my core users I created 2 new columns.

    filed in which the last login date should be stored =
    _users.lastlogindate

    field for the iser-id(needs to be in the same table as the filed above) =
    _users.iser-ID
  • Posted: 24.03.2007, 01:19
     
    quan
    rank:
    Freshman Freshman
    registered:
     May 2006
    Status:
    offline
    last visit:
    18.10.08
    Posts:
    22
    no - you don't need TWO cells, just one. use the _uid for the user-ID (not iser-ID, thats a typo in the english language file)
  • Posted: 03.07.2007, 19:58
     
    tazmon95
    rank:
    Helper Helper
    registered:
     January 2004
    Status:
    offline
    last visit:
    03.07.07
    Posts:
    137
    Howdy and thank you for this module. I found that in the PNphpBB tables in the PN tables there are two that work well for this module to link to

    pn_phpbb_users.user_lastvisit
    and
    pn_phpbb_users.user_id

    I do have one question to go with this. What is the best way to only allow admins to see the new block that came with this as of .20?

    --
    Member of the PNphpBB Development Team
  • Posted: 28.02.2008, 12:16
     
    Melinda
    rank:
    Helper Helper
    registered:
     October 2007
    Status:
    offline
    last visit:
    26.07.08
    Posts:
    101
    OK, so how do I add a column to an existing database?
    I have mySQL 5.0 running on a linux server - but it's a hosted account and the "tech" support doesn't support mySQL questions. (in other words, they can't answer my question)
    I want to add a column to the pn_users database in order to use the pnlastlogin module, but I don't know how to add the column using mySQL queries or whatever.
    I figure it's easiest to just add the column or field to the existing database for users - since I can't find the table for pn_profile - but how?
    "Dummies" version works best for me. :D
    Thanks in advance,
    Mickey

    --edit--
    ok, never mind the above post, I found it and added it.
    Next question, which file in my Xanthia theme do I need to add the code? From the module:

    Quote

    To user the module in Xanthia-Themes include the following code in your theme:

    Code

    <!--[pnmodapifunc modname="LastLogin" type="admin" func="LogLastLogin"]-->

    Do I need to edit the theme.php, the master.htm or the home.htm?
    Thanks, Mickey



    edited by: Melinda, Feb 28, 2008 - 02:41 AM

    --
    Mickey
    http://hraus.net
    http://hraforums.hraus.net
  • Posted: 28.02.2008, 13:40
     
    Melinda
    rank:
    Helper Helper
    registered:
     October 2007
    Status:
    offline
    last visit:
    26.07.08
    Posts:
    101
    Another question, where's the block for the pnLastLogin module?
    According to the site, there's supposed to be a block with it. When I tried to set up the block, it wasn't listed.
    If there's not one with the download, where can I get the block? It seems the NOC is down - at least I can't log into it.
    Thanks,
    Mickey
  • Posted: 28.02.2008, 19:54
     
    videokid
    rank:
    Professional Professional
    registered:
     March 2003
    Status:
    offline
    last visit:
    19.11.08
    Posts:
    901

    Code

    To user the module in Xanthia-Themes include the following code in your theme:
    <!--[pnmodapifunc modname="LastLogin" type="admin" func="LogLastLogin"]-->

    There is no Xanthia theme? No problem. include before the line "// Get variables " the following line in index.php in the root postnuke folder.:
    pnModAPIFunc('LastLogin','admin','LogLastLogin');


    I wanted to check on your site, but... it's so slow... every click takes up 1 minute.... this is taking too much time, sorry...

    - Igor

    --
    Have a nice day
    zikulapro.be is currently running
    Zikula 1.0.2
  • Posted: 28.02.2008, 22:04
     
    Melinda
    rank:
    Helper Helper
    registered:
     October 2007
    Status:
    offline
    last visit:
    26.07.08
    Posts:
    101
    Igor, I know it's slow, I'm going to work on that this weekend.
    Sorry it's so slow, I don't know why yet.
    Mickey

Goto page: 1 - 2 [+1]

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula