× Joomla Facebook Connect support forum

Topic-icon virtuemart account maintenance

Active Subscriptions:

None
12 years 8 months ago #12328 by 650
Can this link show like this
File Attachment:
when I use jfbconnect? Because it will take our customer to their purchase history and they can mange their account here. I try to login with jfbconnect and I didn't see anywhere to go to this page.
The topic has been locked.
Support Specialist
12 years 8 months ago #12341 by alzander
Are you saying you want to add that link to the JFBCLogin module? We can help you do that if so. I believe that's a 'fixed' link (it doesn't change per user), which should make that very easy to add if so.

The other option is to add the Login With Facebook button to Virtuemart's login module. To do so, you need to edit the template for their login module and simply add {JFBCLogin} wherever you want the login button to show.

Let us know,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #12360 by 650
Replied by 650 on topic virtuemart account maintenance
I would like to add {JFBCLogin} to virtuemart's login module. Please suggest me.
The topic has been locked.
Support Specialist
12 years 8 months ago #12380 by alzander
The Virtuemart login module has a pre-text and post-text box on it. You can use that area to simply add the {JFBCLogin} tag, and JFBConnect will detect and translate it for you. So, if you throw that into the post-text area, it will be at the bottom of the form, likely where you want it.

If you want it somewhere else, like in the 'middle' of the form, or before the links, you'll need to add the {JFBCLogin} tag to the /modules/mod_virtuemart_login/mod_virtuemart_login.php file. At the very bottom of the file, you'll see where the Login form is shown, and you can insert it in there.

Hope that helps, but if you need anything else, just let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #12382 by 650
Replied by 650 on topic virtuemart account maintenance
very cool alzander. Can I do this with mod hello me (jomsocial login module)? where can I add {JFBCLogin} tag?
The topic has been locked.
Support Specialist
12 years 8 months ago #12385 by alzander
I don't know the hellome module offhand. I don't believe there's a pre- or post-text in that module, so you'd have to modify the template directly.

Generally, there should be a template directory in the module like /modules/mod_hellome/tmpl In that tmpl directory, there's likely a default.php file. You'll need to open that up and find the proper place you want to add the {JFBCLogin} tag. If you really need help figuring it out, we can do so, but it may take a day or so for us to investigate and get you an answer.

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

None
12 years 8 months ago #12388 by 650
Replied by 650 on topic virtuemart account maintenance
Thanks alzander. Please take a look for me because I will use your button to replace with facebook connect from jomsocial but I don't know about the code much. I have to use this module because it has link like this image.
File Attachment:
The topic has been locked.
Active Subscriptions:

None
12 years 6 months ago #13881 by mmartins
Alex,

I'd like to add that link to JFBCLogin module. When I added the tag to Virtuemart login module post-text box, it logged in, but it didn't show profile image and user full name, only user name.

Which file (with path) and how should I edit to include the account maintenance link? I'm new to Virtuemart.

Thanks,
Marcelo
The topic has been locked.
Support Specialist
12 years 6 months ago #13938 by alzander
Marcelo,
I'm honestly not too familiar with VirtueMart myself. However, I'll help how I can.. and apologize for not responding with this solution earlier in the thread.. I must have missed this one.

To add the link, you'd want to modify the /modules/mod_jfbclogin/tmpl/default.php file. The top half of the file is the login form, the bottom half is the logout portion. Around line 220, you should see the following, which is the Logout button:
<fb:login-button v="2" onlogin="javascript:jfbc.login.login_button_click();"><?php echo JText::_('MOD_JFBCLOGIN_REMAP_BUTTON'); ?></fb:login-button>

Assuming you want the Account Maintence link above this line, you'd simply want to add it there, by adding it like so:
<a href="<?php echo JRoute::_('index.php?page=account.index&option=com_virtuemart'); ?>"Account Maintenance</a><br/>
<fb:login-button v="2" onlogin="javascript:jfbc.login.login_button_click();"><?php echo JText::_('MOD_JFBCLOGIN_REMAP_BUTTON'); ?></fb:login-button>

The JRoute call in there simply creates an SEF version of the URL, if you have that enabled. You should be able to remove that portion just fine as well and create a normal link.

Hope that helps, but if not, let us know and we'll do what we can. If it gets too Virtuemart related though, there's only so much we can answer.

Good luck,
Alex
The topic has been locked.
Support Specialist
12 years 6 months ago #13939 by alzander
I actually mis-spoke. The logout button is generated around line 195 with the following:
echo $fbClient->getLogoutButton();
So, try using the following to modify it:
echo "<a href=\"".JRoute::_('index.php?page=account.index&option=com_virtuemart')."\"Account Maintenance</a><br/>";
echo $fbClient->getLogoutButton();

This is slightly different because we're in a PHP block here, and need to use the echo statement, and escape the double-quotes in the href (put a \ before the ").

Alex
The topic has been locked.