Welcome, Guest. Please Login or Register.
November 25, 2024, 11:37:42 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

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


Bears rule! Llamas rule too!

WWW
[Done: 1.5.1 Final - 1.5.4] Attribute Posts To User
« on: June 02, 2003, 10:55:48 PM »
Reply with quote

This script is designed to help a YaBB SE Administrator "recover" posts that were made by a now defunct poster, who has since re-signed up to the forums.  This script will review the existing posts that have deleted/closed accounts and update the originating poster's info with the new member's user ID and memberName.  This will NOT update the topics table, since that is tied into ID_MEMBER, and if you don't know the member's old ID, it's just too hard to track it down.

Without this script, there are 1 tables/2 fields that need to be adjusted manually.  This script solves that dilema very quickly and easily.  Read on for instructions/directions.

DIRECTIONS -=- DIRECTIONS -=- DIRECTIONS -=- DIRECTIONS -=- DIRECTIONS
Okay, after much testing and troubleshooting and fixing, it'll work with the YSE system.

This is designed to work SPECIFICALLY with 1.5.1 FINAL THROUGH 1.5.4, if anyone else needs to utilize this "tool".  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!  VERY IMPORTANT!  VERY IMPORTANT!  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 post as 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.
VERY IMPORTANT!  VERY IMPORTANT!  VERY IMPORTANT!  VERY IMPORTANT!


Using this is done at your OWN risk.  I cannot and will not be held responsible for any potential or actual damage this script does.  I have tested this on one of my client's sites to ensure it works.  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/fields, as indicated:
Quote
messages SET ID_MEMBER='newmemberID' WHERE posterName='oldmemberName'
messages SET posterName='newmemberName' WHERE posterName='oldmemberName'

Once you run this script, it will update all posts, but not threads, to point it from a deleted account to the newly created account. 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.

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.  :/ ).

Credit goes to charlottezweb for kickin' me in the butt to come up with this.

IMPORTANT: After running the script, log into your Admin area and click on the link to update post counts.  While my script adjusts the posts, assigning them to a valid user, it does NOT adjust post counts.  You will need to manually do that.
« Last Edit: November 03, 2003, 10:54:31 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
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:[Done: 1.5.1 Final, 1.5.2 & 1.5.3] Attribute Posts To User
« Reply #1 on: June 03, 2003, 03:03:17 AM »
Reply with quote

That did the trick, well done!!

Jason
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
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] Attribute Posts To User
« Reply #2 on: August 23, 2003, 05:58:39 PM »
Reply with quote

If this feature isn't added in on SMF 1.x, I will update this mod and add in a feature that updates the person's profile with the current number of posts.
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
charlottezweb
Sr. Member
****
Posts: 446


charlottezweb.com

ICQ - 101387162 WWW
Re:[Done: 1.5.1 Final, 1.5.2 & 1.5.3] Attribute Posts To User
« Reply #3 on: August 23, 2003, 09:28:34 PM »
Reply with quote

Sweetness, and thanks again for the help last night with  post count

Jason
Logged

"yabb-sense makes the heart grow fonder"
-----------------------------------------------------
Charlottezweb.com
Reliable, well-supported & affordable hosting and design.  Free Yabbse installs.
Shadow's Pawn
Support Team
YaBB God
*****
Posts: 597


ich soll nicht toten

ICQ - 8039201shadowpawn@hotmail.com WWW
Re:[Done: 1.5.1 Final, 1.5.2 & 1.5.3] Attribute Posts To User
« Reply #4 on: August 26, 2003, 03:32:27 AM »
Reply with quote

This is really useful when I don't feel like doing all the queries myself.  Wish I had seen it earlier before I did a ton of posts manually in phpmyadmin.. heh, well this saved me time on the rest of it though.

Thanks.
Logged

apologize \A*pol"o*gize\, v. i. - To lay the foundation for a future offense.
newbieyabbie
Jr. Member
**
Posts: 83


ahead warp nine

Re:[Done: 1.5.1 Final, 1.5.2 & 1.5.3] Attribute Posts To User
« Reply #5 on: September 30, 2003, 01:45:58 AM »
Reply with quote

This is realy useful, nice job.
I had a little problem updatinf the topiv count. I did it manually through the admin center, but it wasn't fixing it, so I changed the number in MySQL.
Anyone knows what might have caused that?
Thanks
Logged

Go beyond what you know!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done: 1.5.1 Final - 1.5.4] Attribute Posts To User « 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.066 seconds with 21 queries.