AlterBrains • joomla module development
Page 1 of 1

joomla module development

Posted: June 28th, 2014, 3:01 am
by hybiepoo
I have downloaded the p8pbb mod_login files, which adds the avatar to the login module.

I would like to develop this further though. Does the bridge allow us to query the phpBB database?
I'd like to add things like the users rank, rank image etc

Re: joomla module development

Posted: June 28th, 2014, 1:31 pm
by Admin
Yes, sure:

Code: Select all

require_once(JPATH_SITE.'/components/com_p8pbb/helper.php');

$fdb = p8pbbHelper::getForumDB(); 

$query = 'SELECT * FROM #__users';
$fdb->setQuery($query, 0, 50);
$rows = $fdb->loadObjectList();

p8pbbHelper::_restoreDB('j');

Re: joomla module development

Posted: June 28th, 2014, 8:48 pm
by hybiepoo
Excellent thankyou!

I can post up my final module if anyone is interested.