It is currently Sun Jul 05, 2009 5:08 pm (All times are UTC )

 





Post new topic Reply to topic  [ 4 posts ] 
Author Message
Posted: Sat Oct 29, 2005 10:15 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 26, 2005 8:27 am
Posts: 79
Location: Westerlo
Take a newsitem and set publishing date as finished. Newsitems is no longer visible. OK sofar.

Go to the frontpage and select a Read More ... link on a newsitem.
Navigate till you arrive at the unpublished item. You now get the message :

You are not authorized to view this resource.
You need to login.

This is a longstanding bug since *4.5.1

Fonny


Last edited by Jinx on Thu Nov 24, 2005 12:16 am, edited 1 time in total.

Top
  E-mail  
 
Posted: Sat Oct 29, 2005 11:35 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Aug 26, 2005 8:27 am
Posts: 79
Location: Westerlo
Got it.

In components/com_content/content.php near line 1057 add twice  '. $xwhere' to the sql query.

// loads the links for Next & Previous Button
if ( $params->get( 'item_navigation' ) ) {
$query = "SELECT a.id"
. "\n FROM #__content AS a"
. "\n WHERE a.catid = $row->catid"
. "\n AND a.state = $row->state"
. "\n AND ordering < $row->ordering"
. ($access->canEdit ? '' : "\n AND a.access <= $gid" )
. $xwhere
. "\n ORDER BY a.ordering DESC"
. "\n LIMIT 1"
;
$database->setQuery( $query );
$row->prev = $database->loadResult();

$query = "SELECT a.id"
. "\n FROM #__content AS a"
. "\n WHERE a.catid = $row->catid"
. "\n AND a.state = $row->state"
. "\n AND ordering > $row->ordering"
. ($access->canEdit ? '' : "\n AND a.access <= $gid" )
. $xwhere
. "\n ORDER BY a.ordering"
. "\n LIMIT 1"
;

fonny


Top
  E-mail  
 
Posted: Wed Nov 23, 2005 3:05 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Aug 25, 2005 6:54 pm
Posts: 34
Thanks, works great!  :D


Top
  E-mail  
 
Posted: Thu Nov 24, 2005 12:15 am 
User avatar
Joomla! Champion
Joomla! Champion
Offline

Joined: Fri Aug 12, 2005 12:47 am
Posts: 6429
Thanks ! I have made the change on SVN for bot 1.0 and 1.1

_________________
Johan Janssens - Joomla Co-Founder, Lead Developer of Joomla 1.5

http://www.nooku.org - multi-lingual content manager and rapid extension development framework for Joomla 1.5
http://www.joomlatools.eu - training, consulting and extension development


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group