Mini FrontPage

  • Posted by TemplatePlazza (5263) Offline
We're still looking for the solution but in the meanwhile you can fix this problem by comment out 2 lines in components/com_content/models/articles.php (these new lines are added in joomla 3.2.2)

Find these lines (lines 441-541)
if ((!$user->authorise('core.edit.state', 'com_content')) && (!$user->authorise('core.edit', 'com_content'))) {
			$nullDate	= $db->quote($db->getNullDate());
			$nowDate	= $db->quote(JFactory::getDate()->toSql());
 
			$query->where('(a.publish_up = '.$nullDate.' OR a.publish_up <= '.$nowDate.')')
				->where('(a.publish_down = '.$nullDate.' OR a.publish_down >= '.$nowDate.')');
		}

comment out line 445 and 451 so it becomes like this :
//if ((!$user->authorise('core.edit.state', 'com_content')) && (!$user->authorise('core.edit', 'com_content'))) {
			$nullDate	= $db->quote($db->getNullDate());
			$nowDate	= $db->quote(JFactory::getDate()->toSql());
 
			$query->where('(a.publish_up = '.$nullDate.' OR a.publish_up <= '.$nowDate.')')
				->where('(a.publish_down = '.$nullDate.' OR a.publish_down >= '.$nowDate.')');
		//}
10 years 10 months ago #7 by TemplatePlazza

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5263) Offline
Ok, please put back the modified lines of articles.php then open this flie : modules/mod_minifrontpage/helper.php

at lines (115) find this code :
$model->setState('filter.date_filtering', 'relative');
change to
$model->setState('filter.date_filtering', 'off');

Please let me know the result
10 years 10 months ago #8 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Yes, that worked for me
10 years 10 months ago #9 by spacecoast

Please Log in or Create an account to join the conversation.

Hi:

Sorry about my other post I put in response to another problem, I wanted to put here but I can not delete it. I'll try what you tell me here to see if it works.

I cross my fingers.

Regards, Marina.
10 years 10 months ago #10 by Marina

Please Log in or Create an account to join the conversation.

Hi:

It worked!!! That's nice website with this module. :):):):)

Thank you very much for everything.

Regards, Marina.
10 years 10 months ago #11 by Marina

Please Log in or Create an account to join the conversation.

Hello,

Now it works, but the "Period of Novelty (Days)" option is not working. I setup it at 15 days, but the module shows older articles.
10 years 10 months ago #12 by r3view

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum