Easy Blog Articles source

News Show Pro GK5 - flexible, responsive and easily extendable free Joomla module support forum.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Mar 09, 2015 4:31 pm
Hi, despite the fact that I set easy blog articles (numbers with commas) and set correctly, just articles from a single author are shown. Can you pls help?
Pls see http://www.donnapop.it/mangiare/altri-a ... opirateria ("Prova easy blog" module on right sidebar at the top)
User avatar
Senior Boarder

teitbite
Tue Mar 10, 2015 8:16 pm
Could you please provide me with a URL to your website and back-end access via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

teitbite
Fri Mar 13, 2015 9:47 am
Hi

I have checked and I do not understand what is the problem. Module is showing 5 articles as entered in source with exact IDs:

http://www.donnapop.it/spazi-verdi/ethi ... la-memoria
http://www.donnapop.it/spazi-verdi/ethi ... da-bambini
http://www.donnapop.it/spazi-verdi/ethi ... amin-shine
http://www.donnapop.it/spazi-verdi/ethi ... y-urbex-ch
http://www.donnapop.it/spazi-verdi/ethi ... fitzgerald

all of this articles are made by the same author, so everything is showing as it should be.
User avatar
Moderator

GK User
Fri Mar 13, 2015 9:57 am
not correct, id's source of the module should be 2055,2054,2053,2052,2051, and not 1243,1470,1493,1506,1512 as it is now
User avatar
Senior Boarder

teitbite
Sun Mar 15, 2015 2:32 pm
Hi

Do You mean that You cannot save settings to change this IDs ?? Maybe You need to just clear cache before saving. I'm afraid I do not understand, You need to explain it one more time please.
User avatar
Moderator

GK User
Mon Mar 16, 2015 9:17 am
I saved module with source IDs 2055,2054,2053,2052,2051, config: easyblog articles, in order, but the module show articles ONLY from an author (IDs are all different from what I set). It seems that the module pick up the wrong source
User avatar
Senior Boarder

GK User
Mon Mar 16, 2015 9:25 am
I attach some screenshots
User avatar
Senior Boarder

teitbite
Tue Mar 17, 2015 1:56 pm
Hi

I think You have some cache slowing showing the results. I just checked and while I was trying to figure it out it just showed the way it was configured even after I clicked save. It's showing 2051,2052,2053,2054,2055 articles for me now. Does it for You ?
User avatar
Moderator

GK User
Tue Mar 17, 2015 5:04 pm
Teitbite, I'm sorry, definitely the module don't work.
What you did is to change order (changed from 2055....2051, to 2051....2055, i didn't) and it didn't work properly even what you saw. Infact, I just changed ascending to descending (and viceversa) and I realized that the module didn't show ids but from date, so showing the latest before (from 2055...) and the first after my setting. Then I tried changing again to "by order" and a new strange configuration was shown.
User avatar
Senior Boarder

teitbite
Fri Mar 20, 2015 8:45 pm
Hi

Ok. I thought it was it. Send me new PM with url, joomla panel access and ftp access all together, so I'll send it to programmers for check.
User avatar
Moderator

teitbite
Sat Mar 21, 2015 8:04 pm
Hi

Reported to programmers. Will let You know as soon as I will get an answer.
User avatar
Moderator

teitbite
Mon Mar 23, 2015 6:20 pm
Hi

Please edit file: mod_news_pro_gk5/data_sources/com_easyblog/model.php
and add this code to line 110:

Code: Select all
// Overwrite SQL query when user set IDs manually
if($config['data_source'] == 'easyblog_articles' && $config['easyblog_articles'] != ''){
// initializing variables
$sql_where = '';
$ids = explode(',', $config['easyblog_articles']);
//
for($i = 0; $i < count($ids); $i++ ){
// linking string with content IDs
$sql_where .= ($i != 0) ? ' OR content.id = '.$ids[$i] : ' content.id = '.$ids[$i];
}
}
// Overwrite SQL query when user set IDs manually
User avatar
Moderator


cron