Welcome, Guest. Please Login or Register.
November 26, 2024, 04:37:24 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: [Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange  (Read 6668 times)
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« on: May 27, 2003, 03:45:59 AM »
Reply with quote

Okay, after much testing and troubleshooting and fixing, to guarantee that it'll work with the YSE system, I have come up with a quick and easy solution to allow Administrators to change their log in name for the forums (this was based on user request).  Please read the entire thing before downloading this script.

As this is not a file modification, but rather, a database modification script, I didn't know where to put this, hence putting it here. This has been confirmed to work on Linux/Unix systems, but not on Windows (Don't know why, though).

Please read this before you download it.

I have tested this on one of my own forums to ensure that it works.  While it does work, I will not guarantee that it will work on your system.

VERY IMPORTANT!  After you run this script, DELETE it from your FTP area or CHMOD it 000 IMMEDIATELY!  Leaving this file up provides a VERY major security risk, as anyone can use this to reset an Admin's account with their own!  I cannot and will not be held responsible for any negligent action as a result of you leaving this file up or not CHMODding it.

Using this is done at your OWN risk.  By downloading this file and uploading it to your server, you signify that you agree to this.


Having said this, this script will make the following changes:

Updates the following tables, as indicated:
Quoteinstant_messages SET fromName='newname' WHERE fromName='oldname'
instant_messages SET toName='newname' WHERE toName='oldname'
messages SET posterName='newname' WHERE posterName='oldname'
members SET memberName='newname' WHERE memberName='old username'

It also updates your password to reflect the new name changes.  It does NOT update the Moderators for various forums, you will need to do this manually.

Once you run this script, it will change your log in name to the one you indicated, and the password to the password you indicate.  Download this, unzip it and then upload it to the same directory that Settings.php is located at (Settings.php is case sensitive).  If you have renamed or changed casings of Settings.php, open the file in any text editor and change the first line to reflect your current settings file.

I do not warranty that this will work, I will provide limited guidance and assistance, but will not be able to help fix corrupted databases, should that happen.  As indicated above, this is a fully unsanctioned script that provides a major security risk to your forums (and possibly your database server).

To the YaBB SE Devel team, if you want to incorporate this into a future version, be my guest, no credits necessary.  To any forum developer outside of the YaBB SE Devel Team, you will need to obtain written authorization from me (Douglas, webmaster at therealms dot net) before you include this in your systems (yes, this means you too, ajp! You know who you are.  :/ ).

For additional information, please view the enclosed readme.txt file, as well.

Updated Today at 07:03:28pm, to remove one line of coding in the script itself, and to adjust grammar in the readme.txt.
« Last Edit: June 25, 2003, 02:31:27 PM by Douglas » Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
madfiddler
Noobie
*
Posts: 28


I'm a llama!

Re:[Done: 1.5.1 Final, 1.5.2 & 1.5.3] QuickNameChange
« Reply #1 on: June 01, 2003, 01:34:10 AM »
Reply with quote

Great. Thanks for this. I had to change my original name to another name as people were getting a little confused. I did this by editing the database by hand, which was fine apart from the messages that I had already posted.

The mod worked in changing all old messages to my new username.
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:[Done: 1.5.1 Final, 1.5.2 & 1.5.3] QuickNameChange
« Reply #2 on: June 01, 2003, 02:26:17 PM »
Reply with quote

Glad this helped you.  Thanks for letting me know how it worked.  :)
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
BDM
Noobie
*
Posts: 20


I'm a llama!

Re:[Done: 1.5.1 Final, 1.5.2 & 1.5.3] QuickNameChange
« Reply #3 on: June 25, 2003, 07:11:55 AM »
Reply with quote

I get this error:
Notice: Undefined variable: action in f:\program files\apache group\apache\htdocs\yabbse\changename.php on line 41


Any clue on how to fix it? Thank you  :-\
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:[Done: 1.5.1 Final, 1.5.2 & 1.5.3] QuickNameChange
« Reply #4 on: June 25, 2003, 02:28:09 PM »
Reply with quote

My fault.

Change Line 41, which currently reads this:
if ($action == "") { Intro(); } if ($action == "doit") { DoIt(); } ?>

Change it with this:
switch ($action) {
case "": Intro(); break;
case "doit": DoIt(); break;
} ?>


Download the latest one (will have it in just a few minutes), as I've fixed that and possibly the path statement for Window servers (untested, however).

Also, because you're on a Windows machine, there may be problems with how the script works.  I think that if you just adjust the include statement to point to the correct location of
Settings.php, you'll be fine.  Keep me posted, please!
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
BDM
Noobie
*
Posts: 20


I'm a llama!

Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #5 on: June 25, 2003, 10:18:26 PM »
Reply with quote

After the change i still get this error:

Notice: Undefined variable: action in f:\program files\apache group\apache\htdocs\yabbse\changename.php on line 41

:'(

What do I have to adjust? Here is the location of my settings.php:

F:\Program Files\Apache Group\Apache\htdocs\yabbse\settings.php
« Last Edit: June 25, 2003, 10:21:29 PM by BDM » Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #6 on: June 26, 2003, 12:29:19 AM »
Reply with quote

Edit the first line up at the top to match the casing of settings.php
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
BDM
Noobie
*
Posts: 20


I'm a llama!

Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #7 on: June 26, 2003, 12:33:03 AM »
Reply with quote

I dont understand man  :-\ Im new to this stuff...
Logged
number6
Noobie
*
Posts: 21


WWW
Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #8 on: June 26, 2003, 12:41:27 AM »
Reply with quote

Even though you are on a windows server and the case of letters usually does not matter the PHP scripts that make up your forum are like the C programming language, case sensitive. So Settings.php and settings.php are actually different files. Since the script is looking for Settings.php you need to edit the script to match what the file is called on your server.  I am surprised you are not having all kinds of problems with your forum if all of your files are lower case.

Hope that helps.
Logged
BDM
Noobie
*
Posts: 20


I'm a llama!

Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #9 on: June 26, 2003, 12:47:45 AM »
Reply with quote

The cassing is correct Douglas, Settings.php  ???
Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #10 on: June 26, 2003, 12:52:47 AM »
Reply with quote

Please provide a link to your forums.
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
number6
Noobie
*
Posts: 21


WWW
Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #11 on: June 26, 2003, 12:52:57 AM »
Reply with quote

But you showed your file as:

Quote
F:\Program Files\Apache Group\Apache\htdocs\yabbse\settings.php

Is the casing the same in the script and on your server?
Logged
BDM
Noobie
*
Posts: 20


I'm a llama!

Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #12 on: June 26, 2003, 01:20:44 AM »
Reply with quote

Quote from: Douglas on June 26, 2003, 12:52:47 AM
Please provide a link to your forums.

Here you go man:
http://pavehawk.2ya.com/

Heres the correct path:
F:\Program Files\Apache Group\Apache\htdocs\yabbse\Settings.php

Its a capital S  :P
« Last Edit: June 26, 2003, 01:26:36 AM by BDM » Logged
Douglas
aka The Bear
Support Team
YaBB God
*****
Posts: 1050


Bears rule! Llamas rule too!

WWW
Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #13 on: June 26, 2003, 01:57:13 AM »
Reply with quote

Have you had to modify any of your YSE files to work correctly?  I'm completely at a loss as to why this isn't working.  At this point in time, I am at a total loss.  Let me see if I can get David or Michelle to take a peek at this, though it does seem like you're on an outdated version of YSE.

For the record, my script's been tested with YSE as a standalone system, and not with Michelle's system (which you're currently running).
Logged

Need help? Please SEARCH first.  No need for a bad attitude, we like helping positive minded people.
ComeHit.us Short URL  redirection svcs with YSE powered forums, COMING SOON!
Want to say thanks?  Check out http://comehit.us/?u=3
number6
Noobie
*
Posts: 21


WWW
Re:[Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange
« Reply #14 on: June 26, 2003, 01:59:02 AM »
Reply with quote

Well I like the layout of your site. Sorry I can't help you at this point. I am sure Douglas will fix your problem.
Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done: 1.5.1 Final, 1.5.2 - 1.5.4] QuickNameChange « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.062 seconds with 20 queries.