Helping you Build Your Own Social Network!

Faster, better and easier!

Branded Login plugin

(10 posts) (4 voices)
  • Started 2 years ago by queerpublicradio
  • Latest reply from mercime

  1. Hi Everyone,

    I noticed when I put in the branded login plugin (and moved the folder to the buddypress default theme directory) that the default buddypress sidebar login is still in place. Once in awhile it seems to go directly to the branded login page but most of the time it doesn't. I did a little tweak to get rid of the sidebar when the branded page loads (both login forms were showing prior to that tweak). But the issue is, most of the time you don't see the branded page unless you make a typo in the default one (sidebar login form in default buddypress theme).

    I was kind of hoping the default sidebar login of buddypress was just going to disapper.

    -tom

    Posted 2 years ago #
  2. @queerpublicradio

    To remove the sidebar login, comment out lines 33 to 52 in your sidebar.php file. Best to do that in your child theme.

    Posted 2 years ago #
  3. hi Tom
    Yes, the buddypress default login from is part of your theme's sidebar.php and will not be affected. If you are using standard bp-default theme, The login will be handled by the branded login plugin and In case of anything like wrong password etc, your users will see the branded login page with error message, bot the wordpress default login page.

    Now for your question, you can use conditional to check and hide the sidebar from on the branded login page, so there is no two forms.
    You can use the conditional before the sidebar form like

    <?php if(!bp_is_page(BP_LOGIN_SLUG)):?>
    //show the sidebar code...
    <?php endif;?>

    Hope it helps.
    Please do it in your child theme as suggested by Patrick.

    Posted 2 years ago #
  4. Thank you Pcwriter and Brajesh. Your assistance is appreciated and was right on.

    All the best to you and yours,

    -tom

    Posted 2 years ago #
  5. Hey guys,

    I'm hoping I'm not being to ignorant here but wanted a little clarification. You both said be sure and do this in your 'child theme'. I'm guessing buddypress is the 'parent theme' and 'bp default theme' is the 'child theme' which resides in plugins/buddypress/bp-themes/bp-default. This is where I'm editing the sidebar.php file.

    I was just a little confused since we were talking about the 'bp default theme', not buddypress itself. It almost sounded like you guys were telling me there is a 'parent bp default theme' and a 'child bp default theme'. If there is then I'm clueless.

    Hopefully I'm where I'm supposed to be and editing the correct file.

    thanks again for your assistance

    -tom

    Posted 2 years ago #
  6. Hi Tom, the bp-default theme is the parent theme and the files are located in wp-content/plugins/buddypress/themes/bp-default folder.

    The bp-default child theme are files you will set up in wp-content/themes/ChildThemeFolder

    Therefore when you are asked to upload a component folder "into your child theme", it means that you upload e.g. gallery folder into wp-content/themes/ChildThemeFolder/

    The most basic file of a child theme is style.css and screenshot.png which you add to your child theme folder in server and activate in Appearance > Themes
    http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

    Then when you want to edit the sidebar for example, copy sidebar.php from bp-default, the parent theme, and paste into your ChildThemeFolder and upload revised sidebar.php to server.

    Posted 2 years ago #
  7. @mercime

    Oh goodness gracious. All this time when I saw "building a buddypress child theme" I thought it was about programing new themes so I avoided it. gesh...

    Thanks for getting me on the right path Mercime. I'll get to reading now.

    All the best to you and yours,

    -tom

    Posted 2 years ago #
  8. Hi Tom, glad to have helped. If I'm correct, looks like you aleady implemented the child theme BuddyPress QPR in your site. Cheers.

    Posted 2 years ago #
  9. Yes Mercime, I implemented it asap after reading your note here. Thanks very much for that information.

    I copied all the files I edited (header, footer, sidebar) to the child theme area. I also moved the CSS stuff over there so I could mess with it.

    I'm assuming I don't have to do anything to the files I inappropriately edited in bp-default (header, footer, sidebar). ie: it won't cause any problem at upgrade time (or do I have to go in and put those back like their were originally?).

    Thanks again for the assistance.

    -tom

    Posted 2 years ago #
  10. I would suggest that you download the current modified bp-default theme folder and save it to your computer ... just in case you weren't able to transfer all the modifications you made into the child theme. Then upload the original BP bp-default theme folder to your server.

    If everthing goes well, then this means you were able to transfer all necessary modifications to your child theme. If not, then in all probability, you might just need to beef up CSS in your child theme to override bp-default styles.

    Posted 2 years ago #

Reply

You must log in to post.