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
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
yaa i too want to know the same thing.. :( anybody help please
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.
You'll need to add some custom CSS to style the welcome message/login.
hey i understood the first part... but didnt understood the second part can u give the frisco demo site css for that page ?? please.. :)
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
ohh thanks .. it works really cool.. :D :) ur awesome dud !!!!
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?
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.
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?
I'm receiving the same error that 2twins is getting. Any idea what is going wrong?
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
*/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?
@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?
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.
Is your file named bp-custom.php and where did you install it?
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.
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!!
I actually forgot about those settings. I am glad that it is working for you.
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.
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:
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?
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.
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.
What are the div classes: private-demo-warning, demo-notice-left, demo-notice-right?
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)
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?
@heatherhuhman, do you have a functions-custom.php file in your theme directory? If so, did you also activate it in the Theme Options?
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!)
@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.
THAT'S what I was missing! Thank you SO MUCH!
You are welcome.
This topic has been closed to new replies.