vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Username Management - Control who can change Usernames plus history (https://vborg.vbsupport.ru/showthread.php?t=101326)

Oblivion Knight 11-23-2005 08:03 PM

Would adding value="$bbuserinfo[username]" to the Change Username fields have any adverse effect?

Marco van Herwaarden 11-23-2005 08:37 PM

Quote:

Originally Posted by Oblivion Knight
Would adding value="$bbuserinfo[username]" to the Change Username fields have any adverse effect?

How, what, where, why?

Oblivion Knight 11-23-2005 08:49 PM

Well to make the "Change Username" fields in the User CP appear more like the "Change Email Address" fields above it, I added the current username in the text boxes. I've not looked at the code or checked whether to see this hack will ignore updating the Username if it remains the same as the current one.

I guess I should stop being so lazy and actually look.. ;)

Marco van Herwaarden 11-23-2005 08:55 PM

It will ignore it if not changed (i think). Since you will most likely not reuse your name, i thought it was useless to prefill with current.

PS Yes take a look, some parts (especially some of the caching in the functions) i am pretty satisfied with.

WNxWakko 11-24-2005 12:22 AM

Why is the max days 255 days? I wanted to only allow members to change once a year max, but seems I cant, I put in 365 and save, but when i go back in, its set ast 255. ?????????

Marco van Herwaarden 11-24-2005 03:36 AM

Hmmm that looks like a design error. To allow higher values, change the 'mh_unm_changelimit' column of the usergroup table in your database from TINYINT to SMALLINT. Will update this in the next release.

Guest190829 11-24-2005 03:38 AM

This may be useful for my forum..hm...I will test it out none-the-less. :)

WNxWakko 11-24-2005 04:07 AM

Quote:

Originally Posted by MarcoH64
Hmmm that looks like a design error. To allow higher values, change the 'mh_unm_changelimit' column of the usergroup table in your database from TINYINT to SMALLINT. Will update this in the next release.


I have no clue how to do that. Is there a query I can just run from the Admincp?

Oblivion Knight 11-24-2005 05:29 AM

[sql]ALTER TABLE usergroup CHANGE mh_unm_changelimit mh_unm_changelimit SMALLINT(3) UNSIGNED NOT NULL DEFAULT '30'[/sql]Yes, [high]mh_unm_changelimit[/high] should be there twice.. :)

Marco van Herwaarden 11-24-2005 06:32 AM

You can run the following 2 queries:
[sql]ALTER TABLE usergroup CHANGE COLUMN mh_unm_changelimit mh_unm_changelimit SMALLINT UNSIGNED DEFAULT 30 NOT NULL;
ALTER TABLE usergroup CHANGE COLUMN mh_unm_viewhistorylimit mh_unm_viewhistorylimit SMALLINT UNSIGNED DEFAULT 1 NOT NULL;[/sql]
If you are using a table prefix, then add it in front of the tablename (ie. prefix_usergroup).

If you run the queries from the AdminCP, you must run 1 line at a time. If you are using something like phpMyAdmin, you can just copy&paste both lines in 1 go.

Marco van Herwaarden 11-24-2005 06:34 AM

Quote:

Originally Posted by Oblivion Knight
[sql]ALTER TABLE usergroup CHANGE mh_unm_changelimit mh_unm_changelimit SMALLINT(3) UNSIGNED NOT NULL DEFAULT '30'[/sql]Yes, [high]mh_unm_changelimit[/high] should be there twice.. :)

If you use SMALLINT(3), it will not increase the column size. ;)
SMALLINT defaults to 5 positions.

PS I never understand why people keep quoting numeric default values.

dieselpowered 11-24-2005 02:37 PM

So if someone changes their member name, does it change the member name all all previous posts? Plus I can only assume that the old username will be in quoted posts...correct?

Marco van Herwaarden 11-24-2005 03:44 PM

It will be changed everywhere, except quoted posts.
It uses the standard routines in vB to change the name, the same that is used when changing from AdminCP. Everything that would be changed when doing it from the AdminCP, is also changed with this hack.

It merely builds on top of the standard functions by giving Users and moderators also a place to change the name, and to add logging/reporting to it.

Snake 11-24-2005 05:02 PM

Nice update there...

nexialys 11-25-2005 12:35 PM

feature request:

having this History of Usernames to be searchable as "registered users" so if someone wants to register with a username that is in this list, he will not be able to, and will be required to contact the admin if this is an error...

the situation come often when someone register, and not remember his password or complete username, and instead of asking for a new access he register twice... that came at least 3 times here this year only... ;)

something like "this username was once used by a user on this site. if you really need this username, please contact the admins. "... and this can be joined with the Ajax Alert...

Marco van Herwaarden 11-25-2005 01:14 PM

Well that would be something completly different......and for 3 times a year?

But i have been thinking about not allowing a change if a name have been used before.

For example a popular guy on the board, decide to change his name, and a newbee immediate change his name the the popular guys old name.

A lot of people would get confused. Or maybe just no reuse of names for 3 month.

nexialys 11-25-2005 01:48 PM

that's the same situation i guess, just not the same start.. lol

;)

zappsan 11-25-2005 07:18 PM

Just installed this on my testboard and I really like it.
Thanks

Just one question:
Quote:

Sorry, the username entered contains one or more semi-colon characters ( ; ).

Please go back and remove any semi-colons
What's wrong with semi-colons?

Marco van Herwaarden 11-25-2005 07:48 PM

They are not allowed i guess. But that has nothing to do with my hack, it is vB itself blocking it.

zappsan 11-25-2005 09:12 PM

Quote:

Originally Posted by MarcoH64
They are not allowed i guess. But that has nothing to do with my hack, it is vB itself blocking it.

Oh, ok, thanks for clearing me up.

I've got another problem:
When I allow a usergroup to change names, they can't login into the ModCP anymore.
They click on the "Change name" link, enter username and password in the login window, but instead of logging them in, the login window is displayed again.

Am I doing anything wrong?

edit: I just noticed that the user needs to mod at least one forum to make it work.
Is there a way to change this?

Marco van Herwaarden 11-25-2005 09:27 PM

No there is no way to change that. Like written in the instructions, he/she needs to have modcp access, so Admin, S.Mod or Moderator (with a forum).

zappsan 11-25-2005 10:51 PM

Quote:

Originally Posted by MarcoH64
No there is no way to change that. Like written in the instructions, he/she needs to have modcp access, so Admin, S.Mod or Moderator (with a forum).

Ok, thanks.

And now, finally:
[high]* zappsan clicks install[/high]

eNforce 11-27-2005 01:28 AM

With this installed with the Enhanced ACP Navigation plugin the Users category which is normally in the main AdminCP menu is now in the Custom Navigation menu lol..

Marco van Herwaarden 11-27-2005 05:41 AM

Yes that is the big disadvantage of the Enhanced Navigation.

Onimua 11-27-2005 08:38 AM

Hm... is it also possible for users [/i]not[/i] to see the name change history as well?

Marco van Herwaarden 11-27-2005 04:26 PM

Who can view history is controlled by the usergroup settings.

jluerken 11-29-2005 03:16 PM

Hi,

this is a wonderful hack and I want to use it but I have a feature request:

Is there a way to include an approval process?

A user can change his name but before this change becomes valid an Administrator has to approve it.
Some kind of moderated username change link in the AdminCP would be wonderful.


Would be nice to see this in v 1.0.3 :D

regards
jluerken

jluerken 11-29-2005 04:11 PM

