TinyPortal

Development => Support => Topic started by: lebisol on October 11, 2007, 06:06:12 PM

Title: Only Admin can manage all articles - users only their own
Post by: lebisol on October 11, 2007, 06:06:12 PM
Hello gang,
I wanted to run this by you in case TP 1.x will have the user ACLs resovled so I do not have to hack.  ;)

Here is the logic and would like some feadback on the idea:
1. Go to Admin--> Tiny Portal -->Setting
Hide the edit article link under articles? YES 
Hide the block edit link? YES 

2. Create html block of:
&nbsp;&nbsp;<img src="http://yoursite.com/Themes/default/images/TPdivider2.gif" alt="" />&nbsp;<a href="http:// yoursite.com/index.php?action=profile;sa=tparticles">My Articles</a><br />
&nbsp;&nbsp;<img src="http:// yoursite.com/Themes/default/images/TPdivider2.gif" alt="" />&nbsp;<a href="http:// yoursite.com/index.php?action=tpadmin;sa=addarticle">Add Article</a><br />
&nbsp;&nbsp;<img src="http:// yoursite.com/Themes/default/images/TPdivider2.gif" alt="" />&nbsp;<a href="http:// yoursite.com/index.php?action=profile;sa=tpdownload">My Uploads</a><br />

effectivly producing links in block :
=============
Block Title
============
o My Articles
o Add Article
o My Uploads
----------------

3. Edit article managment page (insert input here)
see image


Or am I going to waste time doing this?
hmmm what is arround the corner for TP 1.x  8)

Thanks!

Title: Re: Only Admin can manage all articles - users only their own
Post by: G6Cad on October 11, 2007, 06:12:34 PM
TP is still a great deal away from any release, so if you want to change the code to get it to work the way you like it to  :)
Title: Re: Only Admin can manage all articles - users only their own
Post by: lebisol on October 11, 2007, 06:22:52 PM
thanks G6,
we will just slap this on "to do list"
thanks!
Title: Re: Only Admin can manage all articles - users only their own
Post by: lebisol on October 11, 2007, 10:01:41 PM
Almost forgot, article deafult needs to be se to be 'inactive' or unpublished as well.
Ulitimately it would be nice to have a realted dropdown menues in admin where each member group can be selected/assigned to access level of 'full,submit only'
Ok, sorry thinking outloud as I am sure Block has this down for the v 1.x  :P
Thanks!
Title: Re: Only Admin can manage all articles - users only their own
Post by: IchBin on October 11, 2007, 10:07:15 PM
Isn't that what the permissions in the Admin > membergroups > (select membergroup) > Manage Articles check/uncheck is for?
Title: Re: Only Admin can manage all articles - users only their own
Post by: lebisol on October 11, 2007, 10:16:45 PM
Right, but "manage" gives them rights to ALL articles vs. as suggested to be able to only see/edit those that they wrote.
It would be very ugly to allow a user modify article that is on the front page...or part of the block used as menu...you know.
Title: Re: Only Admin can manage all articles - users only their own
Post by: IchBin on October 12, 2007, 02:37:26 PM
Well, this has little to do with Block code snippets so I'll move it. But for the features you're asking for they will not be available until TP 1.0 is out.
Title: Re: Only Admin can manage all articles - users only their own
Post by: lebisol on October 12, 2007, 04:51:17 PM
cool thanks IchBin!
Maybe I better hold of from butchering the TP then...