Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Paging not showing up with bookmarked and mine
Hi all
I used Vanilla version 2.0.18.4 with default theme . have 50+ topic. not use categories.
The paging not showing up with /bookmarked and /mine . but can be showing up well with /discussions .
I can use /bookmarked/p2 and /mine/p2 . it is work. but paging not showing up.
The paging div can showing other txt. but paging is null. looks not a css error .
Thanks.!
Tagged:
0
Answers
./applications/vanilla/views/discussions/index.php
$PagerOptions = array('RecordCount' => $this->Data('CountDiscussions'), 'CurrentRecords' => $this->Data('Discussions')->NumRows()); if ($this->Data('_PagerUrl')) { $PagerOptions['Url'] = $this->Data('_PagerUrl'); } echo PagerModule::Write($PagerOptions);
PagerModule::Write($PagerOptions);
Only showing up with /discussions : «123456» .
PagerModule::Write();
Showing up with /discussions /bookmarked and /mine : Previous Next .
I want paging showing up with /discussions /bookmarked and /mine . like «123456» .
I try edit the /bookmarked and /mine pagerfactory in
./applications/vanilla/controllers/class.discussionscontroller.php
But it not work .
Thanks.!
./applications/vanilla/views/discussions/index.php
$PagerOptions = array('RecordCount' => $this->Data('CountDiscussions'), 'CurrentRecords' => $this->Data('Discussions')->NumRows());
Maybe it can not count the bookmarked and mine ?
Vanilla_2.0.18 - Vanilla_2.0.18.4 default theme no plugins .
Thanks.!
Hello,
I found the same problem...
I solved changing the 'applications\vanilla\views\discussions\index.php' like this:
$CountDiscussions = $this->Data('CountDiscussions');
if (!$CountDiscussions) {
$CountDiscussions = $this->RequestMethod == 'bookmarked' ?
$Session->User->CountBookmarks : $CountDiscussions ;
$CountDiscussions = $this->RequestMethod == 'mine' ?
$Session->User->CountDiscussions : $CountDiscussions ;
$CountDiscussions = $this->ControllerName == 'draftscontroller' ?
$Session->User->CountDrafts : $CountDiscussions ;
}
$PagerOptions = array('RecordCount' => $CountDiscussions, 'CurrentRecords' => $this->Data('Discussions')->NumRows());
if ($this->Data('_PagerUrl')) {
$PagerOptions['Url'] = $this->Data('_PagerUrl');
}
I hope can help somebody that searching by this problem...
Sorry...
Hello,
I found the same problem...
I solved changing the 'applications\vanilla\views\discussions\index.php' like this:
`$CountDiscussions = $this->Data('CountDiscussions');
if (!$CountDiscussions) {
$CountDiscussions = $this->RequestMethod == 'bookmarked' ?
$Session->User->CountBookmarks : $CountDiscussions ;
$CountDiscussions = $this->RequestMethod == 'mine' ?
$Session->User->CountDiscussions : $CountDiscussions ;
$CountDiscussions = $this->ControllerName == 'draftscontroller' ?
$Session->User->CountDrafts : $CountDiscussions ;
}
$PagerOptions = array('RecordCount' => $CountDiscussions, 'CurrentRecords' => $this->Data('Discussions')->NumRows());
if ($this->Data('_PagerUrl')) {
$PagerOptions['Url'] = $this->Data('_PagerUrl');
}`
I hope can help somebody that searching by this problem...