The Problem is “Topic” pagination. Pagination in posts, when there are enough replies… works… strange…
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
June 19, 2011 5:09pm
Subscribe [5]#16 / Jun 28, 2011 4:47pm
The Problem is “Topic” pagination. Pagination in posts, when there are enough replies… works… strange…
#17 / Jun 29, 2011 8:53am
After testing some more… The Forum Pagination is not the only problem. Pagination in Expression Engine Channel Entries are working as they should, but Pagination in Comments are showing nothing. The first 10 entries are shown (There are about 150 of them), but no pagination ? Ist did not test it in Version 2.1.3 so I cannot say if it worked there…
{exp:channel:entries channel="guestbook" limit="1" require_entry="yes"}
{exp:comment:entries channel="guestbook" orderby="gmt_comment_date" sort="desc" limit="10" paginate="top"}
{paginate}
<div>
Seite {current_page} von {total_pages} - {pagination_links}
</div>
{/paginate}
{/exp:comment:entries}
{/exp:channel:entries}#18 / Jun 30, 2011 9:09am
Okay….
I found the problem with the pagination.. Pagination of comments seems only to work in “index” Templates and not in “entries” Templates. Which seems strange to me.
Is there an explanation for this….
But this did not solve my problem for the missing pagination in forum…
Any ideas ?
#19 / Jun 30, 2011 12:55pm
Let me explain the only error I still have (which is the topic of this forum entry):
My Forum Topic Overview doesn’t show a pagination. This is the pagination in the Template “Forum Topics/Topics.html”.
The Tag {if paginate} is executed correctly because there are about 18 Pages.
{current_page} shows 1
{total_pages} show 18
{pagination_links} don’t show anything
even
{if next_page} is ignored.
So I don’t know where to look further or how I can fix this error. It may be possible to change to the old forum version (3.12) which works for me (in combination with 2.1.3). But I think it should work.
If I append /P40 or something to the URL. The next page is shown and current page shows 2, but still no pagination is seen.
Am I the only one with this problem ?
If the pagination is shown, then I could check if the translation is correct now….. Maybe there is something missing in the language File, because there was no german language file for Forum 3.14 till now…
So there is no chance to have an automatic paging?
#20 / Jul 01, 2011 2:17am
So I installed a backup from Version 3.12 (only forum module folder) and voilá it works….
So maybe something with my installation of Version 3.14 was wrong or there is a bug in forum module.
#21 / Jul 01, 2011 12:10pm
Yep, I’m assuming your forum installation was somehow corrupted. I would try upgrading to 3.1.5 (as of yesterday) with a fresh download. I tested with both 3.1.4 and 3.1.5, and they both worked just as expected.
#22 / Jul 01, 2011 3:21pm
MMh, no chance…. Don’t work…..
I try something more…...
By the way…. Version 3.1.5. shows after install that is is Version 3.1.4 (mo.forum and upd.forum have old values)...
#23 / Jul 01, 2011 5:12pm
Okay, ladies and gentlemen
I don’t know why nobody can reproduce my error…. but I found the bug in mod.forum_core.php, even in Version 3.1.5
It is in line 2384:
$str = ($pagination = '') ? $this->deny_if('paginate', $str, ' ') :There should be a string comparison not a string assignment. Correct is:
$str = ($pagination == '') ? $this->deny_if('paginate', $str, ' ') :I think for the next version the version string should be updated, too…
Now I will look for my language problem….
#24 / Jul 01, 2011 5:35pm
Okay…
Language Problem found….. It is strange that nobody found it… ?
Problem is in mod.forum_core.php line 982 and line 983
'first_page' => lang('first'),
'last_page' => lang('last'),Don’t work, because in codeigniter Pagination.php file it reads first_link. So you have to correct this to
'first_link' => lang('first'),
'last_link' => lang('last'),Hope to find this bug fixes in your next releases….. So my spend hours are not for nothing….
Regards Jürgen
#25 / Jul 05, 2011 5:51pm
Thanks for the detailed information, Jurgen.
I posted a bug report on your behalf.
#26 / Jul 06, 2011 11:30am
Jürgen,
Fantastic job!. I have your fixes committed for the next release.
-greg
#27 / Jul 06, 2011 2:32pm
In that case, closing the thread. 😊 If anything else comes up, please do let us know in a new thread..