vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Change Username via UserCP (v1.0) (https://vborg.vbsupport.ru/showthread.php?t=63796)

tuncket 04-12-2004 10:00 PM

Change Username via UserCP (v1.0)
 
Author: tuncket
Original Creator: Scott MacVicar (Post)
Based in assassingod idea (Post)
Description: This allows your users to Change their Username via their UserCP

INSTRUCCIONES EN ESPA?OL - INSTRUCTIONS IN SPANISH (Post)

This Hack has been tested in vB 3.0.0 Gold!

New Files: (0)

Database Queries: (0)

Files to edit: (2)
profile.php (2 changes)
includes/functions_user.php (1 change)

Templates to add: (1)
modifyusername


Templates to modify: (1)
USERCP_SHELL
(1 change)

Phrases to add: (2)

Level difficulty: Easy

Time installation: 5-10 minutes


CHANGE USERNAME V2.0 RELEASED! PLIS INSTALL THE NEW VERSION (POST)

???`S?LV?R???` 04-13-2004 12:10 AM

nice one

KTBleeding 04-13-2004 12:18 AM

Does this show their previous username in their profile?

Charlie Argueta 04-13-2004 12:18 AM

Quote:

Originally Posted by tuncket
Author: tuncket
Original Creator: Scott MacVicar (Post)
Based in assassingod idea (Post)
Description: This allows your users to Change their Username via their UserCP

This Hack has been tested in vB 3.0.0 Gold!

New Files: (0)

Database Queries: (0)

Files to edit: (2)
profile.php

includes/functions_user.php

Templates to add: (1)
modifyusername


Templates to modify: (1)
USERCP_SHELL


Phrases to add: (2)

Level difficulty: Easy

Time installation: 5-10 minutes

PLEASE CLICK THE INSTALL BUTTON IF INSTALLED!!!

It should ask for a password as when you want to change the email of the user.

See Ya

HabboForum 04-13-2004 10:40 AM

Is there a way to disable this feature for certain usergroups? If i were to use this hack, i'd only want my paid members to be able to use it.

Slave 04-13-2004 12:30 PM

Quote:

Originally Posted by tuncket
Open profile.php

Find
PHP Code:

    construct_usercp_nav('username'); 

if it is for a single Usergroup:

Under Add
PHP Code:

    if ($bbuserinfo['usergroupid']==X) {print_no_permission(); exit;} 

X = Usergroup ID

if it is for several groups:

Under Add
PHP Code:

    if ($bbuserinfo['usergroupid']==or $bbuserinfo['usergroupid']==Y) {print_no_permission(); exit;} 

or
PHP Code:

    if ($bbuserinfo['usergroupid']==or $bbuserinfo['usergroupid']==or $bbuserinfo['usergroupid']==Z) {print_no_permission(); exit;} 

X, Y, Z --> Usergroups ID that will not be able to use the function

It might be easier for peeps if you have a bit of code to allow groups .. instead of the other way about .. else there'll be an awful lot of "or"s .. heh

:)

FleaBag 04-13-2004 01:17 PM

Excellent hack, not sure whether or not to install... Good to see you giving the support for this, the usergroup restrictions might well get me installing. :)

Zachariah 04-14-2004 01:22 AM

tuncket !!!! :D

This will save me hour a week dealing with user problems.

[high]* Zachariah clicks install[/high]

gmarik 04-14-2004 05:25 PM

Interesting ...

Silviu 05-09-2004 09:04 AM

Add two more thing and this hack will become one of the mose used hacks ever:

1 - Admins/Moderators can see previous usernames
2 - Admins can setup in admincp a time limit after user can change the username again (for example, user can be able to change it at each x days, or something like that).


All times are GMT. The time now is 08:48 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.01168 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_php_printable
  • (2)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
  • (10)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