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 26.10.2005, 23:19   #1 (permalink)
Junior Mamber
 
Sundance's Avatar
 
Join Date: Oct 2004
Location: Germany
Posts: 35
Sundance is on a distinguished road
Default can't see submitted news

hi there,
I have just installed Mambo 4.5.2 creating a new community form scratch. I am used 4.5.1 so I am quite astonished about this:

My Editors, Publisher and Super Administrators can't see any of the newly submitted news items in the frontend. Is there a global setting like "Show unpublished items to Special"?

I can see the submitted items in the backend and handle them from there but the idea of course is that the Editors and Publishers do that from the frontend.

When I check the items in the backend their status is "unpublished". Shouldn't they bey "pending"?

Any ideas?

Regards, Sundance
__________________
They never killed us in Bolivia...
Sundance is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 27.10.2005, 18:25   #2 (permalink)
Junior Mamber
 
Sundance's Avatar
 
Join Date: Oct 2004
Location: Germany
Posts: 35
Sundance is on a distinguished road
Default Re: can't see submitted news

Anybody?

How can a publisher see the newly submitted news items?
__________________
They never killed us in Bolivia...
Sundance is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.10.2005, 11:41   #3 (permalink)
Junior Mamber
 
Sundance's Avatar
 
Join Date: Oct 2004
Location: Germany
Posts: 35
Sundance is on a distinguished road
Default Re: can't see submitted news

Hi all,

I figured it out and wanted to post the solution as well. It is new in Mambo 4.5.2 as far as can tell from my other 4.5.1 sites.

I was using a "Blog - Content Category" link in my menu. When displaying a category blog unpublished items are not shown at all, not even to Editors, Publishers or Administrators. It's as simple as that.

Only when using a "Table - Content Category" the unpublished items are shown in the list to special users so they can edit ehm from the frontend directly.

You have two choices now.

1) Create an extra usermenu item of type "Table - Content Category" for special users to each category you want them to edit or publish from the front end.

2) Change the code in /components/com_content/content.php so unpublished items are also shown in the Blog view of a category:

content.php, Mambo 4.5.2, Line 1623:
Code:
$where[] = "a.state = '1'";
if ( !$access->canEdit ) {
   $where[] = "( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". $now ."' )";
   $where[] = "( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". $now ."' )";
}
Change this if statement to:
Code:
if ( !$access->canEdit ) {
   $where[] = "a.state = '1'";
   $where[] = "( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". $now ."' )";
   $where[] = "( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". $now ."' )";
}else{
   $where[] = "a.state >= '0'";
}
Explanation (at least some words):
The where[] array contains SQL selection conditions for reading the content items out of the database. The SQL statement is different when showing a category blog compared to showing a category table. Unpublished items have state=0. The 0 state is not included in the category blog display but is in the table view (compare line 332 in function showCategory()).

Best regards,
Sundance
__________________
They never killed us in Bolivia...
Sundance is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 08.09.2006, 13:24   #4 (permalink)
Baby Mamber
 
r2d2's Avatar
 
Join Date: May 2005
Location: Germany
Posts: 7
r2d2 is on a distinguished road
Default Re: can't see submitted news

Thanks, Sundance. This was helpful
__________________
Dance like no one's watching...and hope they aren't!
r2d2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

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
How to create news & article categories? Dragonfly Mambo 4.5.1 'How Do I' Questions 1 05.07.2005 13:35
Frontpage: 6 aree di news e link interni andyblu Problematiche generali 11 03.06.2005 18:24
The question about a placement of news to the front page izpitera Mambo 4.5.1 'How Do I' Questions 1 13.03.2005 00:26
News submitted date? CHEETAH Mambo 4.5.1 'How Do I' Questions 0 22.10.2004 20:19
Different styles of News items in startpage asci Mambo 4.5.1 'How Do I' Questions 1 04.10.2004 22:24


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

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.