vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change Username via UserCP v2.0 (https://vborg.vbsupport.ru/showthread.php?t=24722)

Scott MacVicar 08-05-2001 10:00 PM

This hack has been completely rewritten, i recommend that you simply uninstall this hack and install the new version. If you don't want to do that then this is what has changed.

Table structure of namelogs, drop and readd from install file and all the coding within member.php has changed. There has been NO template changes or changes in the admin panel.

This was written in 2.2.6 and worked fine with no problems.

Scott

smithy256 08-06-2001 01:15 PM

thanks for this cool hack

Dakota 08-07-2001 01:38 AM

Thanks, I requested this hack a while back, but no one was willing to make it.

Great job. :D

VirtueTech 08-07-2001 01:49 AM

First off....great job. This was needed.

I think it would be best if you could set a rule...so that users could only change their usernames once a month themselves...otherwise...on my boards for example...a user could change their name...to spam a user or flame a user...then go back and say it wasn't them much easier then re-registering a new account.

Also...a question for all of you. Do you think we should allow the users to change their username at will like this...or are we only asking for trouble?

Dakota 08-07-2001 02:19 AM

Well even if they changed their name to flame somebody, when they changed it back, the name would change on the flame post as well as every other post the user has made.

This hack is just saving me alot of trouble because I have a forum that is for a Quake3 total conversion based on Dragonball Z, and alot of the time when someone registers they use a name that relates to the show, but then later on they grow tired of that name and want to use a more original name that they may use every where else or something like that.

VirtueTech 08-07-2001 02:37 AM

Quote:

Originally posted by Dakota
Well even if they changed their name to flame somebody, when they changed it back, the name would change on the flame post as well as every other post the user has made.
DOH! Your right. Good point. :)

Lordmusic 08-07-2001 04:47 AM

Is there a way to add a once a month or week, or whatever name change limit? That would be great before I install this.

eva2000 08-07-2001 05:16 AM

Quote:

Originally posted by VirtueTech
First off....great job. This was needed.

I think it would be best if you could set a rule...so that users could only change their usernames once a month themselves...otherwise...on my boards for example...a user could change their name...to spam a user or flame a user...then go back and say it wasn't them much easier then re-registering a new account.

Also...a question for all of you. Do you think we should allow the users to change their username at will like this...or are we only asking for trouble?

although i get a few requests for username changes, i wouldn't use such a hack.. allowing members to change their usernames would and can interfere with building a tighter knit community group of users on my forums ... members are use to particular usernames and well it wouldn't be the same

then you might also have those who like to imitate with similar spelt usernames i.e. how about VirtueTechi :)

VirtueTech 08-07-2001 05:17 AM

also good points...

PPN - Please keep in mind these comments have nothing to do personally with your hack. You did a fantastic job. :)

Lordmusic 08-07-2001 02:12 PM

How about adding a log of what people have changed their names. Say the limit is 5, and after 5 name changes the first is deleted, that way not much space is used. That way it keeps track of the last 5 months of name changes (if you add the once a month limit) and your set.

Dakota 08-07-2001 05:50 PM

Ok, I have found a bug. Users who do not have the required number of posts have not been able to change their profile since I updated to the version where you added it. It works fine for me, but it seems that everyone who is having trouble has less than the required number of posts.

Scott MacVicar 08-07-2001 06:45 PM

