Search Results for '+.+default+.+'
-
AuthorSearch Results
-
October 12, 2015 at 9:19 am #167720
In reply to: Bulk-move bbPress topics
Mei Ling
ParticipantHello,
We have done this… we are still testing it. Be careful use VPS:
<?php
/**
* Now that you have your custom column, it’s bulk/quick edit showtime!
* The filters are ‘bulk_edit_custom_box’ and ‘quick_edit_custom_box’. Both filters
* pass the same 2 arguments: the $column_name (a string) and the $post_type (a string).
*
* Your data’s form fields will obviously vary so customize at will. For this example,
* we’re using an input. Also take note of the css classes on the <fieldset> and <div>.
* There are a few other options like ‘inline-edit-col-left’ and ‘inline-edit-col-center’
* for the fieldset and ‘inline-edit-col’ for the div. I recommend studying the WordPress
* bulk and quick edit HTML to see the best way to layout your custom fields.
*/
add_action( ‘bulk_edit_custom_box’, ‘manage_wp_posts_be_qe_bulk_quick_edit_custom_box’, 10, 2 );
//add_action( ‘quick_edit_custom_box’, ‘manage_wp_posts_be_qe_bulk_quick_edit_custom_box’, 10, 2 );
function manage_wp_posts_be_qe_bulk_quick_edit_custom_box( $column_name, $post_type ) {switch ( $post_type ) {
case ‘topic’:
switch( $column_name ) {
case ‘bbp_topic_forum’:
?><fieldset class=”inline-edit-col-left”>
<div class=”inline-edit-col”>
<label>
<span class=”title”>Deplacer dans le forum</span>
<span class=”input-text-wrap”>
<select name=”deplacer”>
<option value=”Null”></option>
<?php /* recuperation des forums “forum” */
$args = array(
// ‘post_parent__not_in’=> array( 0 ) ,
‘post_type’ => ‘forum’
);
$forums = new WP_Query( $args );
// boucle de test affiche en debug id et titre forum
if ( $forums->have_posts() ) {
while ( $forums->have_posts() ) {
$forums->the_post();
echo ‘<option value=”‘.$forums->post->ID.'”>’.get_the_title() . ‘</option>’ ;
}
}
wp_reset_postdata();?></select>
</span>
</label>
</div>
</fieldset><?php
break;
}
break;
}
}/**
* When you click ‘Quick Edit’, you may have noticed that your form fields are not populated.
* WordPress adds one ‘Quick Edit’ row which moves around for each post so the information cannot
* be pre-populated. It has to be populated with JavaScript on a per-post ‘click Quick Edit’ basis.
*
* WordPress has an inline edit post function that populates all of their default quick edit fields
* so we want to hook into this function, in a sense, to make sure our JavaScript code is run when
* needed. We will ‘copy’ the WP function, ‘overwrite’ the WP function so we’re hooked in, ‘call’
* the original WP function (via our copy) so WordPress is not left hanging, and then run our code.
*
* Remember where we wrapped our column data in a <div> in Step 2? This is where it comes in handy,
* allowing our Javascript to retrieve the data by the <div>’s element ID to populate our form field.
* There are other methods to retrieve your data that involve AJAX but this route is the simplest.
*
* Don’t forget to enqueue your script and make sure it’s dependent on WordPress’s ‘inline-edit-post’ file.
* Since we’ll be using the jQuery library, we need to make sure ‘jquery’ is loaded as well.
*
* I have provided several scenarios for where you’ve placed this code. Simply uncomment the scenario
* you’re using. For all scenarios, make sure your javascript file is in the same folder as your code.
*/
add_action( ‘admin_print_scripts-edit.php’, ‘manage_wp_posts_be_qe_enqueue_admin_scripts’ );
function manage_wp_posts_be_qe_enqueue_admin_scripts() {// if code is in theme functions.php file
wp_enqueue_script( ‘manage-wp-posts-using-bulk-quick-edit’, trailingslashit( get_bloginfo( ‘stylesheet_directory’ ) ) . ‘js/bulk_quick_edit.js’, array( ‘jquery’, ‘inline-edit-post’ ), ”, true );// if using code as plugin
//wp_enqueue_script( ‘manage-wp-posts-using-bulk-quick-edit’, trailingslashit( plugin_dir_url( __FILE__ ) ) . ‘js/bulk_quick_edit.js’, array( ‘jquery’, ‘inline-edit-post’ ), ”, true );}
add_action( ‘save_post’, ‘save_deplacer’);
function save_deplacer() {
global $wpdb;if( $_GET[‘post_type’]=’topic’ && $_GET[‘bulk_edit’]=’Mettre à jour’){
$post_ids= $_GET[‘post’];
$forum_id = $_GET[‘deplacer’];
foreach($post_ids as $post_id){$wpdb->query(“UPDATE $wpdb->posts SET post_parent = $forum_id WHERE ID = $post_id “);
}
}
}
/*echo ‘'; print_r($post_type); echo '
‘;
die();Array
(
[s] =>
[post_status] => all
[post_type] => topic
[_wpnonce] => dcfdf56a2d
[_wp_http_referer] => /public/wptest/wp-admin/edit.php?post_type=topic&paged=1
[action] => edit
[m] => 0
[bbp_forum_id] =>
[paged] => 1
[mode] => excerpt
[_status] => -1
[tax_input] => Array
(
[topic-tag] =>
)[Deplacer] => 39
[bulk_edit] => Mettre à jour
[post_view] => excerpt
[screen] => edit-topic
[post] => Array
(
[0] => 43
[1] => 41
)[action2] => -1
)*//**
* Step 3: display an admin notice on the Posts page after deplacer
*/
add_action(‘admin_notices’, ‘custom_bulk_admin_notices’);
function custom_bulk_admin_notices() {
global $post_type, $pagenow ;if( $_GET[‘post_type’]=’topic’ && $_GET[‘bulk_edit’]=’Mettre à jour’){
$messages = array();
$messages[] = bbp_admin_repair_forum_meta();
$messages[] = bbp_admin_repair_topic_meta();
$messages[] = bbp_admin_repair_freshness();
$messages[] = bbp_admin_repair_reply_menu_order();
$messages[] = bbp_admin_repair_forum_topic_count();
$messages[] = bbp_admin_repair_forum_reply_count();
$messages[] = bbp_admin_repair_topic_reply_count();
$messages[] = bbp_admin_repair_topic_voice_count();
$messages[] = bbp_admin_repair_user_topic_count();
$messages[] = bbp_admin_repair_user_reply_count();//if($pagenow == ‘edit.php’ && $post_type == ‘topic’ && isset($_GET[‘deplacer’])) {
$messageori = sprintf( _n( ‘Topic déplacé.’, ‘%s topics déplacés.’, $_REQUEST[‘deplacer’] ), number_format_i18n( $_REQUEST[‘deplacer’] ) );
foreach ($messages as $message){
echo'<div class=\”updated\”><p>’.$message[1].'</p></div>’;
}
echo “<div class=\”updated\”><p>{$messageori}</p></div>”;
}
}?>
October 9, 2015 at 3:22 am #167592In reply to: forums/users/ only for logged in users?
Robkk
ModeratorYou can use this php Code function instead if you are not using BuddyPress. Make sure to place it in your child themes functions.php file or in a functionality plugin.
What it does is redirect non-logged in users from see user profile pages to the default WordPress login page.
You can change the page by editing
site_url('wp-login.php');to something like this if you have a yoursite.com/login page instead.
site_url('/login/');function rkk_restrict_bbp_user_pages() { if ( ! is_user_logged_in() ) { if ( bbp_is_single_user() ) { $url = site_url('wp-login.php'); // Send them to the new URL wp_redirect( $url ); exit; } } } add_action( 'template_redirect', 'rkk_restrict_bbp_user_pages');October 8, 2015 at 3:39 pm #167568In reply to: forums/users/ only for logged in users?
Pascal Casier
ModeratorGuten Abend laberkopp,
@robin-wI checked your profile picture and I think I have seen you before 🙂
bbPress profiles are open by default to all, so also users that are not logged in could see your profile. I know Robin has made a quick patch for a previous version (http://www.rewweb.co.uk/bbpress-making-profile-pages-private/) but I’m not sure if it’s still valid for the current version.
Some other (untested!) snippets can be found here: http://seventhqueen.com/blog/code-snippets/restrict-guest-users-from-accessing-buddypress-or-bbpress-pages.html
Regards, Pascal.
October 8, 2015 at 6:54 am #167550In reply to: Moderator cannot assign tags
Robkk
ModeratorCan you assign topic tags in a regular forum?
Can you assign topic tags in a group forum?
Have you tried creating custom roles?
Have you installed a user role editing plugin?
Have you ran any repair tools in Tools > Forums yet, especially the Remap existing users to default forum roles one?Have you tried most of the basic troubleshooting steps already?
October 8, 2015 at 3:38 am #167538Robkk
ModeratorYou cannot edit these things like the customizable templates in bbPress.
I guess you can either use filters to customize the text, or create a custom language file.
Here is an example of the
function rkk_custom_admin_link( $links ) { $links['reply'] = bbp_get_topic_reply_link( array( 'reply_text' => __( 'Reply to this Topic', 'bbpress' ), ) ); return $links; } add_filter( 'bbp_topic_admin_links', 'rkk_custom_admin_link' );bbp_topic_admin_links
bbp_reply_admin_linksThis post might help too.
Robin showed me a function that could help modify the admin links displayed.
Here is some example code to customize the admin links.
//change admin links displayed function change_admin_links ($r) { $r['links'] = apply_filters( 'rw_reply_admin_links', array( 'edit' => bbp_get_reply_edit_link ( $r ), 'move' => bbp_get_reply_move_link ( $r ) ), $r['id'] ); return $r['links'] ; } add_filter ('bbp_reply_admin_links', 'change_admin_links' ) ;Subscribe links text I mention a way to customize it here.
Favorite links would have a similar function except the filter is probably.
bbp_before_get_topic_favorite_link_parse_argsAnd the actual text would be
'favorite' => esc_html__( 'Like', 'bbpress' ), 'favorited' => esc_html__( 'Dislike', 'bbpress' )October 7, 2015 at 4:21 am #167488In reply to: Website Crashed with bbpress
Robkk
ModeratorHave you edited any core files?
Did you see if bbPress works with a default theme and no other plugins activated??
You can try reinstalling bbPress again to see if there is just something wrong with that installation. Do not reset the forums and delete any data, just deactivate and remove the bbPress plugin and reinstall.
October 7, 2015 at 4:14 am #167487In reply to: Registering member to forum
Robkk
ModeratorYour students can register using the default WordPress register form here if you enabled registration in Settings > General.
yoursite.com/wp-login.php?action=register
October 6, 2015 at 8:43 am #167426In reply to: Remove the Oh Bother – No Forums here box
davidschwartzer
ParticipantRobkk:
Thanks for your note. Let me respond to some of your questions with what I know (which isn’t much).
I created the forum by trying to follow the steps in the Step by Step guide provided on the bbPress site. I have not done any editing of the template other than adding some css to make the topics flow in a list, rather than horizontally as is the default layout and also to change the comment text to black instead of gray. I am also using a couple of plug-ins. One is called bbPress New UI which changes the basic layout but doesn’t seem to otherwise change the forum plug-in. The other is called Bbpress Login Register Links On Forum Topic Pages, which does what the title says.
I am not using a child theme currently but I have deactivated all of the plug-ins so what you should now see is the default bbPress forum that is created.
I hope this is helpful. Let me know if you need anything else from me to help figure this out.
I am new to WordPress and bbPress and clearly have a lot to learn. I appreciate your assistance with all of this.
Regards,
David
October 6, 2015 at 8:21 am #167425In reply to: Remove the Oh Bother – No Forums here box
Robkk
ModeratorYour forum urls for each section is weird for some reason. Have you added a slug that is something like this forums/forum for the forum root slug in Settings > Forums in the WordPress backend?
Your forums archive page is blank and only showing a sidebar login widget.
appletechtalk.com/forums/
Yet strangely here is how your forum archive should look like and yet it is in a single forum page. Since this is a single forum page there is a reason there is this notice, as single forums should have topics and not a forum archive. I think you could have possibly echoed a forum index shortcode in the single forum bbPress template?? I am not sure though, I am just guessing.
Oh bother! No topics were found here!
appletechtalk.com/forums/forum/forums/
A single forum page should have this by default.
yoursite.com/forums/forum/forum-name/
Or if you have categories
yoursite.com/forums/forum/category-name/forum-name
Your topics are fine though.
appletechtalk.com/forums/topic/notes-not-syncing/
I am not sure how much template editing you may have done, but can you rename your bbpress folder in your child theme to like bbpress-1 so I could see without any template edits what were your original issues then I can try to help you on that.
October 6, 2015 at 6:19 am #167416Robkk
ModeratorThe forum search should show up on the forum archive page that is usually yoursite.com/forums by default and I do see it there on your site.
The input box for the math captcha could just be a CSS issue. Unless you have anonymous posting activated in bbPress, you may need to send me account details for a Subscriber/Participant test user account as I may need to be logged in to your site to be able to even see the captcha.
Also not sure why you are using bbPress with some other forum software plugin, you could possibly get issues by having them both activated together. If you are just importing from one to the other your simplepress data should stay in your database and you just import all of that.
You should try some troubleshooting to see if some of the issues could be theme related. Make sure to check in a theme like Twenty Twelve, and also check to see if Simplepress could be causing an issue if you have it activated with bbPress.
October 5, 2015 at 12:41 pm #167411Topic: User profile full width page
in forum Troubleshootingmica123
ParticipantWhen I set up bbpress first locally on my computer, I managed to get all pages for bbpress full width with no sidebars. I simply went to Theme options and set all pages and posts to default full page width tempates.
Now I am setting up bbpress on a live site. bbpress forum pages display correctly in full width, but to my unpleasant surprise the user profile page displays with a sidebar. I simply can’t get rid of the sidebar and make the page full width. This is very disappointing for me – can someone help, please? I spent so much time getting it ready beforehand and i was hoping that I would not encounter any more hurdles. Thank you.October 3, 2015 at 11:28 am #167383Topic: Remove the Oh Bother – No Forums here box
in forum Themesdavidschwartzer
ParticipantI have gone through the prior threads on this issue and I still can’t change the text in the Oh Bother box.
My site is appletechtalk.com. If you click on the Forums taband look at the bottom of the page, you will see the Oh Bother! text.
I have modified the feedback-no-forums.php file so that the text line reads “Please select a topic”. I thought that would be easier than trying to remove the box completely (which is what I would rather do).
I placed the file into my child theme. First I put it in the root of the bbpress directory and that did not help. I also recreated the directory structure in my child theme:
bbpress/templates/default
and that didn’t help either.
I am new to WordPress and bbPress as well as css and php files so I have a bit of a learning curve but I’m wondering if you have any thoughts on why this isn’t working.
Thanks,
David
October 3, 2015 at 11:25 am #167382In reply to: bbpress 2.4 Change "Oh Bother" message ??
davidschwartzer
ParticipantStephen:
I have gone through this topic thread and I still can’t change the text in the Oh Bother box.
My site is appletechtalk.com. If you click on the Forums taband look at the bottom of the page, you will see the Oh Bother! text.
I have modified the feedback-no-forums.php file so that the text line reads “Please select a topic”. I thought that would be easier than trying to remove the box completely (which is what I would rather do).
I placed the file into my child theme. First I put it in the root of the bbpress directory and that did not help. I also recreated the directory structure in my child theme:
bbpress/templates/default
and that didn’t help either.
I am new to WordPress and bbPress as well as css and php files so I have a bit of a learning curve but I’m wondering if you have any thoughts on why this isn’t working.
Thanks,
David
October 2, 2015 at 6:04 pm #167363In reply to: Login, Register, Lost Password links
Robkk
ModeratorIn the code I posted the menu links should lead to the default WordPress forms.
Other plugins can add frontend forms like Theme My Login, woocommerce, some other membership plugins.
I am basically saying the bbPress forms are incomplete in functionality, it might be better to use something else like the default WordPress forms.
October 2, 2015 at 5:47 pm #167360In reply to: forums redirected to 404 page
Robkk
ModeratorDo you have any hidden forums?? Hidden forums are only for Admins and mods, participants might get a 404. There might also be a bug if you are using it with BuddyPress groups for group forums.
You can test to see if it could still be a user capability issue on your site too. Just installing a plugin that modifies the bbPress user role capabilities could mess it up and it could still mess up even if you removed the plugin. Some users say the Members plugin by Justin Tadlock resolves some user role capability issues just by installing it, so you can try that.
Makes sure to test this in a default theme to make sure you do not have multiple issues regarding capability issues and a theme issue.
Make sure to test with your normal Keymaster role and also with a testuser accout with a Participant role.
October 2, 2015 at 5:13 pm #167357In reply to: Login, Register, Lost Password links
mica123
ParticipantYes, I am using the bbpress forms. Where would I find the default WordPress forms? Also, by other frontend forms – I am not sure what you mean? It is just difficult for me to understand that by not using the bbpress forms, redirects will show error messages without any code?
October 2, 2015 at 5:03 pm #167356In reply to: Login, Register, Lost Password links
Robkk
ModeratorAre you trying to use the bbPress shortcodes in pages for logging in and registering??
These forms are really incomplete in functionality, they don’t redirect back to the login form and show error messages above that form, it just redirects to the default WordPress form to show the error messages. I think using the default WordPress forms or other frontend forms are better for now.
October 2, 2015 at 2:02 am #167331In reply to: forums redirected to 404 page
UgoDimma
ParticipantHey @Robkk2.0
Thanks for your response. But am sorry for taking to long to respond. Is just that I was tryen the new ideas you gave me to see which one will work it out. But I regrete to come back without any solution yet.
I deactivated all plugins except bbpress, but it does not resolve it.
I Have no caching plugin on the site as it stands now.
Ideactivated, deleted, re-install, andre-activated bbpress, and yet, no solution.
I switched theme to default twentyfifteen, and the issue just changed, but to no better.
Here is the situation on the default theme.
Logged out users can view the forum root, and every topics, but once logged with participant role, every page will start return to error 404, both the forum root, except the forums that are associated with the buddypress group, which can only be accessed through the group.
But with moderator’s role and admin role, been logged in, he/she can view the forum root and all othe forums, topics and replies the way it surpose to be.
Since installation, I was using Admin role and capability to access my site, untill I created a new user to test run some page do I started noticing all these. So I cannot tell exactly if it worked fine at onset.
October 1, 2015 at 10:00 pm #167326AilyRoot
ParticipantHi
we just found that default bbpress search function does not honor hidden forum setting at all
If you set a forum to be “hidden”, then you go to search for thread contents inside that hidden forum, search results still show those info under “hidden forums”.We are using default bbpress search function, not wordpress search
hope this could be fixed soon
thanks for great plugin
October 1, 2015 at 4:42 am #167295In reply to: Theme Parts from twenty fifteen
iron_cP
ParticipantHello Robkk2.0
no, twenty fifteen is not my default theme, default theme is great!.
and i dont have a custom theme.here you see the forum with the twenty Fifteen theme.

and here you see the Forum with my default theme great!

the mistake is, that the answers are displayd on the Top.
i cant send you a link .. this website is private for schoolkids and parents!
Greets, IRoN
October 1, 2015 at 3:34 am #167290In reply to: Problems with Forum Rating not working
Robkk
ModeratorHere is the code for that exact error notice. bbp_check_for_blacklist is checking the comment blacklist in Settings > Discussion. Since you said that you do not have anything in the blacklist do you have another plugin with a blacklist that could be hooking into the default comment blacklist??
/** Reply Blacklist *******************************************************/ if ( ! bbp_check_for_blacklist( $anonymous_data, $reply_author, $reply_title, $reply_content ) ) { bbp_add_error( 'bbp_reply_blacklist', __( '<strong>ERROR</strong>: Your reply cannot be created at this time.', 'bbpress' ) ); }October 1, 2015 at 3:13 am #167284In reply to: Theme Parts from twenty fifteen
Robkk
ModeratorIs Twenty Fifteen your default theme?
Are you making custom theme?
Post picture of the problem.
Post link to your site if you want to.
October 1, 2015 at 12:42 am #167267In reply to: bbpress search
Robkk
ModeratorThe bbPress search searches news items?? It only searches for bbPress post types really.
Are you sure you are not confusing this with the default WordPress search??
September 30, 2015 at 11:56 pm #167260In reply to: Users’ Profile page is a 404 page
Robkk
ModeratorDid you try some troubleshooting to see if it could be a possible theme issue. Some theme frameworks do not play nice with bbPress’s theme compatibility, so try to check in a default theme to see if it works fine.
I guess you can also ask these questions too.
Did you import any users?
Are you allowing users to register with their email?September 30, 2015 at 10:23 pm #167248Robkk
ModeratorWhen I was talking about User ID, I was talking about a number not the name.
Here is an example on the other site I mentioned. The users username is 谢益辉 but the user profile shows the users ID in their profile url.
cos.name/cn/profile/1/
The plugin I mentioned will just help if you do not want the chinese characters in the urls of your forum posts it will just show the ID instead of the name. It is just a helpful plugin that might be useful, it won’t really help you with the profile issue though.
I do see that the profile page url is filterable and I could possibly make it the users ID instead, so I might try to fool with this. I post a snippet later If I can get it to work, and if it does work might suggest the plugin author of the plugin I listed earlier to add it to their plugin as it might be helpful.
You can also try switching to the default permalinks to see if that would help, because bbPress by default displays the profile links to be
?bbp_user=1, with the number being the ID which bypasses using the chinese characters completely. See if that works. -
AuthorSearch Results

