TinyPortal

Development => Support => Topic started by: espressoguy on September 18, 2008, 09:45:11 PM

Title: Locking Articles (Global Moderators)
Post by: espressoguy on September 18, 2008, 09:45:11 PM
I've experimented with this (using demo installs of .98 and 1.05) and read the documentation but am unsure what the answer is.

I see that it's possible to lock an article (so that no one else tries to edit it simultaneously) but it seems that this must be done through the Admin panel which would seem to imply that a global moderator can't lock the article since a global moderator is not an Admin.  Is the lock functionality available only to Admins ?

Also, I don't see a way for a global moderator to add an article except by clicking the "edit article" link at the bottom of an article to make the "Main" and "TinyPortal" admin boxes appear on the left side of the screen.  There's an admin link on the menu for global moderators but clicking it gets an error message ("You are not allowed to administrate this forum")
Title: Re: Locking Articles (Global Moderators)
Post by: IchBin on September 19, 2008, 01:51:05 AM
The lock ability is only available to those who you give "moderate articles" permissions. You set that in each groups permissions in the SMF groups permissions page.

It is not possible to lock an article while another member edits the same article.

The add article link should be in the user box, but that depends on which version. But since you aren't saying which version you want an answer too...
Title: Re: Locking Articles (Global Moderators)
Post by: espressoguy on September 19, 2008, 04:34:03 AM
Hi IchBin,
    I'm hoping to go with 1.05 (still working with demo installs at this point)...
      Okay I have just confirmed that in 1.05, global moderator can get in through the User Box to add and lock articles.  That answers my question!

Thanks IchBin !! :)
Title: Re: Locking Articles (Global Moderators)
Post by: espressoguy on December 01, 2008, 06:45:04 AM
Okay I give up....
     I thought I had seen a way to lock an article but now I can't find it.    What I'm talking about is if two people have "moderate articles" permission and one of them wants to edit an article, how is it possible to lock this article only so that the other person with "moderate articles" permission doesn't edit it simultaneously and overwrite the other moderator's edits ?

(SMF1.1.6/ TP 1.05)
Title: Re: Locking Articles (Global Moderators)
Post by: G6Cad on December 01, 2008, 08:03:05 AM
Thats not possible, if you have lets say 4 moderators in one group, the group are the ones with permissins, not the individual moderator
Title: Re: Locking Articles (Global Moderators)
Post by: espressoguy on December 01, 2008, 01:54:53 PM
Quote from: IchBinâ,,¢ on September 19, 2008, 01:51:05 AM
The lock ability is only available to those who you give "moderate articles" permissions.

...so IchBin, what were you referring to when you mentioned a "lock ability"?
Title: Re: Locking Articles (Global Moderators)
Post by: IchBin on December 01, 2008, 03:14:09 PM
Lock = locking an article so it can NOT be edited. Its a feature in TP 1.x When you view the list of article in your manage articles section. You'll see the lock article icon next to the edit, sticky, frontpage icons for the article.
Title: Re: Locking Articles (Global Moderators)
Post by: espressoguy on December 01, 2008, 08:14:51 PM
Thanks IchBin ...that's what I wanted to know. 

   ...however, perhaps it is not working now (SMF1.1.6/TP1.0.5).  The "Lock" icon is working; it is possible to turn it on and off; however, when an article is locked by another user, the "edit article" link is still active for a user (with "moderate articles" permission) other than the one who locked it and it is still possible for that other user to edit the article and save the edits.  Is this all correct behavior ?

   Note however that I haven't tested the case where one user locks the article, then actually starts editing it (to see if the "edit article" link shows up for the other user in that scenario). 
Title: Re: Locking Articles (Global Moderators)
Post by: IchBin on December 01, 2008, 08:37:34 PM
I do believe locking an article only locks it for the user who does NOT have manage articles permission. So a user who creates an article who would normally be able to edit their own article cannot edit it if locked. That is the way I understand it, but I have not tested it myself.
Title: Re: Locking Articles (Global Moderators)
Post by: espressoguy on December 01, 2008, 08:48:04 PM
Yes, that's what I was expecting also but when I tested it I'm seeing it's not working that way.   Another user with "moderate articles" permission is fully able to edit it. 
Title: Re: Locking Articles (Global Moderators)
Post by: IchBin on December 01, 2008, 08:55:58 PM
A person with "moderate articles" SHOULD have this permission. The locking ability should only apply to people who ONLY have submit article permissions who can edit their own article.
Title: Re: Locking Articles (Global Moderators)
Post by: espressoguy on December 01, 2008, 09:03:24 PM
Oh ...okay ...now I see.  So there is nothing to prevent two global moderators from overwriting each other's changes if they edit an article simultaneously ...right?   

Can ownership of an article be changed easily through the TP interface (ie. move ownership from one member to another) or can this only be done through the database?
Title: Re: Locking Articles (Global Moderators)
Post by: IchBin on December 01, 2008, 09:13:56 PM
I don't recall a way to change the owner of an article. You'll most likely have to edit that in the database.
Title: Re: Locking Articles (Global Moderators)
Post by: espressoguy on December 01, 2008, 11:04:39 PM
Quote from: IchBinâ,,¢ on December 01, 2008, 08:55:58 PM
A person with "moderate articles" SHOULD have this permission. The locking ability should only apply to people who ONLY have submit article permissions who can edit their own article.
One more question comes up here....
    In view of the fact that locking does not protect two global moderators from overwriting each other, what is the intended use of the locking capability?  Is it simply so that a moderator can prevent the one person who "owns" the article from editing that particular article any further?

    ...or is there somthing I'm missing here?
Title: Re: Locking Articles (Global Moderators)
Post by: IchBin on December 01, 2008, 11:59:35 PM
That would be the reason IMO.
Title: Re: Locking Articles (Global Moderators)
Post by: bloc on December 02, 2008, 07:33:20 PM
It all relies on that you give power to edit articles to people which can be trusted - but by being able to lock it, you avoid non-moderators changing things un-attended. Whats missing is an option to specify all new submissions as also "locked" upon creation. As the articles do not have a history feature, its beneficial to have the ability to lock them instead.

Having 2 persons editing the same article is another issue all together, notifying the user that the article have been edited during ones own editing session is more logical then. I can see that would be beneficial. Also changing author would come in handy.