vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - [DBTech] Username Change v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=236980)

BlackJacket 02-28-2010 08:28 PM

Quote:

Originally Posted by Switch3130 (Post 1993977)
Well please add that soon because this does no good for me until this is added.

Wouldn't it be easier to add those names to the Illegal User Names under the user registration options?

meissenation 03-01-2010 12:31 PM

This is great - thanks for sharing!!!!

woffie 03-01-2010 02:01 PM

Nice, I installed this on my test forum. I changed my name in my profile and now I cant get into my Admin Control Panel. Also, you cannot change your username back to the original name.

BlackJacket 03-01-2010 02:27 PM

Quote:

Originally Posted by woffie (Post 1994485)
Nice, I installed this on my test forum. I changed my name in my profile and now I cant get into my Admin Control Panel. Also, you cannot change your username back to the original name.

What is your username re-use delay set at? Check at admincp > settings > user registration options. All the way at the bottom.

Not sure why it would not let you login. I will test this also and verify.

DragonByte Tech 03-01-2010 02:53 PM

Are you sure you weren't attempting to login with your old username?
I've had no problems logging in to my AdminCP with my new username once it's been changed.

Fillip

Xeyn 03-01-2010 03:01 PM

This is a cool mod..but i have the same issue...You can not change back to the username you where to begin with...Could you correct this?can not wait to make it live.....thx

Alex@Mk3OC 03-01-2010 03:03 PM

Is there a way of making certain usergroups only able to request a change and for a member of admin to have to approve it?

We've got one currently on our 3.8 board which does this and it's ideal

DragonByte Tech 03-01-2010 03:08 PM

Quote:

Originally Posted by Xeyn (Post 1994522)
This is a cool mod..but i have the same issue...You can not change back to the username you where to begin with...Could you correct this?can not wait to make it live.....thx

That's probably the Username Reuse Delay setting under User Registration Options :)

Quote:

Originally Posted by Alex@Mk3OC (Post 1994523)
Is there a way of making certain usergroups only able to request a change and for a member of admin to have to approve it?

We've got one currently on our 3.8 board which does this and it's ideal

That's outside of the scope of the modification as-is, but we are thinking about expanding it and this would definitely be a feature on the list for such an expansion :)


Fillip

Xeyn 03-01-2010 03:23 PM

Ahhh dragonn..my bad..thx very much......All working now.....:-)

Devile 03-02-2010 12:25 PM

Great mod. Making it accessible only to certain usergroups will make it perfect.

DragonByte Tech 03-02-2010 05:22 PM

Quote:

Originally Posted by Devile (Post 1995213)
Great mod. Making it accessible only to certain usergroups will make it perfect.

That's been a feature since day 1 of the mod's release :)


Fillip

Alex@Mk3OC 03-02-2010 08:15 PM

Quote:

Originally Posted by DragonByte Tech (Post 1994526)

That's outside of the scope of the modification as-is, but we are thinking about expanding it and this would definitely be a feature on the list for such an expansion :)


Fillip

Cool, will keep an eye on this mod for that feature

Shamil. 03-02-2010 09:39 PM

Developer, this mod contains original vB file, from Beta 4....

Created: 20:22, Sat Nov 21st 2009

Paul M 03-02-2010 09:48 PM

No it doesnt :)

However, the file class_profileblock.php does have a vbulletin vb4 header, including licence code - you need to correct that.

DragonByte Tech 03-02-2010 09:58 PM

Copy paste fail :p

It's been taken care of, thanks :)


Fillip

utahraves 03-02-2010 11:32 PM

What is with the update? I was going to redownload but looks like nothing is new.

DragonByte Tech 03-02-2010 11:58 PM

Had to update a file's header comment, nothing to see here :p


Fillip

utahraves 03-03-2010 12:00 AM

oh lololol

Sayid 03-03-2010 06:32 PM

WoOoW if I see [DBTech] mods and gold in front of me, I will certainly select [DBTech] :d
rated 5, nominated and tagged ;)

tinkleondabeach 03-03-2010 09:38 PM

Would this work for 3.8?

Diana Notacat 03-03-2010 09:47 PM

LIFE SAVERS. Thank you. I will now be safe from my username change happy members who like to annoy me with requests!

DragonByte Tech 03-03-2010 10:29 PM

Quote:

Originally Posted by tinkleondabeach (Post 1996438)
Would this work for 3.8?

No, but Marco's old mod for 3.5 still works on 3.8 :)


Fillip

RedHacker 03-06-2010 03:48 PM

User Profile

* Username History

For show this must change username...?

DragonByte Tech 03-06-2010 04:31 PM

Yeah, username must have been changed at least once in order for the History to appear in the profile :)


Fillip

sung 03-06-2010 06:14 PM

Quote:

Originally Posted by DragonByte Tech (Post 1996471)
No, but Marco's old mod for 3.5 still works on 3.8 :)

Is there any possibility to import the name change history/information from Marco's plugin to this one?

DragonByte Tech 03-07-2010 10:09 AM

No, sorry that's not possible.
Marco's plugin uses its own method of storing information, whereas I use vBulletin's method (which, in fairness, didn't exist in vB 3.5 which is what Marco's plugin was written for).

sung 03-08-2010 02:42 AM

Quote:

Originally Posted by DragonByte Tech (Post 1998993)
No, sorry that's not possible.
Marco's plugin uses its own method of storing information, whereas I use vBulletin's method (which, in fairness, didn't exist in vB 3.5 which is what Marco's plugin was written for).

I realize they use different methods for storing the information, but as long as the information was about the same it should be possible to either manually or with a script move the information over.

It would be nice not to lose the username history, as well as resetting all the name change timers/counters, when moving from Marco's to your mod.

DragonByte Tech 03-08-2010 10:17 AM

Well yeah it's not like it's entirely impossible, we just have no plans of writing such a script at this time because not everybody who installs this is upgrading from 3.8 :)

It's been a while since I dealt with Marco's mod, but doing it manually would work too, I guess.


Fillip

sung 03-19-2010 03:04 PM

Here's the script I made/used to go from Marco's name change mod to this one.

PHP Code:

<?php

// Change this stuff

$dbhost 'host';
$dbuser 'user';
$dbpass 'pass';
$dbname 'table';

// END OF STUFF TO CHANGE

$mysqli = new mysqli($dbhost$dbuser$dbpass$dbname);

if(
$mysqli->connect_error) {
   die(
"Connect Error: " $mysqli->connect_error);
}

// Get current usernames for users that have changes
$result $mysqli->query("SELECT distinct mh_unm_history.userid, user.username FROM mh_unm_history, user WHERE user.userid = mh_unm_history.userid");
while (
$row $result->fetch_row()) {
   
$usernames[$row[0]] = mysql_real_escape_string($row[1]);
}
$result->free_result();

// Get the username changes
$result $mysqli->query("SELECT * from mh_unm_history ORDER BY userid ASC, dateline DESC");
while (
$row $result->fetch_row()) {
   
$userid $row[0];
   
$dateline $row[1];
   
$oldname mysql_real_escape_string($row[2]);
   
$adminid $row[3];
   
$uniq md5($dateline $userid $userid rand(1111,9999));

   
// Build the array of queries we'll execute later
   
$q[] = "INSERT INTO userchangelog VALUES('', $userid, 'username', '$usernames[$userid]', '$oldname', $adminid$dateline, '$uniq')";

   
// Set the username as the old one in the
   // event there are multiple name changes
   
$usernames[$userid] = $oldname;
}

foreach (
$q as $query) {
   if (!
$mysqli->real_query($query))
      echo 
"FAILED: " $query "<br>\n"
}

$result->close();
$mysqli->close();
?>


Things I know will cause issues: if you don't have the mysqli (notice the i) extension or use a prefix on your forum tables.

You're on your own to backup/test/verify/etc the above code will work for you!

Das UndergrounD 03-31-2010 12:49 PM

I need this mod for vb3.8 please!!!

SpaceStar 03-31-2010 01:50 PM

Thanks - I was looking for this.

chrisdaman 04-01-2010 01:49 PM

This may have already been noted, but would it be possible to include a star or graphic beside a user's username for say 30-days, if they change their username? This way, it would help other members recognize who the member is, help prevent scamming, etc.

nul7 04-01-2010 04:12 PM

^^^ That's what I was thinking as well...and maybe a way for say instead of a usergroup to allow change of name, maybe have it work with say donation of XX$ to the site and then they can change from there, sort of how it works on xbox live?

kevius 04-02-2010 11:35 AM

hello,

Is it possible ton add an option for change author name in a selected post (only available for admin/moderator) ?

DragonByte Tech 04-04-2010 12:32 PM

Quote:

Originally Posted by Das UndergrounD (Post 2013419)
I need this mod for vb3.8 please!!!

Marco's username change mod still works for 3.8 :)

Quote:

Originally Posted by chrisdaman (Post 2014038)
This may have already been noted, but would it be possible to include a star or graphic beside a user's username for say 30-days, if they change their username? This way, it would help other members recognize who the member is, help prevent scamming, etc.

Quote:

Originally Posted by nul7 (Post 2014141)
^^^ That's what I was thinking as well...and maybe a way for say instead of a usergroup to allow change of name, maybe have it work with say donation of XX$ to the site and then they can change from there, sort of how it works on xbox live?

Quote:

Originally Posted by kevius (Post 2014573)
hello,

Is it possible ton add an option for change author name in a selected post (only available for admin/moderator) ?

These features are currently outside the scope of the modification, but if we ever turn this into a full-fledged username management mod, then we'll be sure to include them :)


Fillip

Dadoo 04-05-2010 12:06 AM

1 Attachment(s)
Vbulletin-fr.org is proud to provide you the French translation of Username Change v1.1.0

IMPORTANT : this zip file contains ONLY french phrases in XML file, not the product.

Installation instructions are inside zip.

losedude 04-05-2010 01:43 PM

I installed this mod and gave it to my staff members to test.

They changed their suername and it worked, but now when they try posting they get this error :

PHP Code:

Fatal error:  Call to undefined function tt_csv_explode() in /home/public_html/v2/includes/functions_newpost.php(418)  : eval()'d code on line 9 

What should I do ?

DragonByte Tech 04-05-2010 02:06 PM

That error is not caused by this mod per se, another addon doesn't properly handle username changes like vBulletin intended.
This mod follows vBulletin set standards.

Fillip

CvP 04-10-2010 06:25 AM

works on 4.0.3?

DragonByte Tech 04-10-2010 01:02 PM

I don't see why not, we're running 4.0.3 on our board just fine :)
4.0.1 is the version it doesn't run on ;)


Fillip


All times are GMT. The time now is 01:01 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.01399 seconds
  • Memory Usage 1,841KB
  • 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
  • (2)bbcode_php_printable
  • (13)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