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)

Franky 08-18-2001 12:35 AM

Probably because it's ntl :D Try having a look here.

Thomas P 08-18-2001 09:27 AM

Hi PPN,

veeery useful hack!! https://vborg.vbsupport.ru/

Something that vB is really missing,
Thanks man,
-Tom

Sneakz 08-18-2001 02:07 PM

Thanks, usefull hack.. needed one like this :D

Mike D One 08-19-2001 01:16 PM

great hack :)
How do you add a table to the Database ?

thankyou

Mike D

Franky 08-19-2001 01:34 PM

With phpMyAdmin

http://www.phpwizard.net/projects/phpMyAdmin/

Mike D One 08-19-2001 02:17 PM

any other way to do it ?
there must be a easyer way !!

Franky 08-19-2001 03:13 PM

well if you read the instructions, it tells you. phpMyAdmin IS the easiest way, otherwise you can use the cmd line mysql monitor.

Pie'oh'pah 08-28-2001 12:51 PM

I hate to bring this up, but i've encountered a problem after all:

Some users keep getting the message:

Username already exist, please go back and try again

when they simply modify their profile in any kind, say date of birth.

Anyone else got this problem? And more important: how to fix?

-Alex

Dakota 08-28-2001 02:56 PM

I have had afew users report that to me.

Scott MacVicar 08-28-2001 07:13 PM

make sure the code in line 352 of member.php has

Code:

if ($username != $bbuserinfo[username] && isset($username)) {
at the top if not download the hack again and re apply, else it could be the characters within the persons username, can you show me one of the usernames of people who were trying to change their profile.

Pie'oh'pah 08-29-2001 12:40 PM

Yes mate the line is applied.

Usernames are mostly like this:

[NÐE]-=Pie'oh'pah=-

and this one is working perfectly, even with the ' in it.

It only happens to a few poeple. [LoC]Racoon for example

-Alex

Writers Blockk 09-03-2001 06:36 PM

I'm not sure how to do the beginning part:

Quote:

The first thing you got to do is run these two sql queries which will create variables for use, either via phpMyAdmin

INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('', '6', 'Posts to change username', 'postuserchange', '50', 'Number of posts required for the user to change their own username within the user control panel. If you wish anyone to be able to change username set to 0.', '', '18')

INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('', '6', 'Days between user change', 'dayuserchange', '7', 'Number of days between each time a user is allowed to change their nickname. If you wish the user to be able to change username at any time set to 0.', '', '19')

OR

go to http://www.yourdomain.com/forums/adm...php?action=add
Setting Category: User and registration options
Title: Posts to change username
Variable Name: postuserchange
Value: 50
Description: Number of posts required for the user to change their own username within the user control panel. If you wish anyone to be able to change username set to 0.
Code to generate option: LEAVE THIS BLANK
Display Order: 18

Setting Category: User and registration options
Title: Days between user change
Variable Name: dayuserchange
Value: 7
Description: Number of days between each time a user is allowed to change their nickname. If you wish the user to be able to change username at any time set to 0.
Code to generate option: LEAVE THIS BLANK
Display Order: 18

Adding a table to your forums database
I saw that in my phpadmincenter but I had no idea how to change it or what, I didn't see any add or edit button. It's a bunch of stuff I'm not sure to do, that's the only part I'm not sure what to do on. Can someone help me?

Pie'oh'pah 09-03-2001 11:53 PM

You need to have phpMyAdmin installed.

If you do, you go to your database by clicking it's name on the left.

You'll see it's tables listed and right under it, there's a textfield named

Run SQL query/queries on database 'database name'

This is the field where you drop the text (querries)

INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('', '6', 'Posts to change username', 'postuserchange', '50', 'Number of posts required for the user to change their own username within the user control panel. If you wish anyone to be able to change username set to 0.', '', '18')

INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('', '6', 'Days between user change', 'dayuserchange', '7', 'Number of days between each time a user is allowed to change their nickname. If you wish the user to be able to change username at any time set to 0.', '', '19')

and run them by pressing GO

You can run both INSERT's mentioned at the same time, or one after another.

However, since you are obviously not familiar with phpMyAdmin, make sure you backup your database before messing with it!

-Alex

Writers Blockk 09-04-2001 08:51 PM

Ok I see that now, I just put that stuff in that big box then hit go?

Well in that box it says this before I did anything:

Quote:

SELECT * FROM setting WHERE 1
That was already in there, do I remove that then add that stuff and hit go?

Also how do I back up my database? lol

Sorry, fairly new at this heh.

Thanks

Pie'oh'pah 09-04-2001 10:23 PM

No problem :)

Yes, just remove that line

afterwards run those querries mentioned above.

The backup is done either via the adminCP of you vBulletin or the phpMyAdmin tool.

Using phpMyAdmin, you need to dump (thats the term for backing up) the database, by selecting Structure and Data and Send.

You may select Add drop tables, too. This tells it, to drop existing tables before restoring your database from the backup. It prevents the Table already exists error.

When you checked all the boxes I suggested, press GO and you should be getting a dialog on where to store the file on your local PC.

Depending on the size of you database, the connection and the speed of Server, the proceedure may take some minutes.

hth

-alex

Writers Blockk 09-04-2001 10:48 PM

Ok I'm pretty sure thats finished lol.

I'm now not sure about this part :(

Quote:

Adding a table to your forums database
---------------------------------------
Now you will need to create this table for logging of the username and last time they updated.

CREATE TABLE namelogs (userid INT (5) not null , usernames LONGTEXT not null , lastchange INT (12) not null )

Adding New Templates
Am I still in the the phpadmincenter for this? If so I see nothing about create new table, I see rename to: and Copy table to:

Then I see table maintenance and table comments.

I'm confused lol

Writers Blockk 09-04-2001 11:22 PM

Now I get an erroer when people try to register and when I tried to access the edit options and change profile and change password all in user control panel. It says

Quote:

Parse error: parse error in /home/ashleigh/public_html/forum/member.php on line 1337
Hmmmph

Pie'oh'pah 09-05-2001 12:59 PM

Hey,

sorry i havent said this, yes

CREATE TABLE namelogs (userid INT (5) not null , usernames LONGTEXT not null , lastchange INT (12) not null )

is to run with phpMyAdmin, too. Just paste this and hit GO
This is the last you need to do within phpMyAdmin.

Regarding the parse error you get, thats probably because the hack is not yet completely done.

As for the next step, adding templates, this is to be done in your adminCP

After you created those templates, the last step is to edit the necessary php-files.

I recommend making a copy of the orignals as well.
Just in case you haven't got a good editor, I would also recommend UltraEdit

Ok, hope this is it :)

-Alex

Writers Blockk 09-05-2001 03:20 PM

I did everything and the only wrong still is the pasre error, I redid it and everything

Scott MacVicar 09-05-2001 04:33 PM

paste the contents of member.php

1330 to 1340 please

I'm thinking you have pasted some code in at the wrong point.

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

Scott MacVicar 10-31-2001 03:02 PM

Its been so long since i last looked at these so bare with me.

The last time i checked the usernames are not case sensetive, so the username ppn and PPN are the same people. The check is also not case sensetive.

Signatures are stored in the user table, all it does is rename the username for that id to another username.

DarkReaper 10-31-2001 08:15 PM

I'm having problems with it. As I said before, it tracks the first name change just fine, but after that the table is empty.

Scott MacVicar 10-31-2001 08:26 PM

I suppose i'll re-write the logging code. I'm sure that i've done something wrong there :P

Matt 11-04-2001 07:43 PM

Sorry, just to verify, if I install this will it work? *lol*

I am confused :(

Scott MacVicar 11-04-2001 07:45 PM

yes everything works apart from name logging which i have yet to get around to fiddling with.

Matt 11-04-2001 08:27 PM

Thanks, so far its working great :) :)

Syphin 11-05-2001 02:10 AM

Ok, I installed this a while back... But now how do i change it where they can change there names at any time?

Im kinda confused now... lol

-Syphin

Syphin 11-05-2001 04:25 AM

Anyone?? >_<

Scott MacVicar 11-05-2001 06:10 AM

In the admin cpanel under User and Registration Options

DarkReaper 11-06-2001 08:57 PM

Have you fixed name logging yet?


All times are GMT. The time now is 04:52 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.01420 seconds
  • Memory Usage 1,820KB
  • 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
  • (1)bbcode_php_printable
  • (6)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