× Joomla Facebook Connect support forum

Topic-icon JFBConnect login

Active Subscriptions:

None
13 years 4 weeks ago #8570 by fb_9373982
JFBConnect login was created by fb_9373982
Hi,
I am pretty new to this stuff, but I would like to display ONLY the JFBConnect Login module on my landing page for users. The module itself contains everything I need for login, and I simply don't know how to turn off the Joomla or JomSocial login scripts. I am using JomSocial 2.0.6 on Joomla 1.5.22.

Any help would be greatly appreciated.

the page can view viewed at www.buddycal.com/index.php?option=com_us...dy5idWRkeWNhbC5jb20v

Seeing how ridiculously long my url is, I wonder if I have the redirections and viewing permissions whacked out...
Thank you very much.
The topic has been locked.
Support Specialist
13 years 4 weeks ago #8577 by alzander
Replied by alzander on topic JFBConnect login
The URL is fine. To break it down a little (just for the curious):
index.php: Required, this is the entry-point for all of Joomla
option=com_user: This is telling Joomla that the page is trying to load something out of the User component
view=login: This is telling the User component to load the 'login' view
return=blah: (optional) This is where the User component should redirect the user after logging in. This is an encoded value, but when decoded is just a standard URL. This is usually appended on when a user tries to visit a "Registered" menu item, so that after they log in, they return to that page. Since your 'Home' page menu item is marked as registered, that's why we're redirected to the Login page and the return is telling Joomla where we came from.

If you enable SEF URLs in Joomla, the login (and other) URLs will be a little prettier, but still may be lengthy.

Anyways, on to your question :) What you want to do here is create a template override for the view I mention above. You can learn more about what it is, and why:
www.sourcecoast.com/extensions/troublesh...ng-joomla-extensions

In your case, you'll want to create a template override for /components/com_user/views/login/tmpl/default_login.php. Simply copy that file to: /templates/qk_musiccity/html/com_login/

Once that file that file has both the login and registration form you see. From there, there's a few ways to do what you're looking for:
1) You could remove everything from line 2 and on in that file, and all you'd have is a blank area in the middle of the page. This would leave the JFBCLogin module on the left, but would probably look bad.
2) You can modify the file and remove the "Register" side altogether. This would leave the Login side. Then, simply add { JFBCLogin} (no spaces) into the form wherever you'd want the Login With Facebook button to appear. JFBConnect will take care of inserting it there. In this case, you can disable the JFBCLogin module.
3) Remove all the text in file, per step 1, but then add a little text/HTML describing your site and why to login or register. Then, place the JFBCLogin module in the adv_bottom, inset1, or bottom module positions. Can't tell which would be best, but either should work.

Hopefully this all helps you come up with something, and isn't too complex. It's much easier than it sounds, and template overrides let you make mistakes :)

Good luck, and let us know if you have any other questions!
The topic has been locked.
Active Subscriptions:

None
13 years 4 weeks ago #8580 by fb_9373982
Replied by fb_9373982 on topic JFBConnect login
Thanks Alex.

Still no luck - i have been playing with that login file for the past hour or so, and cannot get any changes to show on site. i think i must be doing something stupid, like not naming it the right thing, or something along those lines. I completely understand what you are asking me to do - it makes perfect sense, but there is something not jiving with either the directory I am getting the file from, or how i name it for the override. I suppose the template will automatically pull the login from the component, unless it has a file within its own com_login folder. That makes sense. Unfortunately, no changes show up on the site. I realize that this is no longer an issue with your component, so I will not be offended if you would like me to move to a jomsocial or joomla forum.

Thanks again for your help, I really appreciate it.
The topic has been locked.
Support Specialist
13 years 4 weeks ago #8588 by alzander
Replied by alzander on topic JFBConnect login
You're new here :) We help with just about everything, no worries. We'll get you fixed up.

To start, I apologize. I completely lied to you! The directory you should copy that file into is:
/templates/qk_musiccity/html/com_login/login/

For modules, you don't include the last directory (ex. html/mod_jfbclogin/default.php), but since components can have many views, you need to include the view directory as well. Very sorry to lead you on a wild goose chase.

Hope this helps, but if not, or you have any questions (general Joomla 'how tos' are fine), we like to help and really appreciate your subscription. Thanks, and good luck!
The topic has been locked.
Active Subscriptions:

None
13 years 4 weeks ago #8604 by fb_9373982
Replied by fb_9373982 on topic JFBConnect login
Thanks Alex! In the newer gavickpro templates there is a com_login and a com_user - I went in through com_user, and found the right spot for the login override. Everything is working great now. Thanks again, I really appreciate your help.
The topic has been locked.
Support Specialist
13 years 4 weeks ago #8613 by alzander
Replied by alzander on topic JFBConnect login
Andrew,
Very glad to hear we got you going, and sorry again for misleading you right off the bat.

I just checked the page and things look good! If you need any other help with this or run into other issues, or have general 'how do I..' questions, we're always here to help! If it's way out of bounds, we have no problem telling you. Never hurts to ask though.

After you've played with JFBConnect for a bit, if you'd like to leave a review on the Joomla Extension Directory, we'd appreciate it, though it's certainly not required:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks for your subscription, and good luck!
The topic has been locked.