Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

October 31, 2020, 01:02:25 PM

Login with username, password and session length
Members
  • Total Members: 3795
  • Latest: PoML
Stats
  • Total Posts: 191363
  • Total Topics: 20908
  • Online Today: 85
  • Online Ever: 1000
  • (October 07, 2020, 04:15:10 PM)
Users Online
Users: 0
Guests: 58
Total: 58

Author Topic: Editing Articles  (Read 677 times)

0 Members and 1 Guest are viewing this topic.

Offline lurkalot

  • Administrator
  • *
  • Posts: 7046
    • Camera Craniums
Re: Editing Articles
« Reply #10 on: September 29, 2020, 04:18:31 PM »
Sure, I am open to contributions. I am just not sure how this would work out... it would also require access permissions on categories and more.

And what about te implications: you give non admins powers to make their articles featured, or sticky, and change all layout options and so on....

Since this is the first time this question comes up I wonder how many admins really require this functionality ?

I guess this wouldn't be such a bad idea, if you could let them choose from a selection of categories set out and set up by admin in the first place, with those layout options already predefined. Exceptions would be the featured and sticky options of course.

Offline wylek

  • Jr. Member
  • **
  • Posts: 16
    • WYLEK.RU
Re: Editing Articles
« Reply #11 on: October 01, 2020, 08:43:30 AM »
For users, when creating or editing articles, all these settings are not needed. This is the privilege of administrators! I made restrictions as on the DLE engine and now I am calm that someone will not delete a category or article. The archive contains the files where I changed the code. This is the TinyPortal version from here - https://github.com/Tinyportal/TinyPortal.


Offline @rjen

  • Support Team
  • *
  • Posts: 2608
    • FJR-club Nederland
Re: Editing Articles
« Reply #12 on: October 01, 2020, 08:58:02 AM »
What is the DLE engine  ???
Running TP2.0.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline @rjen

  • Support Team
  • *
  • Posts: 2608
    • FJR-club Nederland
Re: Editing Articles
« Reply #13 on: October 01, 2020, 09:47:08 AM »
I can see what you tried to do, but I cannot agree with the way it is done. To me it seems that you are ripping out some of the Tinyportal permissions and tie-ing parts directly to admins only.

The idea is that with TinyPortal you can grant TinyPortal admin permissions to members that are NOT forum admin. That's lost now, and that is not something that other TinyPortal users may want (I do not want this on my site for sure).

Then I see that certain admin related options are hidden from view to non-admins, but non-admins may still be able to access sections that you don't want if the know the address?
Running TP2.0.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline @rjen

  • Support Team
  • *
  • Posts: 2608
    • FJR-club Nederland
Re: Editing Articles
« Reply #14 on: October 01, 2020, 10:06:30 AM »
Example: even though you suppressed the link to it, a user can still delete categories or create new ones...

By simply accessing this link: yourforum/index.php?action=tpadmin;sa=categories

Running TP2.0.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline @rjen

  • Support Team
  • *
  • Posts: 2608
    • FJR-club Nederland
Re: Editing Articles
« Reply #15 on: October 02, 2020, 12:19:15 AM »
If I checkout what you did it seems that you want non-admins to have slightly more options when they create / change articles.

In summary:
They still should only edit their own articles (and not those from other users) but you want them to access more fields in the article (see attachment):

Created at
Approved
Type of article
Status (active not active)
Category
Additional status (Frontpage / sticky / locked)

Is that correct?

Running TP2.0.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info

Offline wylek

  • Jr. Member
  • **
  • Posts: 16
    • WYLEK.RU
Re: Editing Articles
« Reply #16 on: October 02, 2020, 04:52:41 AM »
If I checkout what you did it seems that you want non-admins to have slightly more options when they create / change articles.

In summary:
They still should only edit their own articles (and not those from other users) but you want them to access more fields in the article (see attachment):

Created at
Approved
Type of article
Status (active not active)
Category
Additional status (Frontpage / sticky / locked)

Is that correct?

Yes, that would be desirable. O0 You can add one more option in the admin panel.

Offline @rjen

  • Support Team
  • *
  • Posts: 2608
    • FJR-club Nederland
Re: Editing Articles
« Reply #17 on: October 02, 2020, 05:14:06 AM »
Well, the approved option will not go in there: there is a special permission for that so that admins can choose what membergroups may submit without approval and what membergroup requires approval first

The other options may be considered, although the switch BBC / HTML kind of goes against the idea that admins can choose what kind of articles you allow members to write, but I guess that option could be tied to the permissions to submit both types of articles.

I am just not sure this is something that we want to make part of the 'core'functionality...

I would need to have the opinions of other team members on that...
Running TP2.0.0 on SMF2.0 at: www.fjr-club.nl

Testing TP on SMF2.0
Testing TP on SMF2.1 (latest Github)
Want to check what php version I am testing on? See: PHP Info