Post by adijo » Fri Aug 14, 2015 4:19 pm

Hi All ..I am facing an issue with module called "Awesome+Login+Register+Facebook+Google" by OZXMOD .. i was able to install the module successfully on Journal2 theme, however the installation instruction was not correct by the developer so i modified the XML file but now when i log in as user its not showing the name of the customer..its showing "text_logged" instead of customer name, please help me to rectify this.. please find below the XML code i have modified...

<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>VQMOD CODE FOR Ajax Login Register</id>
<version>1.2</version>
<vqmver>2.4</vqmver>
<author>ozxmod (*****)</author>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation error="skip">
<search position="before"><![CDATA[
</head>
]]></search>
<add><![CDATA[
<link rel="stylesheet" type="text/css" href="catalog/view/theme/journal2/css/ajax_login_register.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery.bpopup.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/ajax_login_register.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/tabs.js"></script>
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation error="skip">
<search position="replace"><![CDATA[
<a href="<?php echo $register; ?>"><?php echo $text_register; ?></a>
]]></search>
<add><![CDATA[
<?php global $config; ?>
<?php if($config->get('ajaxfbgoogle_status')) { ?>
<a id="signuppopup"><?php echo $text_register; ?></a>
<?php } else { ?>
<a href="<?php echo $register; ?>"><?php echo $text_register; ?></a>
<?php } ?>
]]></add>
</operation>
<operation error="skip">
<search position="replace"><![CDATA[
<a href="<?php echo $login; ?>"><?php echo $text_login; ?></a>
]]></search>
<add><![CDATA[
<?php global $config; ?>
<?php if($config->get('ajaxfbgoogle_status')) { ?>
<a id="loginpopup"><?php echo $text_login; ?></a>
<?php } else { ?>
<a href="<?php echo $login; ?>"><?php echo $text_login; ?></a>
<?php } ?>
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation error="skip">
<search position="after"><![CDATA[
<body
]]></search>
<add><![CDATA[
<?php global $config; ?>

<?php if($config->get('ajaxfbgoogle_status')) { ?>
<div style="display:none" id="ajax_login">
<span id="cross_icon_login"><img style="width:16px" src="catalog/view/theme/journal2/image/cross_icon.jpg" /></span>
<div id="tabs-login" class="my-htabs" style="width: 355px;">
<a id="ajaxlogintab" href="#tab-login"><?php echo $tab_login; ?></a>
<a id="ajaxsignuptab" href="#tab-register"><?php echo $tab_signup; ?></a>
</div>
<div id="tab-login" class="my-tab-content">
<div id="login_details">
<table>
<tr>
<td><span class="login_display"><?php echo $text_email; ?></span></td>
<td><input type="text" value="" name="ajax_email" /></td>
</tr>
<tr>
<td><span class="login_display"><?php echo $text_password; ?></span></td>
<td><input type="password" value="" name="ajax_password" /></td>
</tr>
<tr id="login_submit_div">
<td></td>
<td>
<div>
<input type="button" value="<?php echo $button_login; ?>" id="button-login-pop" class="ajax_login" />
<a id="forgot_password">&nbsp;&nbsp;<?php echo $text_forgot; ?></a>
</div>
</td>
</tr>
</table>
<div id="forgot_password_div" style="display:none;">
<table>
<tr>
<td colspan="2">
<?php echo $text_forgot_desc; ?>
</td>
</tr>
<tr>
<td>
<span class="login_display" style="margin-right:10px;"><?php echo $text_email; ?></span>
</td>
<td>
<input type="text" name="ajax_forgot_email" />
</td>
</tr>
<tr>
<td></td>
<td>
<input type="button" value="<?php echo $button_send; ?>" id="button-forgot-password" class="ajax_login" />
</td>
</tr>

</table>
</div>
</div>
</div>
<div id="tab-register" class="my-tab-content">
<div id="signup_details">
<table>
<tr>
<td><span class="signup_display"><?php echo $text_email; ?></span></td>
<td><input type="text" value="" name="ajax_register_email" /></td>
</tr>
<tr>
<td><span class="signup_display"><?php echo $text_password; ?></span></td>
<td><input type="password" name="ajax_register_password" /></td>
</tr>
<tr>
<td><span class="signup_display"><?php echo $text_repeat; ?></span></td>
<td><input type="password" name="re_ajax_register_password" /></td>
</tr>
<tr id="signup_submit_div">
<td></td>
<td>
<div>
<input type="button" value="<?php echo $button_signup; ?>" id="button-register-pop" class="ajax_login" />
</div>
</td>
</tr>
</table>

</div>
</div>
<?php if(!$config->get('ajaxfbgoogle_display_fb') && !$config->get('ajaxfbgoogle_display_google')) { ?>
<?php } else { ?>
<div class="login-divider-or">
</div>
<div id="signin_with_div">
<div class="signin_with_div_inner">
<span style="font-weight: bold;"><?php echo $text_sign_with; ?></span><br/><br/>
<?php if($config->get('ajaxfbgoogle_display_fb')) { ?>
<a href="<?php echo $fb_login; ?>">
<img style="width: 160px;" src="<?php echo HTTPS_SERVER."image/data/fb_login.png"; ?>" title="<?php echo $text_fb_title; ?>" alt="<?php echo $text_fb_title; ?>" />
</a>
<br/>
<?php } ?>
<?php if($config->get('ajaxfbgoogle_display_google')) { ?>
<a href="<?php echo $g_login; ?>">
<img style="width: 160px;" src="<?php echo HTTPS_SERVER."image/data/g_login.png"; ?>" title="<?php echo $text_google_title; ?>" alt="<?php echo $text_google_title; ?>" />
</a> <br/>
<?php } ?>
<?php if($config->get('ajaxfbgoogle_display_twitter')) { ?>
<a id="twit_link">
<img style="width: 160px;" src="<?php echo HTTPS_SERVER."image/data/twitter.png"; ?>" title="<?php echo $text_twitter_title; ?>" alt="<?php echo $text_google_title; ?>" />
</a> <br/>
<?php } ?>
<?php if($config->get('ajaxfbgoogle_display_linkedin')) { ?>
<a href="<?php echo $linkedin_login; ?>">
<img style="width: 160px;" src="<?php echo HTTPS_SERVER."image/data/linkedin_login.png"; ?>" title="<?php echo $text_linkedin_title; ?>" alt="<?php echo $text_linkedin_title; ?>" />
</a> <br/>
<?php } ?>
</div>
</div>
<?php } ?>
<div class="login_footer">
<span class="footer_close" id="footer_close">Close window <b>X</b></span>
</div>
</div>

<div style="display:none" id="ajax_login_twit">
<span id="cross_icon_twitter_login"><img style="width:16px" src="catalog/view/theme/journal2/image/cross_icon.jpg" /></span>
<div id="tabs-twitter-login" style="width: 355px;">
<a><?php echo $tab_twitter; ?></a>
</div>
<div id="tab-twitter-login" class="my-tab-content">
<div id="twitter_login_details">
<table>
<tr>
<td><span class="login_display"><?php echo $text_twit_email; ?></span></td>
<td><input type="text" value="" name="ajax_twit_email" /></td>
</tr>

<tr id="twitter_login_submit_div">
<td></td>
<td>
<div>
<input type="button" value="<?php echo $button_login; ?>" id="button-twit-login" class="ajax_login" />
</div>
</td>
</table>
</div>
</div>
</div>
<?php } ?>
<?php

if(isset($ozxmod_twit_error))
echo "<script> var ozxmod_twit_error = '".$ozxmod_twit_error."'</script>";
else echo "<script> var ozxmod_twit_error = '' </script>";
?>
]]></add>
</operation>
</file>
<file name="catalog/controller/common/header.php">
<operation error="skip">
<search position="after"><![CDATA[
// Text
]]></search>
<add><![CDATA[
$_['text_logged'] = '<a href="%s">%s</a><a href="%s">Logout</a>';
]]></add>
</operation>
</file>
<file name="catalog/controller/common/header.php">
<operation error="skip">
<search position="after"><![CDATA[
$data['account'] = $this->url->link('account/account', '', 'SSL');
]]></search>
<add><![CDATA[
global $config;
$this->language->load('account/ajax_login_register');

$data['text_new_welcome'] = $this->language->get('text_new_welcome');
$data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', 'SSL'), $this->customer->getFirstName(), $this->url->link('account/logout', '', 'SSL'));
$data['tab_login'] = $this->language->get('tab_login');
$data['tab_signup'] = $this->language->get('tab_signup');
$data['text_email'] = $this->language->get('text_email');
$data['text_password'] = $this->language->get('text_password');
$data['text_forgot'] = $this->language->get('text_forgot');
$data['text_forgot_desc'] = $this->language->get('text_forgot_desc');
$data['text_repeat'] = $this->language->get('text_repeat');
$data['text_sign_with'] = $this->language->get('text_sign_with');
$data['text_fb_title'] = $this->language->get('text_fb_title');
$data['text_google_title'] = $this->language->get('text_google_title');
$data['text_twitter_title'] = $this->language->get('text_twitter_title');
$data['text_linkedin_title'] = $this->language->get('text_linkedin_title');
$data['button_login'] = $this->language->get('button_login');
$data['button_send'] = $this->language->get('button_send');
$data['button_signup'] = $this->language->get('button_signup');
$data['tab_twitter'] = $this->language->get('tab_twitter');
$data['text_twit_email'] = $this->language->get('text_twit_email');


$data['forgot_password'] = $this->url->link('account/forgotten', '', 'SSL');

require_once(DIR_SYSTEM . 'social-login/facebook-sdk/facebook.php');
require_once DIR_SYSTEM.'social-login/google/src/apiClient.php';
require_once DIR_SYSTEM.'social-login/google/src/contrib/apiOauth2Service.php';

// Google login

$loc= urlencode ("https://".$_SERVER['HTTPS_HOST'].$_SERVER['REQUEST_URI']);
$this->session->data['ajaxfblogin_loc'] = $loc;
$client = new apiClient();
$client->setApplicationName("Google+ PHP Starter Application");
// Visit https://code.google.com/apis/console to generate your
// oauth2_client_id, oauth2_client_secret, and to register your oauth2_redirect_uri.
$client->setClientId($config->get('ajaxfbgoogle_googleapikey'));
$client->setClientSecret($config->get('ajaxfbgoogle_googleapisecret'));
$client->setRedirectUri($this->url->link('account/ajax_login_register/glogin', '', 'SSL'));
$client->

Newbie

Posts

Joined
Fri Aug 14, 2015 4:02 pm

Post by deepvision » Fri Aug 14, 2015 10:35 pm

Looks like the following file is missing: /catalog/language/english/account/ajax_login_register.php
Or the following variable is missing in the file:

Code: Select all

$_['text_logged']

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am

Post by asihej » Fri Dec 18, 2015 12:48 am

Im having same problem, cant fix it. Please help !

Newbie

Posts

Joined
Fri Dec 18, 2015 12:47 am
Who is online

Users browsing this forum: No registered users and 7 guests