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)

Amaury 11-17-2012 07:31 PM

Quote:

Originally Posted by DragonByte Tech (Post 2381999)
If not then
Code:

update userchangelog set fieldname = 'username' where fieldname = 'x'
replacing X with whatever the result of the previous query was that is not "username" in all lowercase :)


Fillip

So, for example, replace X with my user ID of 18 again?

DragonByte Tech 11-17-2012 07:41 PM

No. If the DB has an entry "Username" instead of "username", replace X with "Username".

Fillip

Amaury 11-17-2012 07:54 PM

Quote:

Originally Posted by DragonByte Tech (Post 2382015)
No. If the DB has an entry "Username" instead of "username", replace X with "Username".


Fillip

Oh, so if an entry or entries has / have "Username" instead of "username," replace the X with "Username" and run another query to fix all "Username" entries to "username"?

johkalhaups 11-18-2012 08:14 PM

Quote:

A conflict was detected in the bitfields. You cannot continue with the installation of this product until this has been fixed. The conflicts found were:
Bitfield Collision: credits_cantearn = allowvideos
Im getting that trying to update to the latest version of this mod.

Im on vB 4.1.11 PL 1

What is this bitfield?

Amaury 11-19-2012 10:25 PM

I'm not seeing any uppercase results.

Here are my results:

http://i101.photobucket.com/albums/m...Results1-1.jpg

http://i101.photobucket.com/albums/m...Results2-1.jpg

http://i101.photobucket.com/albums/m...Results3-1.jpg

Here's my change log again:

http://i101.photobucket.com/albums/m.../Change1-1.jpg

http://i101.photobucket.com/albums/m.../Change2-1.jpg

http://i101.photobucket.com/albums/m.../Change3-1.jpg

http://i101.photobucket.com/albums/m.../Change4-1.jpg

Also, we don't want anyone other than admins to be able to change usernames. How do we disable the username change option in User CP -> General Settings?

Amaury 11-20-2012 09:36 PM

Bump.

I've been promoted to an administrator again for the time being, so you could create an account and then I could promote you to a temporary admin if you want to have a look for yourself.

I've found two more users to be affected besides the owner and I, making it a total of four users affected. The two more that I discovered are just missing one change, while the owner and I are missing a lot.

Amaury 11-21-2012 01:45 AM

Never mind. I figured out the problem. It was the usergroup options for each usergroup.

This was originally five:

https://vborg.vbsupport.ru/

EDIT: I do have one more question, though. Under the Date Changed column on the history tab, it's the time, a comma, and the date (e.g., 7:24 PM, 11/20/2012). However, I would like the date to be first (e.g., 11/20/2012, 7:24 PM). How would I accomplish this?

Amaury 11-30-2012 10:27 PM

Quote:

Originally Posted by Amaury25 (Post 2383135)
Never mind. I figured out the problem. It was the usergroup options for each usergroup.

This was originally five:

http://i101.photobucket.com/albums/m.../History-1.jpg

EDIT: I do have one more question, though. Under the Date Changed column on the history tab, it's the time, a comma, and the date (e.g., 7:24 PM, 11/20/2012). However, I would like the date to be first (e.g., 11/20/2012, 7:24 PM). How would I accomplish this?

Bump.

DragonByte Tech 12-01-2012 08:29 PM

You'll need to edit this line in /dbtech/username_change/includes/class_profileblock.php
PHP Code:

$entry['change_time'] = vbdate($this->registry->options['timeformat'], $entry['change_time']) . ', ' vbdate($this->registry->options['dateformat'], $entry['change_time']); 


Fillip

Amaury 12-01-2012 08:33 PM

Quote:

Originally Posted by DragonByte Tech (Post 2387422)
You'll need to edit this line in /dbtech/username_change/includes/class_profileblock.php
PHP Code:

$entry['change_time'] = vbdate($this->registry->options['timeformat'], $entry['change_time']) . ', ' vbdate($this->registry->options['dateformat'], $entry['change_time']); 

Fillip

Aw, I was hoping it'd be a simple template edit.

Unfortunately, I'm no expert at server work. I have the server information, but all I know how to do is take backups.

I can send you the information, if you'd be willing to do it, though. :)


All times are GMT. The time now is 08:03 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.03230 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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