By Martin on Sunday, 13 November 2016
Posted in General Issues
Replies 19
Likes 0
Views 1K
Votes 0
Hi!
I just realized that my EB front page only show 1st page, and there is no pagination to go to next pages.
Ive chacked this topics without success:

https://stackideas.com/forums/frontpage-pagination-not-appearing
My menu has already "inherit from EB", and pagination in EB is set to 10.

https://stackideas.com/forums/pagination-missing-from-frontpage
All my articles are already chequed as "show on front page"

https://stackideas.com/forums/pagination
My #__easyblog_post table from database has values 'easyblog.sitewide' on column `source_type`

cant find how to show pagination
Thanks for your help
Hello Martin,

Do you have enough blog posts on your Spanish language? It seems like the pagination is appearing on your English page at http://ideaalab.com/en/ but not on your Spanish page.
·
Sunday, 13 November 2016 14:13
·
0 Likes
·
0 Votes
·
0 Comments
·
I dont have some post in spanish and other in english, i only have post in spanish, at least 30. And this post translated to english with falang.
Pagination only showing in english is very strange.
·
Sunday, 13 November 2016 18:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you temporarily turn off Falang just to see if the pagination is showing up?
·
Tuesday, 15 November 2016 00:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Just disable falang DB driver and pagination worekd again
I will talk with Stephane to see why this is happening
·
Tuesday, 15 November 2016 00:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I honestly think Falang is an overkill and it's trying to mess up with the queries that was generated by EasyBlog Since EasyBlog already has multi lingual support with Joomla, why not use the built in multi lingual support?
·
Tuesday, 15 November 2016 00:51
·
0 Likes
·
0 Votes
·
0 Comments
·
The worst thing about multilingual website is having updated content in every language. If i use default joomla multilingual, the content/menues/modules/etc in different languages has to be "duplicated" for every language. And if i modify in one language, i should remember to change the others. Also if i change one setting (in a module for example) i will have to change the same setting for all other languages. Also, multilingual site is like having 2 different sites, one language can have completely different content from the other. Ratings for blog would be separate from one language to the other...

While in Falang, i only have "default" language content/menues/modules/etc, and i can translate whatever i want. It can track if changes were made, and "centralize" translation in one single point. Also everything is "linked", so i can change language the page reloads with the same content but different language.
This is because only the text is translated. The shell is still the same, but only what is inside is what changes.
With Falang i can translate category names, tags, etc, while with EB i cant do that.

I hire a translator, and with Falang he only translate. While if i use joomla multilingual feature, my translator should also create new menues, new modules, configure them, make sure the settings are the same in both languages, create new blogpost, new categories...

So for true multilingual site, Falang is the only way of doing it.

I dont think Falang is messing up, as with EVERY OTHER COMPONENT i tried, it worked perfectly. I think EB is internally very complex, and this may be the reason it dont work as expected. But im sure that trying to figure a way to solve this will benefit many customers, as EB is the best blog component, and Falang is the best translation component. Together is the most powerful solution for TRUE multilingual blog
·
Tuesday, 15 November 2016 02:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your explanation Martin.

Keep us update once Stephane find out the solution for this pagination.

By the way, we still working on how to make a better way to integration with Falang in Easyblog 5.

I am still discussing with Stephane regarding other permalink issue, this following code i getting from Stephane on how to do the checking if the existing post already get translated from Falang. but this is not related with your pagination issue.


Replied from Stephane :

to know if an easyblog post exist "easyblog_post" is the name of the content element

$contentElement = $falangManager->getContentElement("easyblog_post");
JLoader::import( 'models.ContentObject',FALANG_ADMINPATH);
$actContentObject = new ContentObject( $language->lang_id, $contentElement );
$actContentObject->loadFromContentID( $id );
switch($actContentObject->state) {
case 1:
$class .= "uptodate";
break;
case 0:
$class .= "old";
break;
case -1:
$class .= "notexist";
break;
default :
$class .= "notexist";
break;
}

In your case check state -1

·
Wednesday, 16 November 2016 15:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex. Im also talking with Stephane.
Hope we can solve all this and integrate stable compatibility ASAP.
Regards!
·
Wednesday, 16 November 2016 18:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Im checking generated output HTML with Firebug, and pagination is not generated by EB. Where or how paginations is loaded in code? Checking there we may find the solution. Probably some conflict with Falang that can be easily solved.
·
Wednesday, 16 November 2016 18:39
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Martin,

I've just try to check on your site again, it seems like something is not right from this file JoomlaFolder/plugins/system/falangdriver/falangdriver.php under this function setupDatabaseDriverOverride , you can check my attached screenshot below.

But I am not really sure yet is it because of that, because I am not sure what that function do, perhaps you can share this info to Stephane when I comment out these 3 lines of code, it seems show the pagination in Easyblog when I view as Spanish language.
·
Thursday, 17 November 2016 22:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi!
Stephane just email me with this, regarding pagination in Easyblog and Falang:

The only way i have found is to change the query like this
administrator/components/com_easyblog/models/blog.php line 809

if($queryPagination) {
$query_count = 'select count(a.id) as count';
$query_count .= ' FROM `#__easyblog_post` AS a';

// if ($frontpage && $pinFeatured) {
$query_count .= ' LEFT JOIN `#__easyblog_featured` AS f';
$query_count .= ' ON a.`id` = f.`content_id` AND f.`type` = ' . $db->Quote('post');
// }

if( ($type == 'blogger' || $type == 'teamblog') && $statType == 'tag')
{
$query_count .= ' LEFT JOIN `#__easyblog_post_tag` AS t ON a.`id` = t.`post_id`';
$query_count .= ' AND t.`tag_id` = ' . $db->Quote($statId);
}
$query_count .= $queryWhere;
$query_count .= $contributeSQL;
$query_count .= $queryExclude;
$query_count .= $queryInclude;
$query_count .= $queryOrder;
$db->setQuery($query_count);
$this->_total = $db->loadResult();

// now execute found_row() to get the number of records found.
//$cntQuery = 'select FOUND_ROWS()';
//$db->setQuery( $cntQuery );
//this->_total = $db->loadResult();

$this->_pagination = EB::pagination( $this->_total , $limitstart , $limit );
}

i didn't have find other solution yet.
Founds_rows is very powerfull i didn't have find a solution to set it after the the falang query override.


Can you check?
Is there any progress on integration and compatibility? Have you included any part we discussed?
[*] Translation override (post version is overriding it)
[*] Pagination
[*] URL SEF translation

Regards!
·
Wednesday, 07 December 2016 18:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Martin,

Is there any progress on integration and compatibility? Have you included any part we discussed?
[*] Translation override (post version is overriding it)
[*] Pagination
[*] URL SEF translation


I've pass this issue to our developer regarding this, we modified following these files from your site.
JOOMLA/administrator/components/com_easyblog/models/blogger.php
JOOMLA/administrator/components/com_easyblog/models/category.php
JOOMLA/administrator/components/com_easyblog/models/blog.php
JOOMLA/administrator/components/com_easyblog/includes/easyblog.php

That pagination should work fine now.

Another 2 issues, In Easyblog 5.1, our team still discussing whether we want to remove those revision feature, we haven't finalised yet, we still looking for the better solution if we decide to remove those revision feature, whether that is possible to revert those JSON string content into plain text.
·
Friday, 09 December 2016 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
So sorry i didnt reply for so long. I had a family issue and i didnt pay attention to the website in this period of time.

Thanks for changing some files in my website to fix the problems we talked. Now website is working fine

But i would like to know if this fixes as been also added to the Easyblog core, as i would like to update to the latest version without loosing the changes.
My license is expiring soon, and i wont renew if i will not be able to update.

Regarding the remove of revision feature, that is not needed. As we commented before, Easyblog can add only some extra lines of code and use this code only in case Falang is installed and active on the website. Otherwise you can still continue using the revision feature. In fact, in my website, when loading Spanish content, its loaded from the revision table, and when loading English content, its loaded from Falang database.

I really hope you added, or plan to add soon full compatibility with Falang:


Regards!
·
Thursday, 16 March 2017 03:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes those fixes already included in latest version of Easyblog.

Thanks for your input Martin, we will see if we can do something about it in Easyblog 5.1.
·
Thursday, 16 March 2017 17:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex!

I've pass this issue to our developer regarding this, we modified following these files from your site.
JOOMLA/administrator/components/com_easyblog/models/blogger.php
JOOMLA/administrator/components/com_easyblog/models/category.php
JOOMLA/administrator/components/com_easyblog/models/blog.php
JOOMLA/administrator/components/com_easyblog/includes/easyblog.php
That pagination should work fine now.


So if i update to latest version of EB i will not loose changes you made?

What are the things you should think about to include in v5.1?

Post translation (without revision), pagination, and SEF URL are already fix on latest version? Which ones are already implemented, and which ones dont?
·
Friday, 17 March 2017 03:20
·
0 Likes
·
0 Votes
·
0 Comments
·
So if i update to latest version of EB i will not loose changes you made?

Yes.

What are the things you should think about to include in v5.1?
We will see whether that is possible to implement these :
1. Convert existing revision data into the string, because now we stored it as JSON data.
2. Try to implement add 1 new columns to store those blog preview content, so this columns can allow 3rd party plugin to modify the blog content.

Post translation (without revision), pagination, and SEF URL are already fix on latest version? Which ones are already implemented, and which ones dont?

In current latest Easyblog version is only fix that pagination issue.
·
Friday, 17 March 2017 10:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Any news on this? Can you confirm that you will include this on 5.1?
Thanks!
·
Friday, 24 March 2017 00:12
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome Martin.

I've pass this issue to our developer regarding this, we modified following these files from your site.
JOOMLA/administrator/components/com_easyblog/models/blogger.php
JOOMLA/administrator/components/com_easyblog/models/category.php
JOOMLA/administrator/components/com_easyblog/models/blog.php
JOOMLA/administrator/components/com_easyblog/includes/easyblog.php
That pagination should work fine now.

This fix will included in Easyblog 5.1 as well.

We will see whether that is possible to implement these :
1. Convert existing revision data into the string, because now we stored it as JSON data.
2. Try to implement add 1 new columns to store those blog preview content, so this columns can allow 3rd party plugin to modify the blog content.

Regarding this, our developer still working on it in Easyblog 5.1.
·
Friday, 24 March 2017 15:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post