You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 40 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Joined date and user_level bugs. [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Mighty_Y
Sergeant
Sergeant


Joined: Feb 27, 2003
Posts: 94


PostPosted: Sat Apr 05, 2003 2:30 am Reply with quoteBack to top

Probably because he added the port from NukeCops only in RC3 and he didn't check out everything. We at PortedMods.com found 3 fixes for bugs in this version
Find all posts by Mighty_YView user's profileSend private messageVisit poster's website
NovemberRain
Sergeant
Sergeant


Joined: Jan 30, 2003
Posts: 96

Location: Istanbul

PostPosted: Sat Apr 05, 2003 4:30 am Reply with quoteBack to top

b.t.w i replaced the original file with your usercp_register.php but i realized it doesn't work. i have a new user and joined date is 1049545105

http://www.turkrock.com/modules.php?name=Forums&file=profile&mode=viewprofile&u=1902
Find all posts by NovemberRainView user's profileSend private messageICQ Number
Antra
Sergeant
Sergeant


Joined: Mar 15, 2003
Posts: 143


PostPosted: Mon Jul 21, 2003 10:15 pm Reply with quoteBack to top

I've searched for "join date" and "joined date", and this is the thread I found that most suited my needs. Running 6.5 and I'm getting the date in seconds -- what NovemberRain said was "1049545105". It's in the SQL table itself, so it must be at user registration. Thus, I am looking for two things.

  • How to convert those numbers to the proper date.
  • How to stop it from happening with every new user.

Thanks!
Find all posts by AntraView user's profileSend private messageVisit poster's website
Antra
Sergeant
Sergeant


Joined: Mar 15, 2003
Posts: 143


PostPosted: Tue Jul 29, 2003 9:59 am Reply with quoteBack to top

Anyone?
Find all posts by AntraView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Tue Jul 29, 2003 10:44 am Reply with quoteBack to top

Here's mikem's workaround:

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


By the way Nuke 6.6 & 6.7 are out and should have this and other bugs corrected.

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
Antra
Sergeant
Sergeant


Joined: Mar 15, 2003
Posts: 143


PostPosted: Tue Jul 29, 2003 10:56 am Reply with quoteBack to top

I'm afraid that my changes aren't well-documented, being my first serious foray into Nukedom. So I'm afraid of losing them Very Happy. However, I'm going to try 6.latest on a test site.

Implementing the workaround now...thanks for the info!

Edit: Is there a way to convert the existing database values from time() to date()?
Find all posts by AntraView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.351 Seconds - 311 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::