When I install your hack the USERS menu in the adminCP dissapears :-(

jluerken 11-29-2005 04:37 PM

Quote:

Originally Posted by eNforce
With this installed with the Enhanced ACP Navigation plugin the Users category which is normally in the main AdminCP menu is now in the Custom Navigation menu lol..


How can I change this?

jluerken 11-29-2005 04:50 PM

Ok I change this.

Create a phrase called: mh_unm
Phrase Type: Control Panel Home Pages
Product: Username Management
Varname: mh_unm
Text: Username Management

Then edit cpnav_mh_unm.xml and delete all content.

Replace with:
Code:

<?xml version="1.0" encoding="ISO-8859-1"?>

<navgroups product="mh_unm" master="true">

        <navgroup phrase="mh_unm" permissions="canadminusers" displayorder="110">

                <navoption displayorder="900">
                        <phrase>mh_unm_username_history_search</phrase>
                        <link>mh_unm_history.php</link>
                </navoption>

        </navgroup>

</navgroups>

Done!

If you have Andreas Hack installed the Users menu stays now on the main page and a new menu comes up on the second enhanced nav page.

Have fun...

Marco van Herwaarden 11-29-2005 07:28 PM

Quote:

Originally Posted by jluerken
this is a wonderful hack and I want to use it but I have a feature request:

Is there a way to include an approval process?

A user can change his name but before this change becomes valid an Administrator has to approve it.
Some kind of moderated username change link in the AdminCP would be wonderful.

Would be nice to see this in v 1.0.3

Sounds like a good idea, might do it.
Quote:

Originally Posted by jluerken
When I install your hack the USERS menu in the adminCP dissapears :-(

How can this happen? The menu is just controled by another file in your includes/xml. I didn't hear from anybody else having this problem.

Marco van Herwaarden 11-29-2005 07:29 PM

Quote:

Originally Posted by jluerken
If you have Andreas Hack installed the Users menu stays now on the main page and a new menu comes up on the second enhanced nav page.

Sounds to me that this is more a buck in Andreas hack then. It should be just nother option in the User menugroup (that is where it belongs).

jluerken 11-30-2005 11:08 AM

Quote:

Originally Posted by MarcoH64
Sounds to me that this is more a buck in Andreas hack then. It should be just nother option in the User menugroup (that is where it belongs).

And as you can see here: https://vborg.vbsupport.ru/showpost....6&postcount=76
I solved it and posted a solution for all other users who might have it :D

Now I am waiting for version 1.0.3 with admin approval :-)

uae 12-01-2005 06:50 AM

Thanks Marco,

Is it possible to include the option to change userid of any user, and only Staff members or super Admin could do this.

Marco van Herwaarden 12-01-2005 08:43 AM

Quote:

Originally Posted by jluerken
I solved it and posted a solution for all other users who might have it

Please could you edit your solution to add a note that your solution is only if they have Andreas hack installed. Now it looks like everyone should be making that change.
Quote:

Originally Posted by uae
Is it possible to include the option to change userid of any user, and only Staff members or super Admin could do this.

No, i don't see the use of changing a userid. Since it will also require totally different coding, i son't see a reason to put it in this hack.

john1744 12-03-2005 06:36 AM

Any way to add tracking to when an admin changes the Username through the ACP? A few of my admin still go back to that old method instead of going to the ModCP to do it. Just to keep track of the name changes.

Marco van Herwaarden 12-03-2005 06:40 AM

Even when an username is changed from ACP, it will show up in history i think.

eNforce 12-07-2005 01:44 AM

How about adding a character limit option? Some of my members are starting to create very long usernames :P

Marco van Herwaarden 12-07-2005 06:26 AM

Never really tried it, but i think it will follow the maximum set in your AdminCP for usernames.

Oblivion Knight 12-07-2005 06:32 AM

Quote:

Originally Posted by jluerken
And as you can see here: https://vborg.vbsupport.ru/showpost....6&postcount=76
I solved it and posted a solution for all other users who might have it :D

Now I am waiting for version 1.0.3 with admin approval :-)

Another alternative is to remove [high]master="true"[/high], and it has the same effect.. ;)

However, just to re-iterate - you only need to do this if you have Andreas' "Enhanced ACP Navigation" plugin installed. Otherwise, this should work fine as it is.


All times are GMT. The time now is 03:07 AM.

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.01392 seconds
  • Memory Usage 1,830KB
  • 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
  • (1)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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