Topic-icon Akeeba Subscription..no register, login buttons

Active Subscriptions:

None
12 years 7 months ago #38297 by stesab
Alex,
Hi.
I just installed the Akeeba Subscriptions on site.
Here is one of the pages of a subscription level goo.gl/bmb3MJ
I did read that you are using Akeeba on this site and i did check to see that one could subscribe using google, facebook, linkedin...

I am not quite sure what i am doing wrong and why the subscribe/login buttons are not on those subscription pages.
am i missing something? Completely off?

Thanks and hope all is well.
S.
The topic has been locked.
Support Specialist
12 years 7 months ago #38298 by alzander
Steve,
Sorry for the delayed response to your email and your great offer of a hangout. We're knee deep in the v5.2 release (Twitter auth, EasySocial, and more) and preparing for the Joomla World Conference on November 8. I'm really hoping to get something going with you around the middle of the month. If you'd like to chat before then to get any info you need, no problem.. just let me know!

As for AkeebaSubs, we don't have automatic integration for it. For our site, we created a template override by copying /components/com_akeebasubs/views/level/tmpl/default_login.php to
/templates/<YOUR_TEMPLATE>/html/com_akeebasubs/level/default_login.php

Then, edit that file. Our overridden file has the contents below:
defined('_JEXEC') or die();

$login_url = 'index.php?option=com_users&task=user.login';

$redirectURL = JURI::getInstance()->toString();
/*
$rootURL = rtrim(JURI::base(),'/');
$subpathURL = JURI::base(true);
if(!empty($subpathURL) && ($subpathURL != '/')) {
        $rootURL = substr($rootURL, 0, -1 * strlen($subpathURL));
}

$redirectURL = $rootURL. str_replace('&amp;','&',
        JRoute::_('index.php?option=com_akeebasubs&view=level&layout=default&slug='.$this->input->getString('slug','')))
*/

$fbButtonImage = JURI::root().'media/sourcecoast/images/provider/button_facebook.png';
$gButtonImage = JURI::root().'media/sourcecoast/images/provider/button_google.png';
$liButtonImage = JURI::root().'media/sourcecoast/images/provider/button_linkedin.png';
?>

<div class="akeebasubs-login">
<fieldset>
        <legend><?php echo JText::_('COM_AKEEBASUBS_LEVEL_LOGIN');?></legend>
        <a class="btn btn-primary" href="#login-modal" role="button" data-toggle="modal">Login</a>
        <span>Or login using</span>
        <a id="sc_fblogin" href="javascript:void(0)" onclick="jfbc.login.facebook();"><img src="<?php echo $fbButtonImage;?>" /></a>
        <a id="sc_gplogin" href="javascript:void(0)" onclick="jfbc.login.google();"><img src="<?php echo $gButtonImage;?>" /></a>
        <a id="sc_lilogin" href="javascript:void(0)" onclick="jlinked.login.login();"><img src="<?php echo $liButtonImage;?>" /></a>
</fieldset>
</div>
You could add the {JFBCLogin} tag as well there after the "Or login using" line.. our code is just a little older.

I hope that helps, but if you have *any* questions, just let me know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Alex,
Fully understand and will try the template override as you suggested.
Mid-November is fine for hangout.
Take care,
Steve
The topic has been locked.
Support Specialist
12 years 7 months ago #38360 by alzander
Stephen,
Awesome. Keep me posted on how that override goes. Of course, if you run into issues or have any questions, just let me know.

I'll get in touch in mid-November... or feel free to message/email me anytime. Really excited about the idea!

Thanks,
Alex
The topic has been locked.