TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 282
  • Total: 282

submitting an article without manage permission

Started by tupsi, May 29, 2009, 09:13:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tupsi

I am trying to setup user permissions so that people can only submit/edit there own articles, but not manage the whole thing.

I have the tp setup like screenshot 1 and from the search I figured there should be now an option the submit an article in your profile/user section, but as you can see in screenshot 2, there is nothing, the whole thing is blank.

Using

SMF 1.1.9
TP 1 beta 4
default theme

Can somebody please point me to the correct place?


Zetan

The block type, Userbox, has options for managing Articles if the permissions are set. You could also create new menu items for the main menu using the actions to Submit, Manage.. etc.

But I think you are correct, there isn't the option to submit article from your profile.

tupsi

ok thanks for pointing that out. Ill try that out once I get the block to show, which I better ask in another thread as this would derail this one.


tupsi

thanks Zetan, I managed to to get the block shown, but now I have the some problem as someone else here, that users who do NOT have manage rights for articles cant really enter the article properly. The new quick image thing is not working at all, hitting the "save" button gets you to the "your article got submitted", instead of uploading a picture.

Also, if you are clever and try to edit your just submitted article via your profile, you are faced with the following:

needless to say that I tried to enter an html article and not some external link, so its unnow what got tp thing to switch the whole thing while saving it the first time.



Freddy

#4
Aha, thanks for that, shows I am not going mad as I am having the same problems - I submitted these as bugs to bugtracker.

Anyway, I just wanted to know if this is a fresh install you are using as I was planning to restart everything.

Like you I found most of these problems go away if you allow a member to Manage Articles but like you I am not wishing to do that, I would just like them to be able to submit articles and that is it.

I'd also be interested to know if the articles that do get submitted this way (ie without manage articles permission enabled) are editable by you as admin...

Thanks.

tupsi

Quote
Anyway, I just wanted to know if this is a fresh install you are using as I was planning to restart everything.

Its no fresh install. The SMF version is ancient and always got updated through security update 1.1.0 to 1.1.9. TP got deinstalled from 0.983 and "fresh" install 1beta4 as there is no upgrade path from there. Database stuff remained, so the data itself was there after the install, but as it turns out, it has its twisting moments...


Quote
I'd also be interested to know if the articles that do get submitted this way (ie without manage articles permission enabled) are editable by you as admin...
they are... in a way. and here it gets interesting.
go to your admin section and hit edit for one of these ghost articles, it will display tons of options but no text and no html box. (check my screenshot)
scroll down till you can see the radio buttons for the various article types (html, bbc, php, external). you will notice that NO radio button is checked, which shouldnt even be possible with radio buttons.
Press the one for "html article" and hit the save button at the bottom and *magic* the html box with the text from the user magically appears.

You can now edit the article from the user and do all normal things with it and it works fine.


Zetan

#6
I would think that you only want members to submit BBC articles? I wouldn't have members post html or php, unless they are staff.

You can, like I suggested, add a menu item. Even better if you have drop menus as you can have an article tab, with submit for members and admin, and manage for admin and staff.

There is an action for submitting each article type:

BBC: ?action=tpadmin;sa=addarticle_bbc
HTML: ?action=tpadmin;sa=addarticle
PHP: ?action=tpadmin;sa=addarticle_php
IMPORT (External): ?action=tpadmin;sa=addarticle_import

[edit]
These would be the paths used for new menu items, added to the theme or a menu block, the paths are internal and do not need a full URL to work.

Freddy

#7
Quotetupsi said:
scroll down till you can see the radio buttons for the various article types (html, bbc, php, external). you will notice that NO radio button is checked, which shouldnt even be possible with radio buttons.
Press the one for "html article" and hit the save button at the bottom and *magic* the html box with the text from the user magically appears.

Ahh, yes that works a treat :) Thanks.

So it appears that bug has something to do with recognising the article type and alos that the radio buttons aren't being set properly.

Zetan,

Those links are fine if the member has permission to Manage Articles, but they don't work if they haven't.  All you get is :

Sorry, you aren't allowed to manage articles.

What I want is for some members only to be able to submit articles (HTML or whatever) but not have the ability to manage articles.  To me it doesn't matter if they are staff or not because I still retain the ability to approve or disapprove articles.

The 'correct' URL just to submit an article is :

?action=tpmod;sa=submitarticle

At least that is the URL Bloc has used for the link that appears in the User block.

This still leaves us with the problem of the member editing their article though.

Zetan

Yes, but if you go to Articles and Settings, those are the links to the tabs.

It has been this way for as long as I can remember, if there's another way, I don't know it as I don't allow members to submit articles, I simply use them as pages for the site.

Freddy

#9
Ok I just found something else worth noting.

If as tupsi said above you login as admin and try to edit an article submitted by a user - then set the radio button properly so you can edit it.... this has a side effect:

I found the member can now edit the article, where previously you would get a messed up form as illustrated by tupsi's earlier screenshot.

So that particular bug  appears to be something to do with correctly logging the type of article.

This website is proudly hosted on Crocweb Cloud Website Hosting.