WordPress.org

Ready to get started?Download WordPress

Forums

Frisco for BuddyPress
[resolved] Login in Home page (50 posts)

  1. elsarto
    Member
    Posted 2 years ago #

    Hi, I want to add the login module in home page (like in frisco demo site), but i'm not able to find the right way. Can you help me? Thanks

    http://wordpress.org/extend/themes/frisco-for-buddypress/

  2. dudeankit
    Member
    Posted 2 years ago #

    yaa i too want to know the same thing.. :( anybody help please

  3. David Carson
    Member
    Theme Author

    Posted 2 years ago #

    You'll need to do things.

    First, lock-down the site so that only logged in users can access it.

    I just added a basic conditional to check if a user is logged in. If they are not logged in, they get redirected to my register page (slug is /join).

    This is done through a bp-custom.php file that sits in my plugins directory.

    Here it is: http://pastebin.com/rgJ6BQc8

    Next you need to add a friendly message and login form to the initial registration page. This gives users a heads up they have to register if they haven't already, and it provides an opportunity for returning users to log in.

    I did this by creating a file called "functions-custom.php" in my Frisco theme directory. Then I went to Frisco theme options and enabled the custom functions file. Here's the code from that file.

    http://pastebin.com/wss8Fpdn

    You'll need to add some custom CSS to style the welcome message/login.

  4. dudeankit
    Member
    Posted 2 years ago #

    hey i understood the first part... but didnt understood the second part can u give the frisco demo site css for that page ?? please.. :)

  5. David Carson
    Member
    Theme Author

    Posted 2 years ago #

    Do you have Firebug for Firefox installed or something like it? All of the CSS files are accessible if you just look in the <head> of any page.

    Ex. http://friscotheme.com/demo/wp-content/themes/frisco-1502/custom.css

  6. dudeankit
    Member
    Posted 2 years ago #

    ohh thanks .. it works really cool.. :D :) ur awesome dud !!!!

  7. rapidz
    Member
    Posted 2 years ago #

    I'm confused. Where am I putting bp-custom.php. Is that a file that already exists, or does it need to be created and put into the wp-content/plugins folder?

  8. rapidz
    Member
    Posted 2 years ago #

    I'll just go ahead and answer my own question. The answer is yes, you create the bp-custom.php file in the wp-content/plugins folder.

    Thanks for your solution David.

  9. 2twins
    Member
    Posted 2 years ago #

    I tried this and am getting this error message
    "The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
    any ideas?

  10. transpogroup
    Member
    Posted 2 years ago #

    I'm receiving the same error that 2twins is getting. Any idea what is going wrong?

  11. Joshua Parker
    Member
    Posted 2 years ago #

    For those of you who are getting a "The page isn't redirecting properly", make sure to change edit this line in bp-custom.php:

    bp_core_redirect( get_option('home') . '/join' );

    If "join" is not the slug to your BuddyPress registration page, then you need to update it. Also, for those of you who are not using multisite, bp-custom.php should be installed in the plugins folder and I would suggest renaming bp-custom.php to something like bp-custom.php and make sure to add the usually plugin header:

    /*
    Plugin Name: Frisco Privacy
    Plugin URI: http://friscotheme.com/
    Description: Makes BuddyPress site private for those using the Friscotheme.
    Version: 1.0
    Author: David Carson
    Author URI: http://friscotheme.com/
    License: GPLv2 or later
    */
  12. transpogroup
    Member
    Posted 2 years ago #

    Thanks for the response Joshua.

    I've gotten this to work for the most part, but it does not look like the "functions-custom.php" file is doing its job as my register page is not showing the option for existing users to login. I've checked that the "funcitons-custom.php" file is in my Frisco theme directory. Not sure why this isn't working properly- any thoughts?

  13. Joshua Parker
    Member
    Posted 2 years ago #

    @transpogroup, did you copy and paste the functions-custom.php file as is, or did you make some changes? Are you styling the registration form in anyway that may make it look like the fields are not there?

  14. transpogroup
    Member
    Posted 2 years ago #

    Hi Joshua- I pasted the code that David provided and did not add any changes or additional styling. The only thing that I am doing differently is using a register page with the slug "/register" instead of "/join" and have updated the "bp-custom.php" file to reflect this change as you noted above.

  15. Joshua Parker
    Member
    Posted 2 years ago #

    Is your file named bp-custom.php and where did you install it?

  16. transpogroup
    Member
    Posted 2 years ago #

    Yes, it is called bp-custom.php and is installed in the plugins directory. This file seems to be working properly as any logged out users are being directed to the register page.

  17. transpogroup
    Member
    Posted 2 years ago #

    Ok, discovered the issue. I needed to go to "Appearance>Theme Options" and tick the boxes to allow use of the "functions-custom.php" and "custom.css" files as David notes in this post:
    Link

    Thanks for your time in helping to look into this!!

  18. Joshua Parker
    Member
    Posted 2 years ago #

    I actually forgot about those settings. I am glad that it is working for you.

  19. teoh89
    Member
    Posted 2 years ago #

    Hi,

    Would it be possible to remove the login form on the sidebar?

    this is because I was thinking of using just Login with Facebook function with the wp-fb auto connect plugin.

    Looking forward to your reply.

    Thanks.

  20. dougaled
    Member
    Posted 1 year ago #

    Thanks, these instructions worked a treat. However, I'm trying to integrate wp-fb-autoconnect with the /join page with little luck. You can see it at the following link:

    http://viabl.es/join

    As you'll notice, the user cannot move on from /join. The plugin says the only reason for this could be an error in the js somewhere else on the page, but the page seems fine (site FAQ#14).

    Any thoughts?

  21. grechj
    Member
    Posted 1 year ago #

    Hi, I'm having the same trouble as transpogroup. I've checked functions-custom.php and custom.css. Both as saved correctly in the theme directory. And bp-custom.php is working perfectly.
    The redirect is working fine however the the /join page is rendering with header and footer with no content.

    It's obviously something simple that I'm missing (do I have to add pointers to the custom files or does the theme options checkbox already do that - that's kind of what I assumed?)

    Thanks in advance as it is a great theme.

  22. grechj
    Member
    Posted 1 year ago #

    Fixed it. If anyone else has issue in displaying the login content don't forget to go to "Settings", go to "General" and tick the "Anyone can register" box next to "Membership".

    I had switched this off while building the initial wordpress install.

    Hope that helps.

  23. mbloom
    Member
    Posted 1 year ago #

    What are the div classes: private-demo-warning, demo-notice-left, demo-notice-right?

  24. iyke20024
    Member
    Posted 1 year ago #

    Hello..

    I am having problem with the homepage login. I have installed the wp-fb-autoconnect plugins.. but its not showing or comming up on my home page.

    The plugin is working very well, since when I added a widget on my sidebar it shows up.

    The problem here is that I am not using a sidebar on my homepage and needs the homepage to be static.
    How can I make my user connect with facebook on the homepage..?
    or How can I use a custom login button if the first one is not possible?

    see the site here... (blog.articlelet.com)

  25. heatherhuhman
    Member
    Posted 1 year ago #

    I feel fairly certain I followed these directions to a T...but the "top" part -- where it says "Welcome to the Frisco Theme Demo" -- is not showing up for me. Help?

    http://comerecommended.com/community/

  26. Joshua Parker
    Member
    Posted 1 year ago #

    @heatherhuhman, do you have a functions-custom.php file in your theme directory? If so, did you also activate it in the Theme Options?

  27. heatherhuhman
    Member
    Posted 1 year ago #

    Oops, it was uploaded in the wrong place! Ok, so now it's showing up...but it looks all messed up. Help again? (I'm so sorry...I'm definitely not savvy when it comes to this stuff, and I really appreciate you taking the time!)

  28. Joshua Parker
    Member
    Posted 1 year ago #

    @heatherhuhman, not a problem. You also need a custom.css file in your theme's directory as well. You can copy the code from here: http://friscotheme.com/demo/wp-content/themes/frisco-1502/custom.css. Make sure to also activate this on the Theme Options page.

  29. heatherhuhman
    Member
    Posted 1 year ago #

    THAT'S what I was missing! Thank you SO MUCH!

  30. Joshua Parker
    Member
    Posted 1 year ago #

    You are welcome.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic