munk.me.uk forum
May 21, 2012, 05:35:46 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Date Joined?  (Read 2026 times)
Guest_Shock
Guest


Email
« on: September 09, 2003, 02:43:46 pm »

Hey everyone.  Just got a question about the date joined.  It does not seem to log that when someone joins.  Is there any fixes on that?

Thanks again,
Mike
Logged
lowrykun


Karma: +0/-0
Offline Offline

Posts: 30

lowrykun@hotmail.com lowrykun
View Profile WWW Email
« Reply #1 on: September 09, 2003, 03:31:01 pm »

If you are only adding information to the database when the user joins, like you mentioned, the date, then there are four steps:

1. Modify the database tables: If you don't know how, check the mysql.org website for syntax. Something like "alter table users add date date"

2. Alter the function: I wanted to store a realname, email address and url. you need to send those to your function:

functions.php: function newUser($login, $password, $realname, $email,$url) {

and also where it's called:

join.php: newUser($HTTP_POST_VARS["login"], $HTTP_POST_VARS["password"], $HTTP_POST_VARS["realname"], $HTTP_POST_VARS["email"], $HTTP_POST_VARS["url"]);

3. Modify the form that is collecting the data: This is in the bottom of join.php

4. Modify the "insert into users" statement in functions.php:

functions.php: "INSERT INTO users (login, password, realname, email, url) VALUES('$login', password('$password'), '$realname', '$email', '$url')"

Using this, you should be able to easily extent the SimpleAuth framework.

jason
 
Logged
Shock


Karma: +0/-0
Offline Offline

Posts: 2


View Profile Email
« Reply #2 on: September 11, 2003, 05:09:43 am »

is there an easier way around this other then that?
Logged
engel
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
« Reply #3 on: October 26, 2008, 12:31:58 am »

I am unable to find this information in any of the files:

join.php: newUser($HTTP_POST_VARS["login"], $HTTP_POST_VARS["password"], $HTTP_POST_VARS["realname"], $HTTP_POST_VARS["email"], $HTTP_POST_VARS["url"]);
Logged
munk
Administrator
Sr. Member
*****

Karma: +2/-0
Offline Offline

Posts: 368


View Profile WWW
« Reply #4 on: October 26, 2008, 01:04:55 am »

There's only one place where newUser() is called in the join.php script, you just need to find it and then modify the line to pass the extra arguments, just use the line you pasted instead of the line that's already in there then continue with lowry's guide above.
Logged

~ Jez
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!