WordPress.org

Ready to get started?Download WordPress

Forums

Frisco for BuddyPress
Two issues: white screen of death; replace login (9 posts)

  1. Steve Borsch
    Member
    Posted 2 years ago #

    David -- I'm making *great* progress customizing your theme for a client. Two things are stopping me in my tracks, though:

    1) CUSTOM FUNCTIONS: When I first create it at the host and then select "Theme Options > functions-custom.php", I get a white-screen-of-death on both the admin and the site front-end. Tried removing the "functions.php" altogether, but nothing has worked so I'm reluctant to modify or add to functions. Thoughts?

    2) REPLACE LOGIN: Since I leverage the functionality of S2Member Pro with WordPress and Buddypress, I'd like to replace the hard-coded login in the sidebar with theirs. How do I remove the current one?

    BTW, your coding of this theme is VERY tight and therefore clean and fast to load (excellent CSS'ing). Buddypress can often deliver a lot of latency, especially in a shared web hosting environment, but your theme screams.

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

  2. David Carson
    Member
    Theme Author

    Posted 2 years ago #

    1) CUSTOM FUNCTIONS: When I first create it at the host and then select "Theme Options > functions-custom.php", I get a white-screen-of-death on both the admin and the site front-end. Tried removing the "functions.php" altogether, but nothing has worked so I'm reluctant to modify or add to functions. Thoughts?

    Is there anything in the functions-custom.php file? It will probably need at least the opening php tag or the sky might fall.

    2) REPLACE LOGIN: Since I leverage the functionality of S2Member Pro with WordPress and Buddypress, I'd like to replace the hard-coded login in the sidebar with theirs. How do I remove the current one?

    That should be easy enough. Because Frisco is a child theme of bp-default, it uses some of the template files from that theme. So if you don't see a file you need to edit in Frisco, have a look at bp-default, copy the file to Frisco, and edit however you'd like.

    In this instance, sidebar.php is the file you need. Copy it from bp-default into Frisco folder. Then go to line 43-55 and replace with your custom login.

  3. Steve Borsch
    Member
    Posted 2 years ago #

    Thanks for the reply David.

    "Is there anything in the functions-custom.php file? It will probably need at least the opening php tag or the sky might fall."

    Actually, I copied your functions.php and called it "functions-custom.php" without making any changes (but also I did remove the functions.php file). Was THAT naming the issue? I wonder if your documentation meant to remove yours and replace it with a "custom" one, but that the name should actually remain being called "functions.php".

    "In this instance, sidebar.php is the file you need. Copy it from bp-default into Frisco folder. Then go to line 43-55 and replace with your custom login."

    Actually, I love S2Member's login widget and the parameters one can toggle on-and-off so I *did* copy-n-move sidebar.php and just removed the hard-coded login form from it so now it just uses the S2Member widget.

  4. David Carson
    Member
    Theme Author

    Posted 2 years ago #

    Actually, I copied your functions.php and called it "functions-custom.php" without making any changes (but also I did remove the functions.php file).

    Oh, that definitely won't work.

    Leave the original functions.php as-is.

    And only put your own custom functions in functions-custom.php.

    If you look at the original functions.php, there is a function in there that will look for additional functions in functions-custom.php if (a) the checkbox in theme options is enabled and (b) the file exists.

  5. Steve Borsch
    Member
    Posted 2 years ago #

    One word sums up my reaction to the one thing I hadn't tried and that's, "Duh!"

    Thanks David.

  6. David Carson
    Member
    Theme Author

    Posted 2 years ago #

    Of course, you can just put your own functions, or edit existing ones, from functions.php without using the custom functions file.

    The advantage to using something like functions-custom.php is that, if you ever upgrade the theme, your customizations will not be overwritten.

  7. Nikoy
    Member
    Posted 2 years ago #

    Hi Steve,

    I've been trying to mimic your actions on removing the default login details in frisco's sidebar, to no avail however.

    As I'm not able to read codes, could you post here the exact codes you've deleted? The login forms in the sidebar seems to much of a clutter, occupying such a space.

    Would really appreciate your positive response.

    Thank you very much,

  8. Steve Borsch
    Member
    Posted 2 years ago #

    Hello Nikoy -- Sorry about the delay in responding.

    Of course you should NOT modify the core Frisco-for-Buddypress files, but instead use David Carson's smart usage of creating our own "functions-custom.php" and "custom.css" files, so any future Frisco updates don't erase your customizations.

    Though I usually modify the actual code with a filter for functions-custom.php for stuff like removing specific functions (e.g., the Buddypress login form), as it turns out the simplest way to do this for a non-coder is to:

    a) Create a custom.css file with your text editor

    b) Place this CSS in it:

    /* remove login form */
    #login-text {display: none;}
    #sidebar-login-form {display: none;}

    c) Save it as custom.css and place that in the frisco-for-buddypress theme folder on your server.

    Hope this helps -- Steve

    P.S. If anyone has a functions-custom.php filter for removing the login that might be a better method for Nikoy, please add that here. Thanks.

  9. Nikoy
    Member
    Posted 2 years ago #

    Wow steve! That's plain easy.. Thank you very much! Appreciated it a lot :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic