News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Alternate User Posting

Started by Diego Andrés, July 28, 2010, 10:51:21 PM

Previous topic - Next topic

HunterP


Bugreport; When editing a posting (changing the username) which happens to be the id_first_msg of a topic, the id_member_started is NOT changed in smf_topics.

I hope this can be fixed, also I'm looking for a query which fixes this for previous changed postings. A sort of loop trough all topics, and check if the id_member_started in smf_topics is the same as the id_member for that id_message in smf_messages. If not, overwrite the id_member_started with id_member.

I hope this is clear enough, sorry :)

gafai

hello

Can you add to your mod - posting as anonym?
or posting as every alternatives not only "existing" users?

i cant find answer on support board


Eclipse16V

Has anyone test it on SMF 2.0.2?
I worked with:
SMF 2 in German

Shop:
SID Giessen

Bugo

There is a small XHTML validation error in Post.template.php.

Fix
find:
  <script type="text/javascript"><!-- // -->
            var oMemberSuggest = new smc_AutoSuggest({

replace with:
  <script type="text/javascript"><!-- // --><![CDATA[
            var oMemberSuggest = new smc_AutoSuggest({

Simple Site Designs

Noticed an issue where when posting as an alternate user, the email alert still has the name "{POSTERNAME}" of the logged in user, instead of the user posted as.
Can anyone confirm this and/or tell me how to correct it?

Simple Site Designs

#45
Quote from: Simple Site Designs on November 07, 2012, 10:40:53 PM
Noticed an issue where when posting as an alternate user, the email alert still has the name "{POSTERNAME}" of the logged in user, instead of the user posted as.
Can anyone confirm this and/or tell me how to correct it?

I managed to fix the issue with the below small changes.

In Subs-Post.php

$topicData[$row['id_topic']] = array(
  'subject' => $row['subject'],
  'body' => $row['body'],
  'last_id' => $row['id_last_msg'],
  'topic' => $row['id_topic'],
  'name' => $user_info['name'], <-- change to $row['poster_name']
  'exclude' => '',
);


In Post.php

$notifyData = array(
  'body' => $_POST['message'],
  'subject' => $_POST['subject'],
  'name' => $user_info['name'],
  'poster' => $user_info['id'], <-- change to isset($alt_name) && $alt_name != '' ? $alt_name : $user_info['name']
  'msg' => $msgOptions['id'],
  'board' => $board,
  'topic' => $topic,
);

techguy

For some reason this did not work for me,
I am admin of my site and create 2 post as a different user but the poster name shows as administrator not the person whom I posted as?

techguy


Sapozhnik

Quote from: Bruno36 on August 28, 2010, 05:41:20 AM
Hello the name of the former member is not changing

Good nickname


Bad nickname

The mod doesn't change id_member_started in table SMF_Toppics when you replace name of member in first message.
Who can solve this problem? ;)
Thanks

NekoJonez

Can you make it that some can only use "change poster"?
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Tavsih

Quote from: Eclipse16V on June 29, 2012, 06:02:07 AM
Has anyone test it on SMF 2.0.2?
works fine on 2.0.2,2.0.3 and 2.0.4 as well .

BillLeeDee

#51
I'm assuming that since the mod's creator hasn't been on for more than a year that this is a dead mod. I had been interested in this mod for the rare occasion of missing / corrupt post replacements.

I had gleaned the thread and it looks as the first post in a topic can't be correctly attributed to an alternate member, is that still the case? That would be pretty important to me using the mod as an admin. With that in mind, does the mod correctly attribute the post to the alternate user so they can modify and/or edit it themselves?

Thanks in advance.

petb

Quote from: Sapozhnik on January 19, 2013, 04:38:27 AM
Quote from: Bruno36 on August 28, 2010, 05:41:20 AM
Hello the name of the former member is not changing

Good nickname


Bad nickname

The mod doesn't change id_member_started in table SMF_Toppics when you replace name of member in first message.
Who can solve this problem? ;)
Thanks
I found this Problem also.
After changing the First Post in a topic,
the Topic is still listed as Started from the previous Starter/Owner.

Maybe theres a need to implement another DB Update !?
Is it really only needed to change the ID in only the SMF_Toppics ?

colby2152

This mod is useful for handling multiple profiles.  One thing I would love to see is an automatic update of the alternate user's "last login time".  It would be nice to have that updated as the greater of it's previous value and the timestamp of the alternate post/edit.
ProFSL.com - Pro Fantasy Sports Leagues - Advanced fantasy sports leagues, contests, free chances at cash/prizes, and sports discussion.

Need a server? I am happy to advocate this hosting solution - hands on customer service and reliability is relieving!!!

Torngate

Since this mod was updated on February 13 of this year, I'll assume it's OK to necro this post to ask a question. If it's not ok, I do apologize.

Is there a way to limit the number or names of approved users?

Ex, person A is limited to only posting as themselves, user B, or User C but not user D?

Thanks!
Site Administrator- Shadow Fleet Star Trek RPG

landyvlad

Anyone know if this is still supported and whether it will be updated for 2.1 compatability?
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it

Diego Andrés

This mod is still working for current versions (SMF 2.0.x)
Will be updated eventually for 2.1. I currently don't have enough time for doing it, but will happen at some point in the next few months perhaps, hopefully soon.

SMF Tricks - Free & Premium Responsive Themes for SMF.

landyvlad

Thanks for the update Diego, Much appreciated.

Great functionality - look forward to seeing this - will be very helpful for me as I have just set up a  new 2.1 forum :)
Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it

shadav

need a bit of help please :)
in sources/sub-posts.php

I can not find
'current_member' => $posterOptions['id'],

and I can't find
$topicOptions['id'], $posterOptions['id'], $msgOptions['id'])
I do however have
$topicOptions['id'], $posterOptions['id'], $msgOptions['subject'], $msgOptions['body'],
so if i just replace it like
$topicOptions['id'], !empty($posterOptions['real_id']) ? $posterOptions['real_id'] : $posterOptions['id'],  $msgOptions['subject'], $msgOptions['body'],]),
would that be ok?

I think that this and the post anonymously mod don't really work together maybe......
any help?

everything else passes, it's just those two things that are giving errors on the install....

Diego Andrés

1.
Code (Search) Select
'current_member' => $original_id,
Code (Replace) Select
'current_member' => !empty($posterOptions['real_id']) ? $posterOptions['real_id'] : $original_id,,

2.
Code (Search) Select
array($topicOptions['id'], $original_id, $msgOptions['id']),
Code (Replace) Select
$topicOptions['id'], !empty($posterOptions['real_id']) ? $posterOptions['real_id'] : $original_id, $msgOptions['id'])

Haven't tested it tho

SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: