Search Results for 'bbpress'
-
AuthorSearch Results
-
February 29, 2016 at 3:10 pm #172361
Topic: Forums footer is missing
in forum Pluginsjunglejim620
ParticipantHi bbPress,
I added a new page with this shortcode [bbp-forum-index] for the forums but freaky the default site “footer level 1 and level 2 widget” disappeared; however when I click the Topic link go to the Topic page is fine showing both footers?
Can anyone help me how to fix the forum index page to populate the footer?
Please help, Thanks
February 29, 2016 at 1:37 pm #172357In reply to: bbp_new_forum hook
fterra
ParticipantBesides that I just noticed that both
"save_post_{$post->post_type}"and wp_insert_post are fired automaticaly during editing, to keep the forum saved as a draft.
So maybe you will benefit more from bbp_forum_attributes_metabox_save really.
Otherwise you will need some checks to see if it’s not a draft auto-save like in bbPress following code – also note the aforementioned hook being fired at the end:
(/includes/admin/forums.php)/** * Pass the forum attributes for processing * * @since bbPress (r2746) * * @param int $forum_id Forum id * @uses current_user_can() To check if the current user is capable of * editing the forum * @uses bbp_get_forum() To get the forum * @uses bbp_is_forum_closed() To check if the forum is closed * @uses bbp_is_forum_category() To check if the forum is a category * @uses bbp_is_forum_private() To check if the forum is private * @uses bbp_close_forum() To close the forum * @uses bbp_open_forum() To open the forum * @uses bbp_categorize_forum() To make the forum a category * @uses bbp_normalize_forum() To make the forum normal (not category) * @uses bbp_privatize_forum() To mark the forum as private * @uses bbp_publicize_forum() To mark the forum as public * @uses do_action() Calls 'bbp_forum_attributes_metabox_save' with the * forum id * @return int Forum id */ public function attributes_metabox_save( $forum_id ) { if ( $this->bail() ) return $forum_id; // Bail if doing an autosave if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) return $forum_id; // Bail if not a post request if ( ! bbp_is_post_request() ) return $forum_id; // Nonce check if ( empty( $_POST['bbp_forum_metabox'] ) || !wp_verify_nonce( $_POST['bbp_forum_metabox'], 'bbp_forum_metabox_save' ) ) return $forum_id; // Only save for forum post-types if ( ! bbp_is_forum( $forum_id ) ) return $forum_id; // Bail if current user cannot edit this forum if ( !current_user_can( 'edit_forum', $forum_id ) ) return $forum_id; // Parent ID $parent_id = ( !empty( $_POST['parent_id'] ) && is_numeric( $_POST['parent_id'] ) ) ? (int) $_POST['parent_id'] : 0; // Update the forum meta bidness bbp_update_forum( array( 'forum_id' => $forum_id, 'post_parent' => (int) $parent_id ) ); do_action( 'bbp_forum_attributes_metabox_save', $forum_id ); return $forum_id; }February 29, 2016 at 11:39 am #172350In reply to: best rated forum post display
Pascal Casier
ModeratorWhat exactly are you looking for ? Some plugins for ranking:
https://wordpress.org/plugins/bbpress-votes/
https://bbpress.org/forums/topic/voting-on-user-submitted-posts/
https://wordpress.org/plugins/universal-star-rating/
https://wordpress.org/plugins/rating-widget/
https://wordpress.org/plugins/kk-star-ratings/
https://wordpress.org/plugins/ec-stars-rating/
https://wordpress.org/plugins/wp-postratings/
…I don’t use any of them, but for sure if you don’t want to code, there are enough options.
Pascal.
February 29, 2016 at 11:02 am #172347In reply to: Show pagination in single topic
svetoslavd79
ParticipantHi guys,
I was faced with the same issue and was able to resolve it by following this guide:
Hope it helps someone else.
February 29, 2016 at 10:54 am #172342svetoslavd79
ParticipantHi guys,
If anyone is reading this. I found a solution here: https://wpup.co/bbpress-threaded-nested-replies-with-paging/
February 29, 2016 at 8:18 am #172338In reply to: Spectate capability
Pascal Casier
ModeratorHi,
You could create a new role based on the spectate. Follow our codex on https://codex.bbpress.org/custom-capabilities/If you want to limit topic creation for a specific forum, you can also have a look if my ‘bbP Toolkit’ plugin can help. It has a ‘protected forum’ possibility to allow only specific roles to create topics on some forums.
Pascal.
February 29, 2016 at 6:54 am #172337Topic: Spectate capability
in forum Pluginssolsqerr
Participanthi guys, im using bbpress and bbpress capability and i want spectates cant open topic and forum just spectates can reply on topics sorry for my english but i need help :/
February 29, 2016 at 6:47 am #172336siparker
ParticipantOk, so if i can find someone to do the work and get the urls fixed then submit the code into trac it might get integrated into the core by someone in the future?
I understand about the money thing also. I am just trying to think of a way to kickstart the development on the platform again as its on its way to being a really good forum software. it has almost all of the basics covered and some great plugins too. its just those few bits that mean it cant be used by some people. I would love to see bbpress be the defacto choice over phpbb or vbulletin and thought if i could sponsor the development then perhaps it might encourage a valuable dev to get more involved?
February 29, 2016 at 4:08 am #172331In reply to: Custom Form topic not showing in view
Pascal Casier
ModeratorHi, the best way is to use bbPress functions. Check out http://hookr.io/plugins/bbpress/2.5.8/functions/bbp_insert_topic/
Pascal.February 29, 2016 at 4:05 am #172330In reply to: Meta Title for Profile Pages w/ Yoast SEO
michaaaaaa
ParticipantHey, I am new, and I cant find the file:
for:
“2. Placing a noindex meta tag in my bbpress user templates (so the already indexed profile links will disappear from Google):”
where I can add this? I want to set all profiles with noindex
thx for help
February 28, 2016 at 1:57 pm #172320tech55541
ParticipantYes it would, BBPress could be so much better, if a few more basic features were added to it.
February 28, 2016 at 1:38 pm #172319In reply to: Yet another sidebar issue
Robin W
Moderatorok, sorry been tied up elsewhere, and only just got back to looking at this.
I think I can get it working and would suggest you do the following
1. take a copy of page.php and save it into your theme as bbpress.php
so you end up with
wp-content/themes/%mytheme%/bbpress.php where %mytheme% is your currently active theme’s name.
Now edit that file as follows
The theme seems to be looking for a value of the sidebar for the post meta of the page ID. Since I suspect that bbpress is not having that at that point, it can’t look it up.
Now the page.php (which is now bbpress.php!) tries to set this in line 4 using
$sidebar = get_post_meta($id, "qode_show-sidebar", true);and then the page.php (which is now bbpress.php!) later on looks for what value between 1 and 4 that is set to, which would determine what if any sidebars are shown.
therefore in bbpress.php try changing line 4 from
$sidebar = 1
save the file and see what happens
then try
$sidebar = 2
$sidebar = 3
$sidebar = 4each should change what sidebar appears and where, so you should be able to get one working !
Do come back if anything isn’t clear, or if you need further help, or just to tell us that we’re wonderful (or rubbish!)
February 28, 2016 at 10:22 am #172315Pascal Casier
ModeratorHi siparker,
I won’t start about your first line about the ‘money’, but for adding new functionalities of finding code for existing tickets, https://bbpress.trac.wordpress.org is one of the places that can be used for that. If a ticket is there and there is code attached, it makes a fair chance to be added into future versions.
Pascal.
February 28, 2016 at 9:22 am #172313Robkk
ModeratorWell you cannot modify the functions in the template.php by copying over the file like the file in the bbPress default theme, which is in
wp-content\plugins\bbpress\templates\defaultTo customize the code in template.php you would have to filter the code. Paste any new functions you create with the filters from the template.php file into a functions.php file in your child theme or in a custom functionality plugin.
https://codex.wordpress.org/Function_Reference/add_filter
https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-5/
February 28, 2016 at 8:10 am #172311In reply to: Importing from phpbb3 to bbpress
abiliocaetano
ParticipantI used cms2cms to migrate one of my forums.
in addition to what everyone wrote, I would like to add something very important: keep the SEO juice.
if you want to keep all your SERP positions in google you must 301 redirect every topic from your old phpbb forum to the new bbpress topics.
to do this you just have to:
Open/edit:
/styles/prosilver/template/overall_header.html
(or the template you are using)search for:
// Send vars to template
$template->assign_vars(array(
‘FORUM_ID’ => $forum_id,and just above this lines add this piece of code:
##################################
$titleac = trim($topic_data[‘topic_title’]);
$relativeurl = str_replace(‘ ‘,’-‘,$titleac);
$relativeurl = strtolower($relativeurl);
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: http://www.YOURDOMAIN.com/forums/topic/”.$relativeurl.”/”);
#####################################I have little more detail of the bbpress permalink, etc configurations in this article: http://abiliocaetano.com/seo-migrate-phpbb-to-bbpress/
regards,
February 28, 2016 at 6:36 am #172309siparker
ParticipantThanks for drawing some attention to it.
If you want to get devs interested then money always helps.
possibly have a central “i want this feature” area where people could individually, or as groups, sponsor certain bits of development? they would need to be core devs to be able to bid on the other jobs and do x amount of commits to qualify
perhaps automattic could sponsor some initial bits to get it kickstarted again? and my contribution to the url bit id be happy to do the first sponsored fix.
alternatively being part of the “Best” thing might make a differnce. as WP is arguably the best platform to build a site on out there then bbpress should really be the bbest forum software. buddypress is on its way to being the best social platform, but its the new cool and has left bbpress in the dust. and i still believe that forums are th lifeblood of the internet. social is fun and all but its the serious discussions that affect everything that come from forums.February 27, 2016 at 9:12 pm #172308kodacollider
ParticipantHello. I am trying to customize my bbPress installation, and I want to make some edits to a template file (i.e. /plugins/bbpress/includes/topics/template.php). I don’t want to edit the core file, however, as it may be overwritten by plugin updates?
I’ve tried placing a copy of this into my child theme’s /bbpress/ folder, as well as a /bbpress/includes/topics/ folder in my child theme, and neither seemed to work.
Is there a safe way I can edit this file, or is my only option to edit the core file?
Thanks.
February 27, 2016 at 7:11 pm #172307In reply to: phpbb to bbpress converter and best practice?
abiliocaetano
ParticipantHi all,
in addition to what everyone wrote, I would like to add something very important: keep the SEO juice.
if you want to keep all your SERP positions in google you must 301 redirect every topic from your old phpbb forum to the new bbpress topics.
to do this you just have to:
Open/edit:
/styles/prosilver/template/overall_header.html
(or the template you are using)search for:
// Send vars to template
$template->assign_vars(array(
‘FORUM_ID’ => $forum_id,and just above this lines add this piece of code:
##################################
$titleac = trim($topic_data[‘topic_title’]);
$relativeurl = str_replace(‘ ‘,’-‘,$titulo);
$relativeurl = strtolower($relativeurl);
header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: http://www.YOURDOMAIN.com/forums/topic/”.$relativeurl.”/”);
#####################################I have little more detail of the bbpress permalink, etc configurations in this article: http://abiliocaetano.com/seo-migrate-phpbb-to-bbpress/
regards,
February 27, 2016 at 4:42 pm #172306Topic: Changing Author ID on submit
in forum Troubleshootingegroleau
ParticipantI’m trying to modify the author ID of bbPress topics/replies automatically on submit.
I’ve tried a few different things but haven’t been able to get it working yet. Any suggestions?
if(!function_exists(‘user_to_anonymous’)){
function user_to_anonymous($comment_data){
$comment_data[‘post_author_id’] = 8;
$comment_data[‘post_author’] = ‘Robert’;
return $comment_data; }
add_filter(‘preprocess_comment’,’user_to_anonymous’); }More background info:
End goal will be to attribute posts to an ‘Anonymous’ user ID so users can to post sensitive content to a group without being identified. Similar to a private post but making their name private, not the post.
(I’m running WP 4.4.2, bbPress 2.5.8, BuddyPress 2.4.3)
Thanks for your help!
February 27, 2016 at 7:11 am #172286In reply to: bbp_new_forum hook
Antipole
ParticipantRobin.. thanks for pointing to topic-subscribe.
It works for me mostly. In testing, I found that when a new topic is held for moderation (I have things set for user’s first topic to be moderated), then once the topic is approved all other users get subscribed to the topic except the submitter, who is left unsubscribed. I guess the approval process is unsubscribing.
However, I modified your plugin to hook it on last in the actions:
add_action (‘bbp_new_topic_post_extras’, ‘rw_topic_subscribe’, 1, 99) ;
and now it seems to work even for moderated topics.
I also have bbPress auto subscribe for new topics and replies installed and moderated topics are not getting subscribed despite this plugin ticking the box. {I tested your plugin with this other plugin deactivated. This is probably the same issue although the solution may not be so simple – I have raised it on its support forum.
This may be a bit off-topic as it is not about new forums but I see no better place.
Tony
February 27, 2016 at 5:47 am #172284In reply to: Adding structured data to topic pages
Stephen Edgar
KeymasterIf you want to customise your site to match any of these formats then creating a child theme with the template changes that you’ve already made is the way to go.
And just some FYI on on this stuff from a bbPress context, historically bbPress has supported Microformats as this is also what WordPress uses and most of the search engines also support, Google included.
There is a long standing ticket in bbPress to get its breadcrumbs to work better with search engines though the fact as noted in that ticket is that none of the proposed specifications have been finalised, as none of the HTML5 microdata, Google Microdata Breadcrumbs or Bing Microdata Breadcrumbs specs are complete so we’ll probably go with the accessibility proposal instead.
February 27, 2016 at 4:48 am #172280Topic: Adding structured data to topic pages
in forum Troubleshootinggezginrocker
ParticipantWhen I check my site with Google Structured Data Testing Tool, it’s giving errors for BBpress topic pages. How can I add structered data like author and date to topic pages?
Thanks
February 26, 2016 at 9:30 pm #172276In reply to: Yet another sidebar issue
Robkk
ModeratorYour theme looks to be using post meta to display the sidebars, so there might be custom fields to configure which sidebar to display which will most likely be on the default WordPress post types (page and post) when you create/edit them. These options may not be on the bbPress post type creation/editing screens in the WordPress backend.
I see there is a ton of code that might not even be usable because bbPress post types may not have these custom field options to configure things like the slider, background color, and other options I can see in the code.
I do see from the classes that this uses a responsive grid layout so maybe focus and keep this class as it is a two column layout, one for the content and one for the sidebar.
two_columns_66_33 grid2 clearfixYou may need to contact your theme author for further help on this.
February 26, 2016 at 7:30 pm #172265In reply to: best rated forum post display
Robkk
ModeratorYou can install a plugin like WP Ulike and use that for rating posts.
Then you can create a custom bbPress view using this function. Add this php code snippet into your child themes functions.php file or in a plugin that can hold custom code snippets like the functionality plugin.
function rkk_register_custom_view() { bbp_register_view( 'top-rated-topics', __( 'Top Rated Topics' ), array( 'meta_key' => '_topicliked', 'orderby' => 'meta_value_num' , 'post_status' => 'publish' ), false ); } add_action( 'bbp_register_views', 'rkk_register_custom_view' );Then paste this shortcode in a page called Top Rated Topics.
[bbp-single-view id='top-rated-topics']February 26, 2016 at 5:26 pm #172259Robkk
ModeratorThis is the URL /forums/search/french+fries/ that is returning in the browser instead of the normal /?s=french+fries peram.
The first url is normal for the bbPress forums search, in the second is normal for default WordPress search.
https://bbpress.org/forums/search/French+Fries/
In a plain permalink setup the forum search does look like this
yoursite.com/forums/search/?action=bbp-search-request&bbp_search=french+fries
What other themes have you tried and what are the currently active plugins you have right now??
-
AuthorSearch Results