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)

DarkReaper 09-14-2001 07:38 PM

Problem:

I just tested it by changing my username twice. The first time worked fine, and showed my old one in my user profile. But when I changed it again, "Previous usernames: " was blank. Any ideas?

btw...the field that holds the previous usernames in the MySQL DB is empty.

VirtueTech 10-02-2001 02:25 AM

Pie'oh'pah - I had the same problem. I found that in the instructions the edit said to edit this:
PHP Code:

    //Make sure user didn't try to bypass the maxchars for the fields
    
$$varname=substr($$varname,0,$profilefield[maxlength]);
    
$userfields.=",$varname='".addslashes(htmlspecialchars($$varname))."'";


Well...my version 2.0.3 ...didn't have the ending " } " in that code above...it was further down the page. I found it and added the necessary code after it and that fixed my problem.

Try that. I hope this helps. :)

DarkReaper 10-14-2001 03:37 AM

Quote:

Originally posted by DarkReaper
Problem:

I just tested it by changing my username twice. The first time worked fine, and showed my old one in my user profile. But when I changed it again, "Previous usernames: " was blank. Any ideas?

btw...the field that holds the previous usernames in the MySQL DB is empty.

...

DarkReaper 10-30-2001 10:11 PM

Help... :)

J. Hung 10-30-2001 10:13 PM

Just what I was looking for!

Kumaro 10-30-2001 11:50 PM

Along the installation, it asks me to Creat A Table
Quote:

CREATE TABLE namelogs (userid INT (5) not null , usernames LONGTEXT not null , lastchange INT (12) not null )
How do i do this?

VirtueTech 10-31-2001 04:22 AM

I must say there are some bugs here:
  1. Signatures don't seem to carry over. I'm not sure if it is just my site though.
  2. I think it is case sensitive on the check to see if the username exists already.

MrLister 10-31-2001 02:05 PM

although this hack seems really good... i just htink it's a bit too much power for the users.. just switiching one between another as they feel like it, is a bit too much for me..

VirtueTech 10-31-2001 02:26 PM

The nice thing about it is the allowance of mandatory time intervals between username changes.

MrLister 10-31-2001 02:40 PM

oh didn't know that... i think i'll install it then and set a 30 day period inbetween. thx for telling me


All times are GMT. The time now is 07:58 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.01137 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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