TinyPortal

Development => Support => Topic started by: Doma on August 04, 2009, 11:05:01 PM

Title: Article submissions by members
Post by: Doma on August 04, 2009, 11:05:01 PM
Link to my site: http://www.falconrytoday.net
SMF version: SMF 1.1.9
TP version: TP 1.0 beta 4
Theme name and version: AS Theme
Browser Name and Version: Firefox/Safari

I want to allow my users to add an article via html whereas I am the one that approves it for publication. Right now all I can seem to get done is giving them permission to manage ALL articles which is kind of dangerous imho. If I do not have Manage Articles [√]  selected under Tiny Portal then they get a message "Sorry you do not have permission to manage articles" 

Here is the url for the add new html article:
http://falconrytoday.net/index.php?action=tpadmin;sa=addarticle

I see others have had similar issues but I could not find anywhere this may have been resolved.

Thanks in advance.
Title: Re: Article submissions by members
Post by: Ken. on August 05, 2009, 12:25:58 AM
Look in your "Manage Permissions>TinyPortal Articles" screen; do those permissions not give you what you need?
Title: Re: Article submissions by members
Post by: Doma on August 05, 2009, 12:33:41 AM
Quote from: Ken on August 05, 2009, 12:25:58 AM
Look in your "Manage Permissions>TinyPortal Articles" screen; do those permissions not give you what you need?

No.

"If I do not have Manage Articles [√]  selected under Tiny Portal then they get a message "Sorry you do not have permission to manage articles""

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Ffarm3.static.flickr.com%2F2508%2F3790561712_24a81fb722_o.jpg&hash=53e83d3d5f664ed8ee2af528d810bcb5685d5095)
Title: Re: Article submissions by members
Post by: Ken. on August 05, 2009, 01:14:15 AM
You may find these topics instructive:
http://www.tinyportal.net/index.php/topic,29793.0.html
http://www.tinyportal.net/index.php/topic,29425.0.html

I tried this as a test on my forum by turning on a 'User' block with article submission turned on and it worked as expected; you can see the block HERE. (http://www.ourfamilyforum.org/FamilyForum/index.php?action=forum)


EDIT: Attached a ss so that you could see the links in the block. (my test user account submitted an article and it worked)
Title: Re: Article submissions by members
Post by: Zetan on August 05, 2009, 08:35:10 AM
Members can also submit Articles from their Profiles.
Title: Re: Article submissions by members
Post by: Doma on August 05, 2009, 01:24:39 PM
@Ken & Zetan - I have made a link for my users that has
index.php?action=tpadmin;sa=addarticle  in the link. I read both of those posts before I even posted mine here that is how I got the code I am currently using. Right now a user with full permissions other than manage articles turned on gets an error " An Error Has Occurred! Sorry, you aren't allowed to manage articles."  If I turn on manage articles in the tab they CAN write new articles but also delete them and have every other full admin of articles that is available. But they can also erase every other article written including ones from me. I can make a new user group called contributor and give them permission I suppose?

@Zetan I went in as a regular member and see that under their profile they can see articles submitted but no where to actually submit one.

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Ffarm3.static.flickr.com%2F2475%2F3792069448_cf9b29fe32.jpg&hash=21e80e2308ad1f1cdd4a31c2e0364ce55b96a01a)

I hope I am not being obtuse about this. I just want to have my users submit an article that I then approve and they get the credit. If I am using the wrong link code and its supposed to be tpuser instead of tpadmin or something that may be what I am doing wrong.  I can make a new user group called contributor and give them permission I suppose? I just dont want the security holes.

Thanks again.
Title: Re: Article submissions by members
Post by: Zetan on August 05, 2009, 01:46:52 PM
If the permissions are set correctly, there are Submit Article links within a members profile. I have them here at TP.net as a Global Moderator. What they are for other member groups, I don't know. I haven't checked. I don't allow members to submit articles on my site anyway, I have no need for them at this time, so it's not a feature or set of permissions I'm overly familiar with.

I think articles, permissions and submissions do need some work as it seems it currently isn't user friendly enough.
Title: Re: Article submissions by members
Post by: Doma on August 05, 2009, 01:52:03 PM
Thanks Zetan,

I will make a new usergroup and see if I can get that group the abilites of a moderator sans forum powers and see if it will work. I will get back to you if I can fudge it together.
Title: Re: Article submissions by members
Post by: Zetan on August 05, 2009, 01:59:37 PM
I do use articles quite extensively on my site, but Admin only have the permissions.

Have a play with it, I'll look into it a bit more when I have time :)
Title: Re: Article submissions by members
Post by: Ken. on August 05, 2009, 03:54:47 PM
Try this command to see if that works in your link...
?action=tpmod;sa=submitarticle

The command you are using, (index.php?action=tpadmin;sa=addarticle), directs them to the admin panel for articles.
Title: Re: Article submissions by members
Post by: bloc on August 29, 2009, 01:52:34 PM
Just a note: in TP v1.0 beta5 I added the "add article" into each article shown - that way its already checking if you can submit articles and also notice the category your are in - or the article with the link is in. Depending on whether you can manage articles or not, the link goes to either tpadmin or action=tpmod(the user screens)

That should make it easier to find the link + eliminate any permission issues.