Is member login included in p8pbb bridge ?

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.
wonderland
Newbie
Newbie
Posts: 10
Joined: June 21st, 2012, 4:33 am
Name: Uldis

Is member login included in p8pbb bridge ?

Post by wonderland » July 5th, 2012, 9:37 am

Hello,

I really like Member login module like this site has in top right corner. I was wondering is this available with bridge or is it an additional purchase ?

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

Re: Is member login included in p8pbb bridge ?

Post by Admin » July 5th, 2012, 12:18 pm

Not included, but we can supply a custom layout for usual Joomla's mod_login which shows the avatar from phpBB.

The attachment contains custom layout files for mod_login for Joomla 2.5 and 3.
Extract required archive into /templates/your_joomla_template/html/mod_login/ folder (create if not exists), next select 'p8pbb' layout in login module's settings.
You do not have the required permissions to view the files attached to this post.

wonderland
Newbie
Newbie
Posts: 10
Joined: June 21st, 2012, 4:33 am
Name: Uldis

Re: Is member login included in p8pbb bridge ?

Post by wonderland » July 5th, 2012, 1:38 pm

How much would it cost ?

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

Re: Is member login included in p8pbb bridge ?

Post by Admin » July 5th, 2012, 2:48 pm

Sorry, we won't develop such integration.

wonderland
Newbie
Newbie
Posts: 10
Joined: June 21st, 2012, 4:33 am
Name: Uldis

Re: Is member login included in p8pbb bridge ?

Post by wonderland » July 11th, 2012, 6:06 am

But you said "but we can supply a custom layout for usual Joomla's mod_login which shows the avatar from phpBB."

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

Re: Is member login included in p8pbb bridge ?

Post by Admin » July 11th, 2012, 3:51 pm

Custom layout for usual Joomla's mod_login can be supplied and installed for free.

wonderland
Newbie
Newbie
Posts: 10
Joined: June 21st, 2012, 4:33 am
Name: Uldis

Re: Is member login included in p8pbb bridge ?

Post by wonderland » July 27th, 2012, 1:50 am

That would be very nice. I have a bit customized mod_login, I would just like to add code for profile picture.

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

Re: Is member login included in p8pbb bridge ?

Post by Admin » July 27th, 2012, 2:24 pm

Here is the example code of the mod_login layout:

Code: Select all

<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_login
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
?>
<?php if ($type == 'logout') : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form">
<?php if ($params->get('greeting')) : ?>
	<div class="login-greeting" style="text-align:center">
	<?php if($params->get('name') == 0) : {
		echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('name')));
	} else : {
		echo JText::sprintf('MOD_LOGIN_HINAME', htmlspecialchars($user->get('username')));
	} endif; ?>
	</div>
<?php endif; ?>

	<?php
	$fuser = JFactory::getUser()->get('phpbb');
	
	if (isset($fuser['user_avatar']) && $fuser['user_avatar']) {
		$_COOKIE['p8pbb_avatar'] = '/forum/download/file.php?avatar='.$fuser['user_avatar'];
		setcookie('p8pbb_avatar', $_COOKIE['p8pbb_avatar'], time()+2592000, '/'); // 1 month
	}
	if (!isset($_COOKIE['p8pbb_avatar']) || empty($_COOKIE['p8pbb_avatar']) || $_COOKIE['p8pbb_avatar'] == '/forum/download/file.php?avatar=') {
		$_COOKIE['p8pbb_avatar'] = '/forum/styles/prosilver/theme/images/no_avatar.gif';
	}
	?>

	<div style="text-align:center; padding:5px 0">
		<a href="/mlforum/user" title="<?php echo JText::_('Edit profile');?>" style="background:none; padding:0">
			<img src="/<?php echo $_COOKIE['p8pbb_avatar'];?>" alt="" style="border:1px solid #d7d7d7; padding:1px" />
		</a>
		<?php if (isset($fuser['user_new_privmsg']) && $fuser['user_new_privmsg']) {?>
			<p>You have <?php echo $fuser['user_new_privmsg'];?> new message(s).</p>
		<?php }?>
	</div>
	
	<div class="logout-button" style="text-align:center">
		<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGOUT'); ?>" />
		<input type="hidden" name="option" value="com_users" />
		<input type="hidden" name="task" value="user.logout" />
		<input type="hidden" name="return" value="<?php echo $return; ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
</form>
<?php else : ?>
<form action="<?php echo JRoute::_('index.php', true, $params->get('usesecure')); ?>" method="post" id="login-form" >
	<?php if ($params->get('pretext')): ?>
		<div class="pretext">
		<p><?php echo $params->get('pretext'); ?></p>
		</div>
	<?php endif; ?>
		
	<fieldset class="userdata">
	<p id="form-login-username">
		<label for="modlgn-username"><?php echo JText::_('MOD_LOGIN_VALUE_USERNAME') ?></label>
		<input id="modlgn-username" type="text" name="username" class="inputbox"  size="18" />
	</p>
	<p id="form-login-password">
		<label for="modlgn-passwd"><?php echo JText::_('JGLOBAL_PASSWORD') ?></label>
		<input id="modlgn-passwd" type="password" name="password" class="inputbox" size="18"  />
	</p>
	<?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
	<p id="form-login-remember">
		<label for="modlgn-remember"><?php echo JText::_('MOD_LOGIN_REMEMBER_ME') ?></label>
		<input id="modlgn-remember" type="checkbox" name="remember" class="inputbox" value="yes"/>
	</p>
	<?php endif; ?>
	<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGIN') ?>" />
	<input type="hidden" name="option" value="com_users" />
	<input type="hidden" name="task" value="user.login" />
	<input type="hidden" name="return" value="<?php echo $return; ?>" />
	<?php echo JHtml::_('form.token'); ?>
	</fieldset>
	<ul>
		<li>
			<a href="/<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
			<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
		</li>
		<li>
			<a href="/<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
			<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
		</li>
		<?php
		$usersConfig = JComponentHelper::getParams('com_users');
		if ($usersConfig->get('allowUserRegistration')) : ?>
		<li>
			<a href="/<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
				<?php echo JText::_('MOD_LOGIN_REGISTER'); ?></a>
		</li>
		<?php endif; ?>
	</ul>
	<?php if ($params->get('posttext')): ?>
		<div class="posttext">
		<p><?php echo $params->get('posttext'); ?></p>
		</div>
	<?php endif; ?>
</form>
<?php endif; ?> 

wonderland
Newbie
Newbie
Posts: 10
Joined: June 21st, 2012, 4:33 am
Name: Uldis

Re: Is member login included in p8pbb bridge ?

Post by wonderland » August 8th, 2012, 8:54 am

Thank you !

mojo
Posts: 4
Joined: July 21st, 2012, 6:47 pm
Name: Lester
Browser: Firefox

Re: Is member login included in p8pbb bridge ?

Post by mojo » August 11th, 2012, 2:31 pm

which files would i need to edit to make this work?