Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 55
0 members and 55 guests
No Members online
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas Electric Choice

Go Back   Nukemods Forum > Nukemods > FAQ/Fixes

Reply
 
LinkBack Thread Tools Display Modes
Forum registration date generated problem?
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Apr 2003
Forum registration date generated problem? - 04-06-2003, 09:28 AM

after changing new user registration using a method described in one of the forums here by changing two links in the your_account/index.php file. When someone registers now the only problem is the date is listed as a number like 1254789 instead of the date? Does anyone have a solution to this?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-06-2003, 10:28 AM

That's becuase apparently the Forum registration is not working as intended.
The includes/usercp_register.php file is the one that generates the Forums registration and THAT date.
I'll have to compare the old usercp file with the new one from Nuke6.5 to find out what to change in order for the date to be written corretcly upon signup.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Apr 2003
04-06-2003, 10:33 AM

Thanks man let me know what you find
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-06-2003, 11:01 AM

Ok I fixed it..a little tricky but here goes.

Open
includes/usercp_register.php

just below this:
Code:
                        //
                        // Get current date
                        //
add this line
Code:
                        $reg_date = date("M d, Y");
then just below that line you should see this line:
Code:
                                VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
change that line to this
Code:
                                VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', '" . $reg_date . "', '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
The only part I had to change in that big ole line was this:
Code:
" . time() . "
to this
Code:
'" . $reg_date . "'
that should generate the Date in the format expected now when a user signs up using the Forum registration.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 21
Join Date: Apr 2003
04-06-2003, 11:38 AM

you are the man thank you so much.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New user registration problem/bug nastey Nuke 7.x - General 0 06-27-2005 11:37 PM
problem with old-articles block - date text very big DeVision Nuke 6.5 to 6.9 - Blocks 0 06-23-2003 04:13 AM
forum date prob? ShRapNeR Open topics 1 05-25-2003 12:19 AM
Registration hack Problem!!!!! G2F Purged Topics 2 03-24-2003 08:23 PM
Test post date, Joined date mikem Open topics 5 10-06-2002 02:56 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31