× Joomla Facebook Connect support forum

Topic-icon Trade Terms

Active Subscriptions:

None
14 years 10 months ago #12036 by StephanTrasric
Trade Terms was created by StephanTrasric
Hello Everyone,

i just bought the JFBConnect component and i have some trouble to configure it.
I dont use any third party addon like CB etc. I would like to add my Trade Terms to the register-forms after klicking the "login by facebook"- or "register on this site"-button of the jfbclogin-module. Is this possible?

Sorry for my bad english :)

best regards
Stephan
The topic has been locked.
Support Specialist
14 years 10 months ago #12039 by alzander
Replied by alzander on topic Trade Terms
Are your trade terms just some text, or are is it a checkbox which must be clicked before a user can register? I'm sure we can help you come up with something to add it.

Also, do you already have it on your normal registration page, that would help us to see what you're looking for and help implement it more.

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

None
14 years 10 months ago #12041 by StephanTrasric
Replied by StephanTrasric on topic Trade Terms
Hey Alex,

it is a checkbox which must be clicked. I already got it on my normal registration page. I tried to take some changes in your code and set the link to my registration page but this seems to be not compatible with my form. The Facebook username is in the email-field and the username-field is empty. SO i dont want to change your code more than this...

thanks,
Stephan
The topic has been locked.
Support Specialist
14 years 10 months ago #12047 by alzander
Replied by alzander on topic Trade Terms
Can you post (or Private Message) the URL for your registration page with this implemented? That will help us determine the best solution for you.

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

None
14 years 10 months ago #12050 by StephanTrasric
Replied by StephanTrasric on topic Trade Terms
of course i can. Website is in german, but should not be a problem i guess :-)

www.kicker-portal.de/registrieren.html
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #12061 by StephanTrasric
Replied by StephanTrasric on topic Trade Terms
no idea?
The topic has been locked.
Support Specialist
14 years 10 months ago #12062 by alzander
Replied by alzander on topic Trade Terms
Meant to get back to this last night. Apologies for the delay.

There's a few options, depending on how you want to get it done. We can easily help you add a check box with a Javascript validation as well as the text for the trade terms. The ways to do it are either through creating your own profile plugin to add those features to that Login/Register page or by creating a template override and adding them manually. The 2nd part is easier, but can cause issues when upgrading (shouldn't be too bad though).

Final questions about this, are the trade terms in a Joomla article, or are they entered into something else? And, will there be anything else you want to add to the registration form now, or in the future?

Thanks, and we'll get you something in the next day or so,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 10 months ago #12063 by StephanTrasric
Replied by StephanTrasric on topic Trade Terms
Hi Alex,

actually my terms are in an Joomla article. But would not be a problem to change that to anything else, a simple div or textarea in the php/html-file for example. A plugin would be very nice.
Another feature i need is a captcha, but this isnt as important as the terms-checkbox.

Something Off-Topic: Next weekend in germany the Soccer Bundesliga (yes i know, you dont like this sport, but its great ;-)) starts, and i need facebook to make some advertising for my page. So it would be nice, if you prioritise a plugin for the terms, if it is a problem to include a captcha, too.

thanks and best regards,
Stephan
The topic has been locked.
Support Specialist
14 years 10 months ago #12065 by alzander
Replied by alzander on topic Trade Terms
Stephan,
No, not a huge fan of soccer, but I'm an equal disliker of many sports :)

As for your options, while the plugin option does give more flexibility, and it's what we do for our integration with other big extensions (JomSocial, CB, etc), it'd likely be overkill for what you're looking for. Additionally, we wouldn't implement it for you, but we'd help if you needed it along the way. If you have a developer and have plans to add a lot more fields, it'd be the way to go. For what you're looking for now though, the solution below would be the best/easiest. However, if you want to learn more about the plugin option, you can see our documentation:
www.sourcecoast.com/jfbconnect/docs/deve...ing-a-profile-plugin

Manually adding the terms checkbox What we'd recommend is simply adding the 2 lines of code below (with minor edits). This will pop-up your Terms in a modal window for people to read, but have a simple checkbox for them to accept. It also uses Joomla validation to ensure that the box is checked when the submit button is clicked. The code is below:
<input type="checkbox" class="required validate-numeric" id="terms" name="terms" value="1" />
Accept <a href="index.php?option=com_content&view=article&id=XXXXX&tmpl=component" class="modal">Terms</a>
You'll want to add this toward the bottom of the file, right after a PHP block that deals with $profileFields and before about 4 input lines of type "hidden". Obviously, update the Accept Terms and article ID to be correct for your site.

How you should add this is by creating a template override for the loginregister view (copy /components/com_jfbconnect/views/loginregister/tmpl/default.php to /templates/<YOUR_TEMPLATE>/html/com_jfbconnect/loginregister/default.php) You can read more about template overrides in the following article:
www.sourcecoast.com/extensions/troublesh...s#template-overrides

I know this is a bit of information, but I hope this gets you started. It shouldn't be too much trouble once you get going, but if you need anything from us, just let us know.

Thanks,
Alex
The topic has been locked.
Support Specialist
14 years 10 months ago #12066 by alzander
Replied by alzander on topic Trade Terms
One final thing I forgot to mention, to make the Modal pop-up work for the Terms, at the top of the default.php file, you'll need to add the following line (right below 2 other similar lines):
JHtml::_('behavior.modal');

Good luck,
Alex
The topic has been locked.