- Moderated by:
- Support Team
-
- rank:
-
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 -
- rank:
-
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. -
- rank:
-
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 -
- rank:
-
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 -
- rank:
-
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 -
- rank:
-
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 -
- rank:
-
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
