allinonemodule - display only 9 books

Started by tester, 29 February 2012, 17:45:17

Previous topic - Next topic
A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

tester

Sorry for my bad English.
Hi I have problem with setting the number of books displayed in the module allinonemodule (random).
Currently showing all records from the database.
It needs to display only 9 of every category.
Is it possible?

---
I have joomla 2.5
Alexandria Book Library component Version:2.0.2
and All-in-one module Version:1.0.3


Screenshot

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9

federica

Hi tester,
this is a bug!!! Thanks for your notice.
To fix it open the file your_site/modules/mod_abook_allinone/helper.php
Modify the row number 138
from
$db->setQuery($query);
to
$db->setQuery($query, 0, $count);

I will fix this bug as soon as possible.
To choose the number of book to show you can change the "Counter" parameter on module configuration.
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

tester

It works thanks for your help ;)
I finish the project to pay a donation.
Regards

federica

Hi mnich20,
I fixed the bug and published the new version of module.
If you want you can download it following this link
Alexandria Book Library All-in-one module
Upgrade the old version.

Thank you for your donation. If you like this component, I'd appreciate if you would put a review on the joomla.org site.
Bye bye
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
Informatizzati [url="https://informatizzati.org"]https://informatizzati.org[/url]
Stacca la spina [url="https://disconnessi.org"]https://disconnessi.org[/url]

A financial contribution is greatly appreciated as a support, to help us to keep live the project.
If you like this project you can donate some piece of BitCoin to this address: bc1qy5tgq6tvrckac2a57unxvqcnxamrvhduve9sj9