-
AuthorPosts
-
August 16, 2012 at 2:20 pm #179970
Have a problem with “Ja SideNews”, it shows my articles that should actually be published in the future.
Have reinstalled the last version 2.5.4 of Ja SideNews… but the same problem.
It listed all my articles of my category by created date, but not by “date to Start Publishing the article”.Do you have some idea, how can I fix it?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
August 17, 2012 at 11:05 am #464549I have raised bug to dev team: http://pm.joomlart.com/browse/CUSSER-479
Please send PM me the details (URL, Admin access and FTP account). I will help you fix it.
September 7, 2012 at 10:20 am #466465Sorry, for my late answer… could you give the instructions, how to fix it?
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
September 10, 2012 at 6:51 am #466587I just fixed this issue but it is not released yet, i will contact to QA for verification and release this soon. This is my solution
<blockquote>Open modules/mod_jasidenews/helper.php </blockquote>
Find function getListArticles($params) and replace with this function below
function getListArticles($params)
{$db = JFactory::getDbo();
$db->getQuery(true);// Access filter
$access = !JComponentHelper::getParams('com_content')->get('show_noauth');
$authorised = JAccess::getAuthorisedViewLevels(JFactory::getUser()->get('id'));// Filter by start and end dates.
$nullDate = $db->Quote($db->getNullDate());
$date = JFactory::getDate();
$nowDate = $db->Quote($date->toSql());$query = "SELECT a.fulltext, a.id, a.title, a.alias, a.title_alias, a.introtext, a.images, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by,a.publish_up, a.publish_down, a.attribs, a.metadata, a.metakey, a.metadesc, a.access, c.alias AS category_alias, a.hits, a.featured, a.ordering, LENGTH(a.fulltext) AS readmore";
$query .= " FROM #__content AS a LEFT JOIN #__languages AS l ON l.lang_code = a.language";
$query .= " LEFT JOIN #__users AS uc ON uc.id = a.checked_out";
$query .= " LEFT JOIN #__viewlevels AS ag ON ag.id = a.access";
$query .= " LEFT JOIN #__categories AS c ON c.id = a.catid";
$query .= " LEFT JOIN #__users AS ua ON ua.id = a.created_by";
$query .= " WHERE a.state = 1";
// Filter by start and end dates.
$query .= " AND (a.publish_up = " .$nullDate. " OR a.publish_up <= " . $nowDate.")";
$query .= " AND (a.publish_down = " .$nullDate. " OR a.publish_down >= " . $nowDate.")";
//Language filter
$query .= " AND a.language in (".$db->quote(JFactory::getLanguage()->getTag()).",".$db->quote('*').")";
if($access){
$query .= " AND a.access = ".$access;
}
//get featured setting
$featured = $params->get('show_featured', 1);
if ($featured ==0) {
$query .= " AND a.featured = 0";
} elseif ($featured == 2) {
$query .= " AND a.featured = 1";
}$categories = $params->get('display_model-modcats-category', '');
if ($categories && $categories[0] > 0) {
$catids_new = $categories;
foreach ($categories as $k => $catid) {
$subcatids = $this->getCategoryChildren($catid, true);
if ($subcatids) {
$catids_new = array_merge($catids_new, array_diff($subcatids, $catids_new));
}
}
$categories = implode(',', $catids_new);
$query .= " AND c.id IN ($categories)";
}// Category filter
if ($params->get("display_model", "modcats") == 'modarts') {
$query .= " AND a.metakey LIKE '%Featured%'";
}if ($params->get('sort_order_field', 'created') == "random") {
$query .= " ORDER BY RAND() ".$params->get('sort_order', 'ASC');
} elseif ($params->get('sort_order_field', 'created') == "ordering") {
$query .= " ORDER BY a.ordering ".$params->get('sort_order', 'ASC');
} elseif ($params->get('sort_order_field', 'created') == "hits") {
$query .= " ORDER BY a.hits ".$params->get('sort_order', 'ASC');
}else {
$query .= " ORDER BY a.created ".$params->get('sort_order', 'ASC');
}$query .= " LIMIT 0 ,".$params->get('max_items', 5);
$db->setQuery($query);
$items = $db->loadObjectList();foreach ($items as &$item) {
$item->slug = $item->id . ':' . $item->alias;
$item->catslug = $item->catid . ':' . $item->category_alias;if ($access || in_array($item->access, $authorised)) {
// We know that user has the privilege to view the article
$item->link = JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catslug));
} else {
$item->link = JRoute::_('index.php?option=com_user&view=login');
}
$item->modified =($item->modified != '' && $item->modified != '0000-00-00 00:00:00') ? $item->created : $item->created;
$item->introtext = JHtml::_('content.prepare', $item->introtext);
}
return $items;
}1 user says Thank You to Ninja Lead for this useful post
June 20, 2013 at 1:34 pm #496393Hello
It doesn’t work for me…
I have Joomla 3.1.
Can you help me ?Error :
1054
Unknown column ‘a.title_alias’ in ‘field list’ SQL=SELECT a.fulltext, a.id, a.title, a.alias, a.title_alias, a.introtext, a.images, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by,a.publish_up,Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 21, 2013 at 4:02 am #496444<em>@mgandon 377450 wrote:</em><blockquote>Hello
It doesn’t work for me…
I have Joomla 3.1.
Can you help me ?Error :
1054
Unknown column ‘a.title_alias’ in ‘field list’ SQL=SELECT a.fulltext, a.id, a.title, a.alias, a.title_alias, a.introtext, a.images, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by,a.publish_up,</blockquote>This problem on your site is different. I would need to take a closer see the problem at your site. Pm me URL of your site, admin access and ftp account. I will check this problem directly on your site.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 28, 2013 at 10:46 am #497291Because your site was cached. I cleared it and the problem on your site’s fixed. Please check and let me know if it helps
July 2, 2013 at 1:45 pm #497695My problems with JA sidenews :
– i can’t display Articles order by Publish Date (it is only possible by Create date)
– when an Artcile is only for Registred, it is still display on my homepage.July 2, 2013 at 5:13 pm #497721I have another question for you….
When i do a request via Search Form, the resuts are display on my homepage. I want that this results are display on a new page.
How can i do that ?Thanks for your help !
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 3, 2013 at 4:22 am #497768@mgandon: JA Sidenews module only supports to show Create date or Modify date if you change content in article.
About Article set Registred but it still shows in Homepage maybe I need to check it directly on your site.
The problem Search Form, you can go to Menu > create new menu with type Search Form or Search Results and get ID menu and put it into Search Form module
AuthorPostsViewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 3 voices, and was last updated by Ninja Lead 11 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum