Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 2,026 through 2,050 (of 6,789 total)
  • Author
    Search Results
  • #168106
    Robkk
    Moderator

    Sorry for the late reply, I just approved your topic.

    What I think is happening is somewhat bbPress default styles related and possibly the main font color in your theme. From what I can see you know have a plugin that adds custom styles for the bbPress theme (bbPress New UI), and it does help a little with the issue.

    If you want contact me, and I can help you with most of the styling issues you are facing.

    Contact

    #168051

    In reply to: Translate bbpress

    Robkk
    Moderator

    Might need some help from @netweb since he is part of the polyglots team. I am not that familiar with the translating process yet.

    You may need to make a post on the polygots page to notify them that you have a bbPress project translation and where to submit the translations, I am sure they will be able to help.

    https://make.wordpress.org/polyglots/

    You may be able to just contact your team here to see if they can also help you.

    Contact

    You may have to edit the translations here, and just wait for the team to approve the strings.

    https://translate.wordpress.org/projects/wp-plugins/bbpress/stable/fa/default

    translate.wordpress.org (GlotPress)

    #168016
    Robkk
    Moderator

    Inside bbpress/templates/default/bbpress-functions.php

    yes that one.

    You can place a copy of the file right into your child theme and customize it from there.

    You can do the same thing for the other files in bbPress too.

    Theme Compatibility

    #168013
    TKServer
    Participant

    Are you saying that you want to move the bbpress-functions.php file into your theme to make it easier to customize the functions already in the plugin??

    YES @robkk. Just didn’t want to redeclare the functions. Will that be an issue? If I can pull in whole functions.php then a whole new world will open up.

    I see the files
    common/functions.php
    theme/core… Wait a sec I just found it…

    Inside bbpress/templates/default/bbpress-functions.php

    So I just call that from my custom page I guess?


    @casiepa
    yes I do. I’m creating an outside of bbpress page which is a threaded forum view with some extra features. I did not create a forum myself, though the thought crossed my mind until I found bbp.

    #167990
    monovabona
    Participant

    Hi

    I embedded the Forum Index inside a WordPress page: http://tsalawchamber.org/?page_id=251 . Created a new forum (‘General’). But when I open the new forum and afterwards want to go back to the original WordPress page where the Forum Index was embedded, I can’t. When I click the “To Forums List” blue button at the top of the new Forum, it goes to a new page – which is I guess is called ‘Forum Root’ (?). This page also displays a list of existing Forums like the original WordPress page where I embedded the Forum Index, but I don’t want to go to this page by clicking “To Forums List” button – I want to go back to the original WordPress page. How can I do this? How can I change the destination of the “To Forums List” button and point it to the original WordPress page (not just for one forum, but automatically for all new forums) ?
    I tried this by deleting the default Forum Root Slug “forums” from Settings and leaving the field blank, but this didn’t work. It only rendered the “To Forums List” button inactive. I also changed the default Forum Root Slug to the original wordpress page slug, but this did not work either. So, how can I do this?

    Also, if this cannot be achieved through the “To Forums List” button, then how can I stop this button from appearing in new forums and insert a custom button which will point to the original WordPress page?

    Please help me!

    [My bbPress version: 2.5.4 (don’t want to update this one at this moment), WordPress version: 4.3.1 ]

    #167969
    Robkk
    Moderator

    Are you just using the_author and the_modified_time to just display 1 revision log. You can use the default revision logs and then use a function or some CSS to display 1 revision log instead.

    PHP functiion, place in your child themes functions.php file or in a functionality plugin.

    // Only return one entry for revision log otherwise it gets cluttered
    function bbp_trim_revision_log( $r='' ) {
     $arr = array( end( $r ));
     reset( $r );
     
     return( $arr );
    }
     
    add_filter( 'bbp_get_reply_revisions', 'bbp_trim_revision_log', 20, 1 );
    add_filter( 'bbp_get_topic_revisions', 'bbp_trim_revision_log', 20, 1 );

    CSS snippet, place in your child themes style css or in anywhere else you can place custom css snippets like a custom css plugin.

    .bbp-topic-revision-log li {
    	display:none;
    }
    .bbp-topic-revision-log li:last-child {
    	display:block;
    }
    project_subdomain
    Participant

    thanks for your reply, pascal.
    i use the default twenty twelve theme. refreshing permalinks does not solve it, too.
    also it is not caused by caching plugins.

    gperez-tl
    Participant

    Hi.
    I’m showing my replies as a timestream, meaning I display the newest replies above the oldest one. Like this:

    function custom_bbp_reorder_replies($args) { 
        
      $args['order'] = 'DESC'; // 'ASC' (Ascending, Default), 'DESC' (Descending) 
      return $args;
    }
    add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_reorder_replies' );

    Well, in My Replies Created I’m showing a list of replies with a link to corresponding thread like this:

    <a href=" <?php echo bbp_get_reply_url() ?>" class="bbp-topic-edit-link">...</a>

    But that is not working because bbp_get_reply_url() is considering default order instead of reverse. So, when doing this it returns the wrong page:

    $reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );

    (that code is in includes/replies/template.php, line 487)

    Maybe a hook around there would help.

    By now I’m not sure how to solve it for myself.

    project_subdomain
    Participant

    Hi!
    In my topics the bbp-reply-permalink (that with the number like #1010) does not jump to the specific reply as soon as there are more pages.

    Once a new page started, the url of all new replies permalinks on page 1 try to direct to a non-existing url on page 2, eg: /forums/topic/topicname/page/2/#post-1010. Every reply’s permalink on page 2 then tries a redirect to a non-existing url on page 1, eg /forums/topic/topicname/#post-1050.

    Suspected changes in the reply order to be the fault, but deactivating the custom code to get edited replies to the top as well as setting default order of replies did not have any effect.

    Would be very thankful for any help!

    #167839
    PittNZK
    Participant

    Ok, I figured it out.
    Just wrote a small plugin adding the “newzik” protocol :

    <?php
    /**
    * Plugin Name: NZK links support
    * Plugin URI: http://newzik.com/
    * Description: Adds support to newzik:// links
    * Version: 1.0
    * Author: Pierre Mardon
    * Author URI: http://newzik.com/
    * License: None
    */
    
    /**
     * Extend list of allowed protocols.
     *
     * @param array $protocols List of default protocols allowed by WordPress.
     *
     * @return array $protocols Updated list including new protocols.
     */
    function wporg_extend_allowed_protocols( $protocols ){
        $protocols[] = 'newzik';
        return $protocols;
    }
    add_filter( 'kses_allowed_protocols' , 'wporg_extend_allowed_protocols' );
    ?>
    gene-stevo
    Participant

    Hi Guys,
    I’ve been sort of getting on with bbpress installation but have hit a wall.
    The page designated to host the forums isn’t showing my default WordPress left side bar.
    I think I’ve unticked and re-ticked every option on every bit of setting I can find but it still wont show. I’ve even installed Content Aware Sidebars with the idea of inserting one that way but I cant get that to work either.
    What the heck am I missing (I’m a WP newbie). WP: 4.3.1 Theme: Jolene
    The affected page is here.
    Club News & Forums
    (the password to these learn-as-I-go pages is ccc but don’t tell anyone.
    Cheers in advance,
    Eugene.

    #167779
    Robkk
    Moderator

    @gperez-tl

    Post the code you are using for the custom howdy message in the toolbar. I do not think this would cause an issue but just double checking.

    Do the same thing with the profile menu items code.

    Just know that you said these were bbPress’s issue although the menu system and the WordPress toolbar are both part of WordPress. The registered menu and menu location are your theme. I do not know how bbPress could cause an issue with this.

    So, (visiting any author’s profile and) clicking on some of these items will show the author’s data, while clicking in others will retrieve current user profile data or something.

    Wait so clicking on anyone’s frontend forum profile could show the current users profile for some reason, or is it just the menu links as you stated.

    You did not edit the user profile templates heavily? you said you are receiving issues with users profiles.

    IF you haven’t already try to track down what is causing the issues you are getting. Since you have a custom theme see if the issue persists in a default theme like twenty twelve, deactivate all plugins but bbPress.

    Troubleshooting

    Your profile pages shouldn’t just be magically be cached by bbPress.

    You may need to create me a test user account so that I can confirm of the issue you are getting, and to also test other areas the cache issue might be present.

    #167765
    Robkk
    Moderator

    Yes as @casiepa said there is a limit of forums that can be displayed on the forum root page on yoursite.com/forums by default, and it is 50. It is because you do not really need to use more than 50 forums on your site and it is encouraged that you would need to structure your forums a little better. It is filterable to display more on the forum archive though.


    @jorgemuyden

    Glad you are sorted on the create forum form. While there is no edit and delete button from the frontend, if you are using the WordPress toolbar on your site, if you go to a single forum you should see an edit forum menu item in the toolbar that leads to the backend, if you edit the forum you can also trash it from there too. Hopefully that will help a little bit.

    #167757
    Robkk
    Moderator

    @sey88

    You just talking about the default WordPress registration process right?? If you have BuddyPress installed also, this has an activate link process too. I am just making sure since BuddyPress is one of the most used plugins in conjunction with bbPress.

    As @casiepa said it is possible to use a frontend form plugin to just get around this whole process activation process.

    #167735

    In reply to: move content in bottom

    Robkk
    Moderator

    It adds this by default at 480px in the bbPress stylesheet. Should definitely show up unless you have reply threading activated because of some weird bug when it is activated.

    #bbpress-forums .bbp-body div.bbp-topic-author,
    	#bbpress-forums .bbp-body div.bbp-reply-author {
    		margin: -15px 10px 10px;
    		min-height: 100px;
    		padding-left: 80px;
    		position: relative;
    		text-align: left;
    		width: 100%;
    	}
    
    	#bbpress-forums div.bbp-topic-author img.avatar,
    	#bbpress-forums div.bbp-reply-author img.avatar {
    		position: absolute;
    		top: 15px;
    		left: 0;
    		width: 60px;
    		height: auto;
    	}
    
    	#bbpress-forums .bbp-body div.bbp-topic-content,
    	#bbpress-forums .bbp-body div.bbp-reply-content {
    		clear: both;
    		margin: 10px;
    		padding: 0;
    	}
    #167727

    Topic: Auto Subscribe

    in forum Showcase
    kamenlee
    Participant

    I have a small, niche single forum install of bbPress and one of the things I need to do is figure out how to subscribe everyone to the single forum by default.

    What I know so far:

    1) The notify plugins won’t do because we WANT people to be subscribed and allowed to opt-out by unsubscribing in their settings.
    2) We only want to auto-subscribe them to a single forum, not replies. This way they see all new topics, but not ALL convos.
    3) This will also eventually be part of a membership to the site, thus the people subscribing are doing it, in part, to gain access and be a part of the conversation.

    Seems like I am not the only one that would use a forum this way, but have found no insight on how to accomplish it.

    #167720
    Mei Ling
    Participant

    Hello,

    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>”;
    }
    }

    ?>

    #167592
    Robkk
    Moderator

    You 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');
    #167568
    Pascal Casier
    Moderator

    Guten Abend laberkopp,

    @robin-w

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

    #167550
    Robkk
    Moderator

    Can 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?

    Troubleshooting

    #167538
    Robkk
    Moderator

    You 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_links

    This post might help too.

    Integrating Font Awesome Icons in bbPress

    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.

    Problems overwriting defaults

    Favorite links would have a similar function except the filter is probably.

    bbp_before_get_topic_favorite_link_parse_args

    And the actual text would be

    'favorite'  => esc_html__( 'Like',   'bbpress' ),
    'favorited' => esc_html__( 'Dislike', 'bbpress' )
    #167488
    Robkk
    Moderator

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

    Troubleshooting

    #167487
    Robkk
    Moderator

    Your students can register using the default WordPress register form here if you enabled registration in Settings > General.

    yoursite.com/wp-login.php?action=register

    #167426
    davidschwartzer
    Participant

    Robkk:

    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

    #167425
    Robkk
    Moderator

    @davidschwartzer

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

Viewing 25 results - 2,026 through 2,050 (of 6,789 total)
Skip to toolbar