I've created a custom search function for our site, searching through jomsocial groupdiscussions.
It's built up like this:
JOOMLA_ROOT/compontens/com_community/views/MY_CUSTOM_FUNCTION/[url removed, login to view]
JOOMLA_ROOT/compontens/com_community/controllers/[url removed, login to view]
JOOMLA_ROOT/compontens/com_community/templates/my_template/[url removed, login to view]
It also utilizes a php file located in the root folder which is used to return searchresults based on ajax.
The function currently works as it's supposed to.. but I need help to integrate joomla's built in pagination class for the results - jpagination.
It should be a simple matter, but I'm not very familiar yet with the MVC layout of Joomla and there want YOUR help :)
I will need good documentation on your code for future updates.