Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 23

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 21.01.2005, 14:52   #1 (permalink)
Baby Mamber
 
Join Date: Oct 2004
Posts: 9
bricer is on a distinguished road
Default Let Authors view their unpublished content

I would like to let my users with "Author" priviledges view and edit their own unpublished content.

My author users were confused that after they submitted content they could not view it until a Publisher published it.

Does anyone know where in the code I can change it so they can view and edit their content whether or not it is published.
bricer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 21.01.2005, 18:19   #2 (permalink)
Junior Mamber
 
Ndovu's Avatar
 
Join Date: Sep 2004
Posts: 36
Ndovu is on a distinguished road
Default Re: Let Authors view their unpublished content

Hi Bricer,

if you are a coder, the following link may help you:

How can I make it so publishers can only edit their own content

If you found the solution, please publish it for the not so good php freaks among the Mambo community
__________________
Greetings from Africa!

http://www.advertisingdar.com
Ndovu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24.01.2005, 11:16   #3 (permalink)
Baby Mamber
 
Join Date: Oct 2004
Posts: 9
bricer is on a distinguished road
Default Re: Let Authors view their unpublished content

Yes, I saw that thread, but as the the folks that posted to it claim they had done this, they So, I started my own thread in the hopes that a Mambo developer could tell me where to hack. Something a little more percise than "at the end of the file" would be awfully nice.

Until then, I'll hammer away at it. I'll be sure to post any code I get working.

(keep in mind, what I am trying to do seems slightly different from what you are doing. I just want the author of content to be able to view and edit their own submissions, even before it has been published. They won't be able to publish anything themselves which is what the thread you posted appears to be trying to do)

Last edited by bricer; 24.01.2005 at 13:01.
bricer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24.01.2005, 11:59   #4 (permalink)
Junior Mamber
 
Ndovu's Avatar
 
Join Date: Sep 2004
Posts: 36
Ndovu is on a distinguished road
Default Re: Let Authors view their unpublished content

Hi Bricer,

just got a hint to this thread. By the first look of it, it seems to be what we need (for your solution and mine). Haven't had time so to really check it out and test it.

http://forum.mamboserver.com/showthread.php?t=5638

Thanks for posting any news code changes here. Very much appreciated!

This thread might be interesting for you as well. It show you how to make disappear the picture, meta data etc. tabs.:

http://forum.mamboserver.com/showthr...119#post142119
__________________
Greetings from Africa!

http://www.advertisingdar.com
Ndovu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 24.01.2005, 13:07   #5 (permalink)
Baby Mamber
 
Join Date: Oct 2004
Posts: 9
bricer is on a distinguished road
Default Re: Let Authors view their unpublished content

Yes, that seems to be the method.

One has to edit "includes/gacl.class.php" which seems straight forward. It also will allow for new groups, but you have to add rows to TWO tables.

I'm trying to find what values the "_mos_add_acl" function can take. For example, would the following be legit?

$this->_mos_add_acl( 'action', 'view', 'users', 'author', 'content', 'all' );
bricer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26.01.2005, 12:53   #6 (permalink)
Baby Mamber
 
Join Date: Oct 2004
Posts: 9
bricer is on a distinguished road
Default Re: Let Authors view their unpublished content

Okay, good news and bad news (depending on your perspective).

The file "gacl.class.php" only has "add", "edit" and "publish". Nothing about "view".

I banged away in some other files with no success. However, I may have found a solution for what you want - letting Authors publish their own content

Add the following in "includes/gacl.class.php"

$this->_mos_add_acl( 'action', 'publish', 'users', 'author', 'content', 'own' );

around line 180. Still they won't be able to view the file so I don't know how they will be able to publish it even though they have the right.

Last edited by bricer; 26.01.2005 at 16:01.
bricer is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26.01.2005, 13:41   #7 (permalink)
Junior Mamber
 
Ndovu's Avatar
 
Join Date: Sep 2004
Posts: 36
Ndovu is on a distinguished road
Default Re: Let Authors view their unpublished content

Hi Bricer,

thanks for that. That's exactly what I need.

You may find that interesting as well:

jSectionAuth

Cheers
__________________
Greetings from Africa!

http://www.advertisingdar.com
Ndovu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
view unpublished pages bubba Mambo 4.5 'How Do I' Questions 2 01.06.2005 22:00
WYSIWGPRO not saving content in Design View threezero Mambo 4.5 'How Do I' Questions 1 16.09.2004 12:58
How to link preview text to the the full story ? scorplev Mambo 4.5 'How Do I' Questions 5 15.09.2004 05:50
Content Structuring Basics for Newbies, MOS 4.5 mamster Mambo 4.5 'How Do I' Questions 9 01.09.2004 05:18
link to unpublished content mambomaster Mambo 4.5 'How Do I' Questions 1 30.06.2004 16:44


All times are GMT +2. The time now is 14:14.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.