Ok change
if ($username != $bbuserinfo[username]) {
to
if ($username != $bbuserinfo[username] && isset($username)) {

updated install file

Delhaze 08-07-2001 09:08 PM

I would like to see it working like this.

The user has a button to request a change in their control panel, at this stage it doesn't allow them to change it, just request a future change.

When they hit the button they are told a request has been sent to the admin/mod and they should continue to use there current username, and wait for confirmation that the request has been authorised.

The admin would have to allow/moderate the request, at which point the user is informed by PM/mail etc that they can now change it.

Now the users control panel actually lets him change it, and any cookie would be updated etc.

This would be all controlled by a global "allow password change requests" in the admin control panel, and could be set to no, the way I have desribed, or always like this hack.

This is not a simple hack, but would be a nice feature to be added to VB in a future release.

Dakota 08-08-2001 04:06 AM

Thanks, that fixed it. Now if only you could get the limiting the number of times a user is allowed to change their name, it would make it much better. But great job. I have not found any other bugs, and I doubt there are since it is a fairly small hack.

Franky 08-10-2001 07:31 AM

Sounds like a great hack, one I would install.

I think it definitely needs either 1. or 2. below and possibly 3.

1. A log of username changes (maybe by user number).
2. Admin moderation of username changes.
3. A limit to the number of changes (per year maybe)

If it had either 1. or 2. I would definitely install it :D

Scott MacVicar 08-10-2001 09:25 AM

1 is done and 3 is being tested.

Franky 08-10-2001 10:18 AM

Uhm how do you view the log please?

J_PC 08-10-2001 10:22 AM

Thanks buddy

Scott MacVicar 08-10-2001 02:47 PM

posted updated file with
name loggin and limits so an admin can set they can only change once every defined number of days.

Franky 08-10-2001 04:44 PM

I now get when submitting the form:

Warning: Argument to array_reverse() should be an array in D:\inetpub\wwwroot\forums\member.php on line 388

And no previous usernames show up. Keep up good work :D

Scott MacVicar 08-10-2001 05:27 PM

What version of PHP, are you running.

Just comment out the lines with array_reverse

it just means that newer nicknames are at bottom in profile and not top.

Franky 08-10-2001 06:10 PM

PHP 4.0.6 - MySQL 3.23.40

okay thanks it seems to work fine with that line edited out.

Pie'oh'pah 08-11-2001 03:38 PM

*thumbs up*

Great hack dude, I was lookin 4 it quite some time. I'm running a Gaming-Clanboard and from time to time, users change their clans or leaving them, so a change would be necessary.
Finally, they can do it on their own! Big Thanx again.

If you'd do me a favor by telling me, where to set the values for the period, users are not permitted to change their name, i'd be eternally grateful :D

-Alex

Scott MacVicar 08-11-2001 04:03 PM

Look in control panel in options under User and Registration Options

it should be the bottom one in that group.

Pie'oh'pah 08-11-2001 04:53 PM

D'oh :D

Thanx man. Great.

Franky 08-11-2001 09:18 PM

I have found a bug. I changed my username as a test, and now in every single user's profile, it lists their previous name as mine.

My profile: http://www.mpz.co.uk/forums/member.p...nfo&userid=119

See any other userid and they are all the same.

Scott MacVicar 08-11-2001 10:35 PM

3 people downloaded it before i uploaded a fixed version

open member.php and go down to line 1227

if ($oldnames=$DB_site->query_first("SELECT usernames FROM namelogs WHERE userid='$userinfo[userid]'")) {

is what it should be

i had $bbuserinfo[userid] its $userinfo[userid]

Enny 08-13-2001 01:48 PM

Great Hack!!!!

Please, can add these hack in the next vB release, with admin option to enable/disable username-change !?

Franky 08-13-2001 04:46 PM

**** wrong thread sorry :p

Pie'oh'pah 08-13-2001 04:51 PM

Am I missing something here? It's completely in the wrong ...... THREAD i suppose :D

May be thats meant to be for the Usenet hack?

-Alex

Dakota 08-13-2001 08:23 PM

umm...that file seems to be the same as the last for me. I don't see anything about the log, or the number of times a user can change their name.

Franky 08-13-2001 08:37 PM

There is no log, just in the user's profile the user's previous names are displayed.

Scott MacVicar 08-13-2001 09:09 PM

i never realised you ran a site bout ntl :)

i got my cable installed but they moaned about line quality and some technician broke somethin :/

so i'm stuck on ntlworld

Dakota 08-13-2001 11:20 PM

well...still when I download the attachment I get the old version. There is nothing in it that adds the previous names to a profile, or how long before a user can change their name again.

Franky 08-17-2001 01:30 PM

A possible bug. A user changes their name, and in their profile under previous usernames, it shows the username they have just changed to, not the old username.

Dakota 08-17-2001 03:28 PM

I have also noticed that.

Pie'oh'pah 08-17-2001 04:15 PM

Quote:

Originally posted by Dakota
well...still when I download the attachment I get the old version. There is nothing in it that adds the previous names to a profile, or how long before a user can change their name again.
Maybe a cache prob? Try this.

Scott MacVicar 08-17-2001 09:27 PM

change
array_splice($oldnames,4,4, addslashes($username));
to
array_splice($oldnames,4,4, addslashes($bbuserinfo[username]));

AND

array_push($oldnames,addslashes($username));
to
array_push($oldnames,addslashes($bbuserinfo[username]));

AND

$DB_site->query("INSERT INTO namelogs (userid, usernames,lastchange) VALUES ('$bbuserinfo[userid]','".addslashes(htmlspecialchars($username))."', '".time()."')");
to
$DB_site->query("INSERT INTO namelogs (userid, usernames,lastchange) VALUES ('$bbuserinfo[userid]','".addslashes(htmlspecialchars($bbuserinfo[username]))."', '".time()."')");
will modify original now.

Franky 08-17-2001 09:50 PM

Okay excellent job PPN, all works perfectly now :D

Scott MacVicar 08-17-2001 11:48 PM

know why ntl wasn't workin last night :P

it stopped workin mid evening for a couple of hours.


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01315 seconds
  • Memory Usage 1,808KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete