News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Change Poster Of Topic And Message

Started by [SiNaN], March 20, 2008, 06:18:20 PM

Previous topic - Next topic

pinoypetfinder

awesome. will download and install it now :)

Cal O'Shaw

Just so folk know, [Sinan]'s Post as Alternate User will not coexist with this MOD.  They both edit the same area in the Post.template.php file.

I copied the part of the Post.template.php change between the < tr> and < /tr> into the file after installing the Post as Alternate User MOD.  The ran the install for this MOD, ignored the failure message for Post.template.php, and it all worked.

Not only do I have both working, the Change Poster option is now also assigned by the same Permission as the Alternate User MOD.


Is it possible to have both MODs formally combined?  And available in SMF 2.0.0?

If it will help this to happen I'll be glad to attach my Post.template.php.

Grazie,

Cal

Garou

Yes you can get both of these mods to work you just have to install the second one you install manually.

I'm working on getting both updated to work with 2.0 since SiNaN/Blue Dream is looking for someone to take them over. I'm fairly new to coding and 2.0 is still just in beta but give me some time and Ill have both working on 2.0 and hopefully at least some of the features people have asked for.

While both are useful I doubt that we will ever see them combined into one mod as not everyone wants or needs both functions.

On as side note, this particular mod, Id like to see incorporated into SMF itself as Ive had a need for it on just about every site Ive have the pleasure to be involved with. All to often someone will forget their password and instead of using the password recovery function of SMF, they will just create a new account. This mod goes a long way towards fixing that. At least it beats having to do a bunch of DB queries to merge the users.  :)

[SiNaN]

If anyone plans on taking over the mod and working on an update; you can pm me if you face any difficulties in update. I'll be willing to help you.
Former SMF Core Developer | My Mods | SimplePortal

pinoypetfinder

works very well on our site, blue dream.

do you think it's also possible to have an admin option to change all poster of topic name in just a click?
i mean, let's say a member who used to post a lot of topics decided to delete his/her account, now the name says "MYUSERNAMEROCKS" (sample username), can we just make all those deleted account's post says it's posted by "Guest" or "Expired Account" ?

Burke ♞ Knight

I thought that when a member deleted their account, their posts were changed to Guest posts by default. Still had the user's name, too.

Cal O'Shaw

They are changed to Guest, but they are pretty much orphaned (memberid 0).

We created a memberid named after our forum and have assigned topics created by deleted members to that memberid using this MOD.  This assigned all topics to memberids.

[SiNaN]

Yeah, their id_member is set to 0 and their name is fetched from poster_name field. This query would change all guest posts name to NAMEHERE:

UPDATE smf_messages
SET posterName = 'NAMEHERE'
WHERE ID_MEMBER = 0

Important: Query given above is not tested and I do not give any guarantee and it won't brake your forum. Make sure you have a back-up of your messages table before you try this.
Former SMF Core Developer | My Mods | SimplePortal

pinoypetfinder

again? how do I set that memberid=O to "namesomethingelse" ? where and what files should i modify? appreciate all your help :) thanks in advance :)

[SiNaN]

You mean, you want to change poster_name's of the posts by guests?

For all:

BurkeKnight will be taking over this mod.
Former SMF Core Developer | My Mods | SimplePortal

Acans

a page out of phpbb3, nice.

with you, or burkeknight make this 2.0.4 ?
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not
  dead yet, the time was soon to come to pass when mysql_query shall be gone and no more

[SiNaN]

Former SMF Core Developer | My Mods | SimplePortal

Advertisement: