Search Results for 'code'
-
AuthorSearch Results
-
February 17, 2016 at 11:20 pm #171883
In reply to: Anyway to auto-populate a forum structure?
Stephen Edgar
KeymasterYou can also use
bbp_create_initial_content()with somebbp_parse_args()to generate your content, bbPress uses this to crate some sample/initial content when installing on multisite installs.https://bbpress.trac.wordpress.org/browser/branches/2.5/includes/core/update.php#L174
February 17, 2016 at 7:05 pm #171876ying-sun
Participanthi. i want new topics and replies to show up in the activity stream, but right now they are not.
i added this to bp-custom.php:
add_post_type_support( 'topic', 'buddypress-activity' );which works, but with a generic “UserName wrote a new item.” it seems like there must be a better, easier way to tie the two together. looking at the bbpress files, i see this:
public function register_activity_actions() { // Sitewide activity stream items bp_activity_set_action( $this->component, $this->topic_create, esc_html__( 'New forum topic', 'bbpress' ) ); bp_activity_set_action( $this->component, $this->reply_create, esc_html__( 'New forum reply', 'bbpress' ) ); }i don’t know if they’re not getting called or they’re conflicting with something or what, but they aren’t doing what it seems like they should be doing. is there a setting i’m missing to activate this feature?
little help?
February 17, 2016 at 7:00 pm #171875In reply to: where to put bbpress.css in child-theme
Robin W
Moderatorno, core functions in bbpress cannot be put in other folders.
Generally it is not recommended that you change bbpress itself. Rather almost all bbpress functionality can be filtered, so that the plugin remains complete and changes are put in your theme’s functions file using wordpress filering capability.
What changes did you make? If small, let me know which lines in which file, and post the changes here, and I’ll try to help you with what you should put in your functions file.
You should also make those changes (and the template files you copied ) in a child theme, so that theme updates donlt overwrite these
https://codex.bbpress.org/functions-files-and-child-themes-explained/
February 17, 2016 at 5:53 pm #171873In reply to: Excluding Forums from Recent Topics Widget
Robin W
Moderatorcan you tell me what you are putting as the shortcode?
February 17, 2016 at 5:40 pm #171872In reply to: where to put bbpress.css in child-theme
Robin W
Moderatorhttps://codex.bbpress.org/themes/theme-compatibility/
should answer your questions, but do come back if you need further help !
February 17, 2016 at 5:06 pm #171867In reply to: Excluding Forums from Recent Topics Widget
cookavich
ParticipantThat sounds workable, however, after installing the plugin the display topic shortcode doesn’t seem to be functional. The display newest users shortcode is working, odd.
February 17, 2016 at 4:15 pm #171865In reply to: Excluding Forums from Recent Topics Widget
Pascal Casier
ModeratorHi,
Is this want you are looking for : http://www.rewweb.co.uk/bbpress-additional-shortcodes/ from @robin-w
It’s INcluding, not EXcluding …
Pascal.
February 17, 2016 at 3:42 pm #171861In reply to: Where to register?
Pascal Casier
ModeratorHi,
Can this help ? https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#6-automatic-vs-manual-registration
Pascal.February 17, 2016 at 4:47 am #171835In reply to: Change Breadcrumb url link
Adri Oosterwijk
ParticipantHi all,
I think I got it worked out together with Otto and Tia over at WPML.
You can have a look at it at those two topics:https://wpml.org/forums/topic/multiple-site-languages-but-just-a-bbpress-forum-in-english/
https://wpml.org/forums/topic/bbpress-breadcrumbs-how-to-localize-and-point-to-the-right-page/BTW I hide the language switcher(s) on the topics pages by adding this piece of code in my header file
<?php if (!is_bbpress()) { do_action('icl_language_selector'); } ?>and this in my footer.php
<?php if (!is_bbpress()) {
do_action(‘wpml_footer_language_selector’);
} ?>I hope it helps you as well.
Regards,
Adri
February 17, 2016 at 4:10 am #171834In reply to: Change type root forums page
Pascal Casier
ModeratorHi,
I suppose you mean that you want to change the default page that you get when going on /forums ?
If so, just create a page in WordPress and change the slug to ‘forums’, then put anything you want in that page.The standard page shown when going on /forums is content-archive-forum.php.
You can customize all templates if you want, just read some pages of the bbPress Codex: https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/
Pascal.
February 17, 2016 at 2:01 am #171825In reply to: add a “Featured Image” to a forum
pazzaglia
ParticipantHow can I vary this code to include a default image for topics? I post new forum topics to facebook and at the moment they’re showing a TERRIBLE giant picture – when there are no profile pics or attachments to display. I don’t even know where it’s being pulled from.
http://www.hippressurecooking.com/forum/
Thanks!
LFebruary 16, 2016 at 5:35 pm #171812In reply to: bbPress Sidebar – DIsappears on topic/post pages
Robin W
ModeratorThe problem is that wordpress was designed to work with templates that were different for each type eg template for page with sidebar, another template for page without sidebar.
The trouble is that theme authors are getting too clever ,and nowadays write a single big page template that bbpress cannot easily react with.
So your theme displays one template for the main page, but then bbpress can’t work with it for the other sub pages, as it doesn’t know how the theme is using the template.
Ok, so that’s the explanation, but probably doesn’t help you at all.
If you know some wp stuff then this might help
February 16, 2016 at 4:34 pm #171811Topic: bbPress Sidebar – DIsappears on topic/post pages
in forum Troubleshootingstewmills
ParticipantSorry if this is a duplicate…seemed to get an odd behavior when attempting to submit previously.
Facts:
– WordPress 4.2.2
– bbPress 2.5.8
– Theme – Karma 3.0.3I have created the following forum on my site (currently hidden from the top menu but accessible via links provided): http://www.cytoviva.com/forum/
In the above link I get the forum login and other options in the right sidebar as I prefer.
However, when you get one layer deeper into the forums, topics, posts, etc. the sidebar is not visible as seen here: http://www.cytoviva.com/forums/forum/registration-instructions-and-forum-guidelines/
I want the sidebar to be visible on all pages/posts/etc. so someone reading a post can login from that page or request new access from that page and as well logged in users will always have the sidebar details and option to logout from any page within the forum.
Initially the sidebar was not visible at all and I finally realized that my forum page (using the shortcode [bbp-forum-index] on my “forum” page to display the forum) was using the right template and when I changed it to ‘Right Sidebar’ and selected the option at the bottom to display my newly created sidebar (User Forum Login Sidebar) I started seeing what I wanted to see on the main forums page.
However, when I go to my individual forums in the WP control panel and make sure they are also set under the ‘Right Sidebar’ page template and as well have the option checked to display my sidebar, it seems to do nothing.
I have read a host of other posts here today and it seems that the answers to getting the sidebar to display as I want vary per person/situation hence my additional post. I don’t want to have to create a new .css file as currently I don’t have access to our host and FTP to create new files so I was hoping to find a solution that is simple as me not having a button checked somewhere or something trivial.
I am somewhat new to WP and bbPress so the more fundamental the advice the better. My goal is to try and solve this with a little troubleshooting versus new child .php pages, etc.
Thanks in advance!
February 16, 2016 at 3:45 pm #171808In reply to: Styling search bar & forum title
Pascal Casier
ModeratorTo remove the ‘Forums’ title, you could do some CSS:
.forum-archive h1 { display: none; }Pascal.
February 16, 2016 at 3:15 pm #171806In reply to: Confirmation of comments and topics
Pascal Casier
ModeratorHi,
Forum moderation is being reviewed and improved a lot for future versions of bbPress. For now there is standard moderation and blacklisting as described here: https://codex.bbpress.org/moderation-and-blacklisting/
The above mentioned plugin is the only one that I found when I looked at it in the last months. Please note that it has a small bug with saving topic subscriptions from user before their post is approved, so the user might have to re-subscribe from the checkbox during the reply.
Pascal.
February 16, 2016 at 9:40 am #171791In reply to: Cant see Forum Settings
Pascal Casier
ModeratorAs Robin indicated, this is somewhere a conflict with a plugin or a theme.
But I see your forums: http://www.finalfantasyrpg.com.br/forums/
So I suppose that you found/wp-admin/edit.php?post_type=forum?Pascal.
February 16, 2016 at 9:27 am #171790In reply to: Oh bother! feedback-no-replies
Pascal Casier
ModeratorOkay, maybe this then:
CSS:
.bbp-search-form { display:none !important; }Also check the option called ‘Search’ in your dashboard: ‘Settings > Forums > Forum Features’
Pascal.
February 16, 2016 at 8:16 am #171780In reply to: Oh bother! feedback-no-replies
Pascal Casier
ModeratorHi,
Never edit bbpress templates directly in the bbpress folder, otherwise you will loose your changes when bbPress updates.
There are several ways that I know of, but the most easy one would probably be by installing my ‘bbP Toolkit’ plugin.Or you play with CSS yourself:
.bbp-template-notice { display: none; } .bbp-template-notice.info, .bbp-template-notice.error, .bbp-template-notice.important, .bbp-template-notice.warning { display: block; }Not that also other similar messages will disappear with the above.
And if you want to modify bbPress files, please check the codex (https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/) and/or create a child theme
Pascal.February 16, 2016 at 4:19 am #171766Jeff McNeill
ParticipantHahaha tags “sleeping pill store” tag should be a signal that someone is asleep at the tiller. Really folks, this place is asleep, and all Robin W. does is state that it is free software and you should be durned grateful, and not try and wake anybody up.
Development is tediously slow, regardless of some $50k that was raised a few years ago. 2.6 should supposedly fix the issue with not being able to replace posts with forum discussions. Surely that is also why the plugin that actual does that hasn’t been updated in two years. And 2.6 was 4 months late in May 2014. So when will it ever be released?
This is simply too long! Obviously this project is coasting on the coattails of integration (and requirement of use) in BuddyPress and that it is an anointed project of WordPress.org. Anything less would have near zero users already.
So much functionality is needed to be reasonable. There appears to be a single active developer committing to the code: https://www.openhub.net/p/bbpress/commits/summary
But really, this was a complaint over a year and a half ago, and it ain’t changed. Very sad as the potential is quite big. How else do you explain 16,000+ downloads of that plugin that has been abandoned: https://wordpress.org/plugins/bbpress-post-topics/
February 15, 2016 at 10:12 pm #171760tech55541
ParticipantHello,
Would it be possible to take the code that adds this functionality in with BuddyPress, create a separate plugin, and then make it work for BBPress? I can’t believe a forum software does not have this built in.Thanks 🙂
February 15, 2016 at 3:47 pm #171748In reply to: PHP in Topics
rbarron
Participant<?php bbp_user_profile_url(bbp_get_current_user_id());?>">Complete your profile</a> and upload a profile photo.February 15, 2016 at 3:39 pm #171747Topic: PHP in Topics
in forum Troubleshootingrbarron
ParticipantHow do I create a link in a topic to allow users to edit their profile? Something like:
<?php bbp_user_profile_url(bbp_get_current_user_id());?>“>Complete your profile and upload a profile photo.
>
Thank you.
February 15, 2016 at 12:18 pm #171739In reply to: Custom Query to display sticky posts only
_az_
ParticipantThere is a function: bbp_get_super_stickies() which is used inside the function bbp_has_topics(). This function basically returns a list of Post IDs from the wp_options table from a row with the key: “_bbp_super_sticky_topics” or “_bbp_sticky_topics”
So one approach could be: override default args
bbp_has_topics(array('show_stickies' => false);Extra loop for stickys (not tested, just a sketch)
$query = new WP_Query(array('inlucde' => bbp_get_super_stickies());Though i recommend looking into the function bbp_has_topics to be aware of all possible cases.
February 15, 2016 at 9:33 am #171728In reply to: Meta Title for Profile Pages w/ Yoast SEO
Erik Molenaar
ParticipantHallo Manuel,
Just to let you know, I ended up with removing the functionality of a public profile page for my bbpress users by:
1. Removing the author links (so Google won’t find them anymore):
/*-----------------------------------------------------------------------------------*/ /* Remove all author links from bbpress pages /*-----------------------------------------------------------------------------------*/ add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2); add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2); add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2); function remove_author_links($author_link, $args) { $author_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $author_link); return $author_link; }2. Placing a noindex meta tag in my bbpress user templates (so the already indexed profile links will disappear from Google):
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW" />Thanks again for your prompt replies and I hope this is of use to you 🙂
February 15, 2016 at 8:14 am #171726In reply to: Cleaning Up Forum Sub-Forum
Pascal Casier
ModeratorOn your dashboard, go to ‘Tools > bbP Toolkit’
Under the ‘bbPress Information’ button you can tick
Do not show the counters next to the subforums on the forum index page (v1.0.5)
And then put the
Change the separator between the subforums on the forum index page to:
to ‘newline’Pascal.
-
AuthorSearch Results