[ABD] Change Registration Date 1.0.1

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

[ABD] Change Registration Date 1.0.1

Post by alexi02 » Wed Feb 06, 2008 10:39 am

MOD Title: Change Registration Date
MOD Description: Allows you to change a user's registration date from the Admin CP
MOD Version: 1.0.1

MOD Download: Change Registration Date v1.0.1 (28 KB)
Last Stable version: 1.0.1

MOD Screenshot: Admin CP

MOD History:

2008-03-02 - Version 1.0.1
Added the update of the registration to fix the registration date not been updated

2008-02-06 - Version 1.0.0
- Initial Release (for phpBB 3.0.0)


Please post any problems or ways to improve this mod here.

alexi02.
Last edited by DavidIQ on Thu Jan 20, 2011 9:27 pm, edited 3 times in total.
Reason: Marked as abandoned. Please contact a member of the MOD Team to reclaim topic.

User avatar
igorw
Former Team Member
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [BETA] Change Registration Date 1.0.0

Post by igorw » Wed Feb 06, 2008 11:12 am

Nice work, sir ;)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Re: [BETA] Change Registration Date 1.0.0

Post by alexi02 » Wed Feb 06, 2008 2:31 pm

Thanks :)
Congrats on the Image status :P

Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

Re: [BETA] Change Registration Date 1.0.0

Post by Forke » Sat Mar 01, 2008 8:44 pm

Hi Alexis, I installed your mod, but it doesnt seem to work.

I checked every edit and theyre ok. The mod appears and lets me update the registration date, but the changes doesnt reflect in the forum.

Any ideas?

Edit: Sorry, I've just seen the 1.0.1a version. Ill try that one.

edit again: 1.0.1a seems to be for phpBB 2.

1.0.0 is the latest version of the 3?

Now im confused!
My first validated mod!
Adaptive Quick Search

User avatar
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Re: [BETA] Change Registration Date 1.0.0

Post by alexi02 » Sun Mar 02, 2008 1:03 am

Thanks for pointing that out. It seems like I forgot to include the actual code to update the registration date!

Update to v1.0.1:

In

Code: Select all

includes\acp\acp_users.php
Find

Code: Select all

$update_email = ($data['email'] != $user_row['user_email']) ? $data['email'] : false;
After Add

Code: Select all

$update_regdate = ($data['user_regdate'] != $user_row['user_regdate']) ? $data['user_regdate'] : false;
Find

Code: Select all

if ($update_password)
Before Add

Code: Select all

                                                if ($update_regdate !== false)
                                                {
                                                        $sql_ary += array(
                                                                'user_regdate'                => $update_regdate
                                                        );

                                                        add_log('user', $user_id, 'LOG_USER_UPDATE_REGDATE', $user_row['username'], $user_row['user_regdate'], $update_regdate);
                                                }

Forke
Registered User
Posts: 102
Joined: Fri Feb 08, 2008 6:03 am

Re: [BETA] Change Registration Date 1.0.1

Post by Forke » Sun Mar 02, 2008 5:35 am

Thanks!

It worked like a charm :D
My first validated mod!
Adaptive Quick Search

Showaski39
Registered User
Posts: 33
Joined: Tue May 17, 2005 11:49 pm

Re: [BETA] Change Registration Date 1.0.1

Post by Showaski39 » Wed Mar 19, 2008 1:30 pm

Anyone have issues with this so far?? I was trying to change the registration date for a user on my forum, but I was attempting to do it manually through PHPMyAdmin, and I can't seem to figure out what I need to edit within the 10 chracter code to change to the date.

Thanks in advance.

Paradise-Bodies
Registered User
Posts: 12
Joined: Sun Jan 27, 2008 12:45 am

Re: [BETA] Change Registration Date 1.0.1

Post by Paradise-Bodies » Mon Mar 31, 2008 1:26 am

Hi,

i installed Version 1.0.1 and after editing the date in acp i still have the old one there :(

User avatar
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Re: [BETA] Change Registration Date 1.0.1

Post by alexi02 » Wed Apr 02, 2008 3:40 pm

Do you receive any error messages?

Try to echo $update_regdate; in this code (after the ); ) and see if you receive a 10 digit number at the top left of the page when you press submit:

Code: Select all

if ($update_regdate !== false)
                                                {
                                                        $sql_ary += array(
                                                                'user_regdate'                => $update_regdate
                                                        );
                                                        
                                                        add_log('user', $user_id, 'LOG_USER_UPDATE_REGDATE', $user_row['username'], $user_row['user_regdate'], $update_regdate);
                                                }

Paradise-Bodies
Registered User
Posts: 12
Joined: Sun Jan 27, 2008 12:45 am

Re: [BETA] Change Registration Date 1.0.1

Post by Paradise-Bodies » Thu Apr 10, 2008 11:57 am

Hi,

nothing happens. Just
Information
User details updated.
and no number :(

The code above is the same like in the install...

User avatar
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Re: [BETA] Change Registration Date 1.0.1

Post by alexi02 » Thu Apr 10, 2008 12:47 pm

Hm, I've reinstalled this mod on a phpBB3 vanilla board and it's worked fine. The only thing I can pinpoint which might cause this issue is if you don't have the following code in your $data array.

Code: Select all

'user_regdate'                        => request_var('user_regdate', '', true),
$data array

Code: Select all

$data = array(
                                                'username'                        => utf8_normalize_nfc(request_var('user', $user_row['username'], true)),
                                                'user_regdate'                        => request_var('user_regdate', '', true),
                                                'user_founder'                => request_var('user_founder', ($user_row['user_type'] == USER_FOUNDER) ? 1 : 0),
                                                'email'                                => strtolower(request_var('user_email', $user_row['user_email'])),
                                                'email_confirm'                => strtolower(request_var('email_confirm', '')),
                                                'new_password'                => request_var('new_password', '', true),
                                                'password_confirm'        => request_var('password_confirm', '', true),
                                        );
When the registration date is displayed when editing the user, does it have the date as in the screenshot in my original post? Are you running phpBB 3.0.0 gold release?

Paradise-Bodies
Registered User
Posts: 12
Joined: Sun Jan 27, 2008 12:45 am

Re: [BETA] Change Registration Date 1.0.1

Post by Paradise-Bodies » Thu Apr 10, 2008 1:15 pm

Yes it is the gold release.
And the date in "Change Registration Date:" is the one the user has registered. Not the one in the screenshot.

User avatar
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Re: [BETA] Change Registration Date 1.0.1

Post by alexi02 » Fri Apr 11, 2008 12:07 am

PM me your includes/acp/acp_users.php file.

zantetsken
Registered User
Posts: 57
Joined: Mon Jun 04, 2007 8:07 am

Re: [BETA] Change Registration Date 1.0.1

Post by zantetsken » Sat May 10, 2008 5:43 am

I tried to install this, but it looks like there were no changes at all. I'm a newb at this, so maybe I screwed something up... But after vaguely reading replies, I dunno. Does this thing work or doesn't it?

User avatar
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Re: [BETA] Change Registration Date 1.0.1

Post by alexi02 » Sat May 10, 2008 6:30 am

I'm not quite sure where the problem is but just be sure to re-read whether to make the changes before or after the code. I've just installed phpBB 3.0.1 vanilla forum and installed this mod on it and it works fine.

Would you be interested in the phpBB 3.0.1 modified files?

Locked

Return to “[3.0.x] Abandoned MODs”

Who is online

Users browsing this forum: No registered users and 8 guests