joomla module development

Ultimate bridge for connecting Joomla! and phpBB 3.
Forum rules
This forum is not for any support questions/issues/features. Please use Support Center for such requests.
hybiepoo
Posts: 2
Joined: June 25th, 2014, 7:58 am
Name: Jeff

joomla module development

Post by hybiepoo » June 28th, 2014, 2:01 am

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

User avatar
Admin
Site Admin
Site Admin
Posts: 1584
Joined: October 21st, 2008, 5:39 pm
Name: Administrator
Browser: Chrome

Re: joomla module development

Post by Admin » June 28th, 2014, 12:31 pm

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');

hybiepoo
Posts: 2
Joined: June 25th, 2014, 7:58 am
Name: Jeff

Re: joomla module development

Post by hybiepoo » June 28th, 2014, 7:48 pm

Excellent thankyou!

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