News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Post and Change as Alternate User by BurkeKnight Enterprises

Started by Burke ♞ Knight, December 18, 2008, 12:22:17 AM

Previous topic - Next topic

Garou

I finally got the chance to test it out and it works perfectly.

After comparing your version to the one I was working on I was missing the echo statement before the list code based on the rest of the code in that section I didn't think it was needed.

This is the Read Me file I had worked out for my version when I finished it, since you beat me to it, feel free to use and alter it to fit you.

[center][b][color=red][size=14pt]Post as and Attribute Single Post to Alternate User v2.1[/size][/color][/b][/center]
[center]By [b][url=http://custom.simplemachines.org/mods/index.php?action=profile;u=60251]Garou[/url][/b][/center]
[hr]
[center][url=http://www.simplemachines.org/community/index.php?topic=280897.0]Support topic[/url] | [url=http://custom.simplemachines.org/mods/index.php?mod=1554]Link to Mod[/url]
[color=red]Note: Refers to the last incarnation of the mod and will be updated once new support boards and downloads are set up.[/color][/center]
[hr]

[b][color=blue][size=10pt]Introduction:[/size][/color][/b]
This mod consists of two parts.
Post as alternate user, allows members with the assigned permission to post and edit posts as if they are another forum user.

Attribute posts to another user, allows admins to assign ownership of a particular post to another user.

[b][color=blue][size=10pt]Features:[/size][/color][/b]
To post or edit a post as an alternate user click on "Additional Options..." below the post box area, there will be a check box for "Post/Edit As Alternative User" and a box to enter "Alternative User ID:". Make sure the check box is checked and then enter either the user ID of an existing user to post as that user or enter "0" to post as guest Forum Staff.

To edit an existing post and change the author to another existing forum member click on Additional Options... below the post box area, there will be a check box for "Change Poster/Starter" and a box to enter "Poster ID:". Make sure the check box is checked and then enter the user ID of an existing user and the author of the post will be changed to that of a user you chose. [color=red]Note: The UserID you enter must be that of a valid/existing user. You can not attribute the post to a guest or no user.[/color]

To find the ID number of a user go to their profile and look at the URL or link eg.../index.php?action=profile;u=1 "u=some number" the number is the user id of the member.

To set the permission to post and reply as an alternate user edit the permissions for a particular group and under the settings for "Posts", check the box for "Can reply as an alternate user".

The ability to change the author of an existing post is currently an admin only permission and can not be set for another group.

[b][color=blue][size=10pt]Installation:[/size][/color][/b]
To install, simply upload the entire zip file to the package manager (Admin -> Package Manager -> Download New Packages).

To install on a custom theme, please refer to the package parser and manually apply the changes for ./Themes/default/... to  ./Themes/your custom theme/...


[b][color=blue][size=10pt]Compatibility:[/size][/color][/b]
Tested under SMF Versions 1.1.10 and 2.0 RC1 - 2.0 RC2

[b][color=blue][size=10pt]Credits:[/size][/color][/b]
Special thanks to all the people who have worked on this mod (in some version) in the past...
[url=http://custom.simplemachines.org/mods/index.php?action=profile;u=63186]karlbenson[/url], [url=http://custom.simplemachines.org/mods/index.php?action=profile;u=118168][SiNaN][/url], [url=http://custom.simplemachines.org/mods/index.php?action=profile;u=194815]BK-S-M-F Modding Team[/url] aka. [url=http://custom.simplemachines.org/mods/index.php?action=profile;u=150637]BurkeKnight[/url], and [url=http://custom.simplemachines.org/mods/index.php?action=profile;u=207533]TheDeath[/url].

[b][color=blue][size=10pt]Change log:[/size][/color][/b]
[b]Version:2.1[/b] Date: October 22, 2009
* Support for mod taken over by Garou
! Some minor bug fixes
* Updated to support SMF version 2.0 RC2

[b]Version:2.0[/b] Date: June 25, 2009
* Mod updated to support 2.x versions of SMF by TheDeath

[b]Version: 1.5[/b] Date: December 10, 2008
* Change Poster Of Message And Topic & Post As An Alternative User mods taken over by BK-SMF.
+ Both Mods combined for use with SMF 1.1 to prevent conflicts between the two.

[i]All previous incarnations of this mod were created and supported by karlbenson and/or [SiNaN] [/i]

[b]Legend:[/b]
! bug fix
+ added feature
* changed
> Comment


You might also want to add 1.1.x support to the mod or at least direct people to this version for 1.1.x support. This version works fine but if the are any further changes in the 1.1.x line this version may stop working. Either way I'm sure the users appreciate the additional support.

There is some tweaking that could be done to the mod. Back when [SiNaN] was working on these mods separately people were asking that the user ID be changed to user name. There were a couple other things but I don't remember them off hand.

In the end great job and I look forward to what you might come up with in the future.

Turk Navy

Thank you for your comment. However, it seems you worked on this mod more than I did. You prepared your files etc, I didn't know that. So, If you want you can take over this mod. :)

Garou

In the end you found the solution before I did so as far as I'm concerned its yours, I have several other project to keep me busy. Ive just been using these two features a long time and am quite familiar with them. If you aren't interested in supporting the mod for the long term Id be happy to take it on.

These are very useful features not only for me but many members of the SMF community so as long as someone is willing to keep the mod up to date I'm happy. Its completely up to you. :)

Cal O'Shaw

We're on 1.1.10 and our Global Moderators can't post as alternate users, even though I've given them permission.

We have the 1.5 version by BK.  Is there a later version that might fix this?

Grazie!

Garou

Unless some of the code has been changed it should work. Are you getting any errors? Are they seeing the field in post options at all?

Cal O'Shaw

The permissions are set to on, but when they create a new post, they do not see the options to post as another user.  I've uninstalled and reinstalled a few times with no errors.

I should note that we had originally installed both of [SiNaN]'s MODs (with a bit of editing) and it took some work to extract them when he pulled them (when a MOD gets pulled, it's no longer possible to use the manual parse, which makes extracted a dead MOD really, REALLY difficult.  I wish there was a way to stop people from downloaded dead MODs but keep the manual parse feature working).

Garou

Well there are a few of us around that run alternate package parsers on our sites where you upload the packaged mod and then it works pretty much like the SMF parser.

The two I know off the top of my head are http://sleepycode.com/PackageParser and http://smf.balancegames.net/PackageParser

Cal O'Shaw

Ah, grazie!  I'll have to send MODBREAK up as we modified things to utilise permissions with it.

But I am concerned that even though the MOD installed without error, and I gave the permissions to my Global Moderators, they don't see the options when using the Edit Post panel.  But as an Admin, I do.

Cal

Garou

They should be seeing the post as but not the change posts author. Unless you change the mod as I suggested several pages back in this thread attributing a post to another user is an admin only function.

Cal O'Shaw

Then why do I have in Permissions, under Permissions -> Global Moderator -> Global Permissions - > Posts:

"Can reply as an alternate user" and choices of A, D, X

They don't see any additional options than groups with the permission denied.

MoreBloodWine

#110
When you go to modify a message the following error comes up in the error log. My guess is that it's because of the missing text next to the second "tickable" option on the post page where you can change the owner of a topic.

Administrator   Today at 12:36:26 PM 
<ip removed>     c34817ae3874dc85aa86a462789e5b0a 
http://www.mysite.com/index.php?action=post;msg=2;topic=2.0;sesc 
8: Undefined index: changeposterid
File: /home/mysite/Themes/default/languages/Post.english.php (main sub template - eval?)
Line: 564


Edit: I just checked the referenced file and it doesnt even go up to 200 lines and the error is referencing line 564.
Want a sig like mine for your BTCGuild stats ? Then check this out: Spend-ur-Bits


Cal O'Shaw

Quote from: Cal O'Shaw on November 24, 2009, 02:13:38 PM
Then why do I have in Permissions, under Permissions -> Global Moderator -> Global Permissions - > Posts:

"Can reply as an alternate user" and choices of A, D, X

They don't see any additional options than groups with the permission denied.

Hello, just wondering if what I'm seeing is supposed to be there, and if so, why it is not working.

Grazie

C4G-TK

VERY COOL!

Just installed on my RC2 forum w/o problems!

-img removed-

akbora

#113
Thanks TurkNavy!!! Bravo!
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

akbora

Is it possible when we post instead of ID, this ID seems login in online list? Thanks
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Turk Navy

Since we cant get to the current author of this mod, I can't create an official topic and mod page for it. However, I'll try to provide suupport from this topic as I could.

Post as and Attribute Single Post to Alternate User v2.1
Post.as.and.Attribute.Single.Post.to.Alternate.User_RC2.zip
Post.as.and.Attribute.Single.Post.to.Alternate.User_1.1.11.zip

Quote from: akbora on January 05, 2010, 04:46:20 PM
Is it possible when we post instead of ID, this ID seems login in online list? Thanks
I think it is possible, I'll try this on my free time. :)

~DS~

Quote from: Turk Navy on January 12, 2010, 02:05:05 PM
Since we cant get to the current author of this mod, I can't create an official topic and mod page for it. However, I'll try to provide suupport from this topic as I could.

Post as and Attribute Single Post to Alternate User v2.1
Post.as.and.Attribute.Single.Post.to.Alternate.User_RC2.zip
Post.as.and.Attribute.Single.Post.to.Alternate.User_1.1.11.zip

Quote from: akbora on January 05, 2010, 04:46:20 PM
Is it possible when we post instead of ID, this ID seems login in online list? Thanks
I think it is possible, I'll try this on my free time. :)
What's new in the package?
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Turk Navy

I just edited readme files and ordered the codes, there is nothing new actually.


LuminaRS

I've been using this mod for quite some time, I love the ability to designate 0 and have the post come from "Forum Staff"

I wish this worked for PMs

Advertisement: