Site logo

Archived topic

GP/GP Premium and bbPress (the GP version!)

20 replies · Started by NBC on January 11, 2017

Viewing posts 1–15 of 21

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.

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

Yep, I know I did something wrong ;) Many thanks, Tom, great and quick help :)

Michael

No problem! :)

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

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

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?

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

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...

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,

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.

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?

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

This archived topic is closed to new replies.