[Resolved] GP/GP Premium and bbPress (the GP version!)

Home Forums Support GP/GP Premium and bbPress (the GP version!)

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #263142
    NBC

    Hi, Tom:

    I’ve spent the last few days diving into the configuration of bbPress under GP/GP Premium.

    I’ve read every thread I can find on here that discusses this combination. I’ve read with special interest the discussions in which you talk about how you achieved the look of this forum. I’ve downloaded the custom CSS you posted at https://gist.github.com/generatepress/eb3c5b834e65b3a76756.

    Thanks to Firebug and some persistence, I’ve figured out just about everything I’ve been trying to accomplish.

    Except for four things.

    1. How did you get the bbp-header bar with the “Favorite” and “Subscribe” links to show up without the bbp-reply-author and bbp-reply-content text being visible?

    2. In which section of GP Hooks should I put the code you’ve posted to control the search bar?

    <?php if ( is_bbpress() ) : ?>
        <div class="gp-forum-search">
            [ bbp-search-form ] <!-- remove the spaces in the shortcode -->
        </div>
    <?php endif; ?>

    3. How did you get rid of the bbp-author-ip item below the subscriber name? I see one item in your CSS code that relates to it, but all it does is set type size.

    .bbp-author-ip {
    	font-size: 9px !important;
    }

    4. How did you get the avatar and name to move to the right side on the message/reply screen?

    Try as I may, these four things have stumped me.

    #263240
    Tom
    Lead Developer
    Lead Developer

    All of the up to date CSS can be found here: https://generatepress.com/wp-content/themes/generatepress_child/bbpress.css

    It should achieve everything you’re looking for.

    As for the GP Hooks question – you would add that wherever you want the search to show up 🙂

    #276645
    Michael

    Hi Tom,

    great work, thanks! I have just one issue as you can see easily in the screenshots.

    I would like to have the same design as your support forum. I have substituted the bbpress.css in the folder C:\xampp\htdocs\wp-content\plugins\bbpress\templates\default\css. Have I done something wrong?

    Thanks,
    Michael

    #276705
    Tom
    Lead Developer
    Lead Developer

    Hi Michael,

    You shouldn’t change core theme or plugin files – you’ll lose all of your changes when you perform updates.

    Instead, add the CSS using one of these methods: http://docs.generatepress.com/article/adding-css/

    #276991
    Michael

    Yep, I know I did something wrong 😉 Many thanks, Tom, great and quick help 🙂

    Michael

    #277039
    Tom
    Lead Developer
    Lead Developer
    #307290
    Sharif

    Hi Tom,
    Should I change any part in the css provided in reply #263240 to be compatible with RTL Languages?
    Regards,

    #307362
    Tom
    Lead Developer
    Lead Developer

    There’s likely some changes to be made, but you’d have to try it to find out.

    #308658
    Gabriele

    Hi,
    I put the code for control the search bar in GP Hooks on my website but I have also BuddyPress installed and now the search bar appears in every BuddyPress profile page.
    Is there a way to avoid this and make the search bar appears only in the bbPress forum pages?

    #308771
    Sharif

    You should check Execute PHP and do no forget to save it.

    #308861
    Gabriele

    Hi Sharif,
    the Execute PHP option is checked in fact the search bar shortcode doesn’t appears in the WordPress pages, only in BuddyPress pages…

    #308872
    Sharif

    Hi Gabriele,
    If you have used bbpress shortcodes for forums, topics and replies, above code will not work. By default execute PHP will display search in bbpress forums and topics. If you want search option in wordpress pages with bbpress shortcodes try to use [ bbp-search-form ] shortcode. Please remove space between bbp-search-form and brackets.
    Regards,

    #309013
    Tom
    Lead Developer
    Lead Developer

    I’m assuming you’re using this code?:

    <?php if ( is_bbpress() ) : ?>
        <div class="gp-forum-search">
            [ bbp-search-form ] <!-- remove the spaces in the shortcode -->
        </div>
    <?php endif; ?>

    If true, the is_bbpress() conditional will only make the search bar appear when on a bbPress page. It shouldn’t appear on BuddyPress as that conditional would return false.

    #309056
    Gabriele

    Hi
    Yes the code is that one but strangely it appears also in every buddypress profile page. Maybe the problem is that one of the buddypress profile links is “forums”, that is linked to bbpress forums and topics started by a user. Could this be the reason why the code “sees” every buddypress profile pages as bbpress page?

    #309160
    Tom
    Lead Developer
    Lead Developer

    It could be, hard for me to tell as I can’t see the pages etc..

Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.