OS Property support center

Paging isn't working right...

  • PSeers
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #18676 by PSeers
Paging isn't working right... was created by PSeers
I have 2 pages one for agents and one for listings and the paging system isn't working correctly.

First for the Agents page viewed at: myclienthosting.com/bricksandmortarreale...e/meet-the-team.html

Yes it is just the default template for Joomla and yes the agents are in multiple times for testing purposes. I want it to load the default 6 agents to begin with not all 7 of them that it does when you load the page. And when you select 6 it cuts it down to 6 but It doesn't show next page so you can't view any more agents. I can put the paging file back to original but all I changed was from multiples of 5 to multiples of 6. Also when there is no other page is there a way to removed the box under the "display num [6]"

Second for the listings viewed at myclienthosting.com/bricksandmortarrealestate/our-listings.html

When you click view our listings it shows all of them not the default 6 which again all I changed was 5 to multiples of 6 it didn't work right with 5 either though. Same error as the agents page but this one does do page 1 of 2 and next previous and first/last buttons.
Also when there is no other page is there a way to removed the box under the "display num [6]"

Thank you for all your help so far
I just updated it to the new Version hoping that might fix some of these issues but they didn't

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #18692 by Mr. Dam
Replied by Mr. Dam on topic Re: Paging isn't working right...
Hi,
I confirm the first issue. It is fixed, i will update file soon after i figure the second issue.
About the second problem. It's the list properties page. But i don't see the same problem in our product.
Can you send me your site information with administrator account to : damdt@joomservices.com so i can check it for you.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • PSeers
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #18742 by PSeers
Replied by PSeers on topic Re: Paging isn't working right...
So I was working with the pagination.php and edit a little to see if I could fix the problems and didn't put file back to the original one other than the multiples of six. I edited line 144 from:
Code:
function getPagesCounter() { // Initialize variables $html = null; if ($this->get('pages.total') > 1) { $html .= JText::_('Page')." ".$this->get('pages.current')." ".JText::_('of')." ".$this->get('pages.total'); } return $html; }
To
Code:
$html = null; $html .= JText::_('Page')." ".$this->get('pages.current')." ".JText::_('of')." ".$this->get('pages.total'); return $html; }

So it would return Page 1 of 1 for listings and agents but for agents it returned Page 1 of 0. What I want is that box removed if there is only 1 page or if it is set to display all

The code in the html that needs to be hidden if there is only one page.
Code:
<div class="counter"></div> <input type="hidden" name="limitstart" value="0" /> </div>

I have attached photos of it also I will send you the login info too.




Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #18761 by Mr. Dam
Replied by Mr. Dam on topic Re: Paging isn't working right...
I have adjusted the pagination file of you. Change 6 to 5 and it's ok now.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • PSeers
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #18773 by PSeers
Replied by PSeers on topic Re: Paging isn't working right...
I wanted it at 6 it looks funny having 2 listing per line and than 1 listing at the end and still have pages of listings left. What I do not want is the Box (Div Counter) under that the "display num [6]" or I want the code to be hidden when there is only one page of results and show when there is multiple pages. Is there a way to hide this div if it returns only one page. The photos in the other post have that box one centered under "display num [6]" the other off to the left of "display num [6]"
Code:
<div class="counter"></div> <input type="hidden" name="limitstart" value="0" /> </div>

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago #18790 by Mr. Dam
Replied by Mr. Dam on topic Re: Paging isn't working right...
It's ok to setup 6,12, v.v.
But remember these problems
for ($i = 5; $i <= 30; $i += 5) {
$limits[] = JHTML::_('select.option', "$i");
}
$limits[] = JHTML::_('select.option', '50');
$limits[] = JHTML::_('select.option', '100');
$limits[] = JHTML::_('select.option', '0', JText::_('all'));
you can change to
for ($i = 6; $i <= 36; $i += 6) {
$limits[] = JHTML::_('select.option', "$i");
}
$limits[] = JHTML::_('select.option', '60');
$limits[] = JHTML::_('select.option', '120');
$limits[] = JHTML::_('select.option', '0', JText::_('all'));

And all page in the classes folder.
please change $limit = Jrequest::getVar('limit',20);
to
$limit = Jrequest::getVar('limit',24);

Good luck!
Dam

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #34521 by Benjamin
Replied by Benjamin on topic Re: Paging isn't working right...
Hello,
I have the same problem of pagination. I have the number of ads to display by page with 5 but the rest of the ads is inaccessible. There is not the selection of number of page for my OSP TRANSPARENT template .

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #34522 by Mr. Dam
Replied by Mr. Dam on topic Re: Paging isn't working right...
Hi Benjamin,
Can you send the url of the problem to me for checking it?
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #34524 by Benjamin
Replied by Benjamin on topic Re: Paging isn't working right...
here the link:: benin-services.com/a-vendre .

Thank you

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #34527 by Mr. Dam
Replied by Mr. Dam on topic Re: Paging isn't working right...
Hi,
Can you tell me more about the problem?
Thank you
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan