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.
Post Reply
hybiepoo
Posts: 2
Joined: June 25th, 2014, 8:58 am
Name: Jeff

joomla module development

Post 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
User avatar
Admin
Site Admin
Site Admin
Posts: 1077
Joined: October 21st, 2008, 6:39 pm
Name: Administrator
Browser: Chrome

Re: joomla module development

Post 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');
hybiepoo
Posts: 2
Joined: June 25th, 2014, 8:58 am
Name: Jeff

Re: joomla module development

Post by hybiepoo »

Excellent thankyou!

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