Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,726 through 8,750 (of 32,505 total)
  • Author
    Search Results
  • PinkishHue
    Participant

    Thanks Stephen 🙂

    Will definitely keep an eye on developments. For now I have used CSS to hide all but the most recent revision, here’s the code if anyone else needs it:

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

    Hello!

    Help please!

    How to remove inscription under box for comments?

    “You may use these HTML tags and attributes”

        

    #162311

    In reply to: Help.

    Robkk
    Moderator

    it is displaying like this because bbPress thinks your forums is a blog posts because of some code that should be only for blog posts.

    create a bbpress.php file

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    if you need any more help with this reply back

    #162302
    usr79223992
    Participant

    I went through the documentation of adding actions (https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-4/) and then I looked up the places within the code for the following 3 events:
    – user registration
    – topic creation
    – reply creation
    I see, that I could add code before and after the “submit” button, but that’s not exactly what I need.
    I need to add an function call for ga.js directly to the button.

    Example (this is the code line for the “submit new topic” button):
    <button type=”submit” tabindex=”<?php bbp_tab_index(); ?>” id=”bbp_topic_submit” name=”bbp_topic_submit” class=”button submit”><?php _e( ‘Submit’, ‘bbpress’ ); ?></button>
    this must become:
    <button type=”submit” tabindex=”<?php bbp_tab_index(); ?>” id=”bbp_topic_submit” name=”bbp_topic_submit” class=”button submit” onClick=”_gaq.push([‘_trackEvent’, ‘Forum’, ‘New Topic’]);”><?php _e( ‘Submit’, ‘bbpress’ ); ?></button>

    How can I achieve this?

    #162290

    In reply to: force revision logs

    Robkk
    Moderator

    use this CSS to hide the checkbox for users to turn off logging their specific topic or rpely.

    label[for="bbp_log_reply_edit"],
    label[for="bbp_log_topic_edit"], 
    input#bbp_log_reply_edit,
    input#bbp_log_topic_edit {
    	display: none !important;
    }
    #162286
    Robkk
    Moderator

    add this to your child theme functions.php or install the plugin below.

    function bbp_reverse_reply_order( $query = array() ) {
        $query['order']='DESC';
        return $query;
    }
    add_fiter('bbp_has_replies_query','bbp_reverse_reply_order');

    https://wordpress.org/plugins/bbpress-sort-topic-replies/

    #162269

    Topic: force revision logs

    in forum Showcase
    GrantAdmin
    Participant

    Hi this is my first post here, I know my way around editing code but not a strong coder.

    I am wanting to edit bbpress so as to turn off the option for revision logs and have it as a default so all post edits must be recorded.

    Can anyone please guide me in doing this?

    I heave read around the forums and it seems everyone is wanting to do the opposite of this with their logs, but I need it as my wordpress/bbpress install is for official activities.

    thanks

    greenhoe
    Participant

    I would like to know how to completely uninstall bbpress, I’ve looked it up and followed the instructions on many other pages and thought I had it all but under the user profiles we have at the very bottom a section called “Additional Capabilities” and next to it you can see the user role. Here is a screenshot of it

    admin profile

    I have tried running this and it doesn’t work, I have role plugins to view all my roles and it doesn’t show me any of the bbpress roles so I’m really sure why this is still showing up

    $wp_roles = new WP_Roles();
    $wp_roles->remove_role("bbp_role");
    $wp_roles->remove_role("bbp_blocked");
    $wp_roles->remove_role("bbp_keymaster");
    $wp_roles->remove_role("bbp_moderator");
    $wp_roles->remove_role("bbp_participant");
    $wp_roles->remove_role("bbp_spectator");
    
    #162264
    Robkk
    Moderator

    @fmckinnon

    you can just put simple HTML in the text widget to link to the feeds , it would basically do the same thing.

    just add this into your text widget.

    <ul>
    <li><a href="http://www.theworshipcommunity.com/staging/forums/feed">All Recent Posts</a></li>
    <li><a href="http://www.theworshipcommunity.com/staging/topics/feed" title="All Recent Topics">All Recent Topics</a></li>
    </ul>
    #162252

    In reply to: List of Users

    Martin Kleinheinz
    Participant

    Im sure there is a free/premium Plugin available. I dont find it in my bookmarks, but this is definetivly possible! If you wont find it, you can contact me my website. http://kleinheinz.codes/ We will find a way to help you.

    best regards.

    #162245
    Robkk
    Moderator

    @amalsh

    well looking at this and seeing class="hashtag"

    <a class="hashtag" rel="nofollow" href="http://localhost/wordpress/forums/search/?bbp_search=%23000080">#000080</a> //color hex should not be in here
    ;”>

    the issue is probably from this plugin if you are using it.

    deactivate that and see if tinymce works better after that.

    https://wordpress.org/support/plugin/hashbuddy

    Tonya Mork
    Participant

    Hey bbPress Gang,

    I just wanted to report a minor issue of a Notice that is being thrown for the hook in actions.php on line 48:

    add_action( 'set_current_user', 'bbp_setup_current_user', 10 );

    I handled it in the core plugin like this:

    add_action( 'plugins_loaded', function() {
    remove_action( 'set_current_user', 'bbp_setup_current_user', 10 );
    add_action( 'wp_set_current_user', 'bbp_setup_current_user', 10 );
    });

    For your issues team, here is the notice:

    Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /Users/tonya/Sites/sandbox/wp-includes/functions.php on line 3560

    Looking at set_current_user, it was depreciated.

    Cheers! </>
    Tonya

    #162240
    Nicolas Korobochkin
    Participant

    this chechbox changed when user send a reply and click Submit?

    Right. To unsubscribe without posting any messages you can click “unsubscribe” link at the top of page (your theme may not showing this block). Or you can manage your subs at profile page (forums/users/YOUR_NICKNAME/subscriptions/).

    #162239
    Jake Hall
    Participant

    Just out of interest, could someone explain to me why it was disabled in bbPress?

    It has a couple of bugs, and it is called within an iframe(holy crap, right?) which has immediately put me off using it, a visual editor is absolutely vital for a forum software and it is not part of bbPress – even though WordPress has a very good Visual Editor as part of its core code.

    Why is the visual editor not enabled within bbPress, are the core guys working on it? Milestone?

    #162238
    Hope
    Participant

    True, there’s a couple of mess ups in the code o_O but I’m writing directly into the forum using the full editor, not copying and pasting the text! Changing the text style using the editor generated this code! Strange! Could this be an issue from the editor itself? Have you tried the “bbPress Enable TinyMCE Visual Tab” plugin?

    Thanks for your help and time
    Hope

    #162236
    Robkk
    Moderator

    Does adding !important help??

    #bbpress-forums div.bbp-user-role {
      font-size: 1rem;
      color: rgba(105, 105, 105, 1);
      font-family: Lato, Arial, Helvetica;
      text-transform: uppercase !important;
    }
    #162233
    Robkk
    Moderator

    @amalsh

    I double checked your function , and there is a couple of mess ups in the code.

    <p>
    <span style="text-decoration: underline; color: //color should be here
    <a class="hashtag" rel="nofollow" href="http://localhost/wordpress/forums/search/?bbp_search=%23000080">#000080</a> //color hex should not be in here
    ;”> //should end with </span>
    <em>
    <strong>
    <span style="font-size: 12pt;font-family: arial,helvetica,sans-serif">test</span>
    </strong>
    </em>
    </p>

    In some cases copying and pasting text from another website into the tinymce visual editor may show the html still , so it is recommended to use the last function mentioned in this post.

    Enable Visual Editor

    This function works , if im missing something I might update it for users that usually use tinymce advanced with it so that every button should work properly.

    add_filter( 'bbp_kses_allowed_tags', 'ntwb_bbpress_custom_kses_allowed_tags' );
    
    function ntwb_bbpress_custom_kses_allowed_tags() {
    	return array(
    
    		// Links
    		'a'          => array(
    			'class'    => true,
    			'href'     => true,
    			'title'    => true,
    			'rel'      => true,
    			'class'    => true,
    			'target'    => true,
    		),
    
    		// Quotes
    		'blockquote' => array(
    			'cite'     => true,
    		),
    		
    		// Div
    		'div' => array(
    			'class'     => true,
    		),
    		
    		// Span
    		'span'             => array(
    			'class'     => true,
    			'style'     => true,
    		),
    
    		// Paragraph
    		'p'          => array(
    			'dir'    => true,
    			'style'     => true,
    		),
    		
    		// Code
    		'code'       => array(),
    		'pre'        => array(
    			'class'  => true,
    		),
    
    		// Formatting
    		'em'         => array(),
    		'strong'     => array(),
    		'del'        => array(
    			'datetime' => true,
    		),
    
    		// Lists
    		'ul'         => array(),
    		'ol'         => array(
    			'start'    => true,
    		),
    		'li'         => array(),
    
    		// Images
    		'img'        => array(
    			'class'    => true,
    			'src'      => true,
    			'border'   => true,
    			'alt'      => true,
    			'height'   => true,
    			'width'    => true,
    		),
    
    		// Tables
    		'table'      => array(
    			'align'    => true,
    			'bgcolor'  => true,
    			'border'   => true,
    		),
    		'tbody'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'td'         => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'tfoot'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'th'         => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'thead'      => array(
    			'align'    => true,
    			'valign'   => true,
    		),
    		'tr'         => array(
    			'align'    => true,
    			'valign'   => true,
    		)
    	);
    }

    This function only works before the post is published , it does not magically fix old posts that were already published. You probably would have to edit old posts then resubmit for it to fix , but I am not sure.

    #162229
    Robkk
    Moderator

    is there any other code in your functions.php in your child theme??

    usually there is a <?php on the first line if you created a functions.php in your child theme. then you can put your custom functions in that.

    and to use the functionality plugin you install , activate , then go to plugins > edit functions
    then place any code snippet you get from sites and place it into there after the plugin information.

    #162227
    arrangedletters
    Participant

    Yes, I put it in the functions.php

    When I then went to reload the website all it would return was a blank white page.

    I then restored the previous code via ftp and the website displayed correctly once more.

    Edit: I’ll try that functionality plugin and see if it works there – I’m a bit new to this so there’s a strong chance I did it wrong!

    function rk_bbp_search_form(){

    if ( bbp_allow_search()) {
    ?>
    <div class=”bbp-search-form”>

    <?php bbp_get_template_part( ‘form’, ‘search’ ); ?>

    </div>
    <?php <–right here it opens a tag without closing it though, doesn’t it?
    }
    }

    add_action( ‘bbp_template_before_single_forum’, ‘rk_bbp_search_form’ );
    add_action( ‘bbp_template_before_single_topic’, ‘rk_bbp_search_form’ );
    add_action( ‘bbp_template_before_search’, ‘rk_bbp_search_form’ );

    #162223
    Robkk
    Moderator
    #162221
    Robin W
    Moderator

    try adding this to your functions file

    function change_translate_text( $translated_text ) {
    if ( $translated_text == ‘%s ago’) {
    $translated_text = ‘%s’;
    }
    return $translated_text;
    }
    add_filter( ‘gettext’, ‘change_translate_text’, 20 );

    Functions files and child themes – explained !

    #162206
    tocpeople
    Participant

    Hi!

    This checkbox “Inform me about new topics via email” is always stay cheked.
    If I check it off, it’s checked again.

    If I try this code, it always be unchecked:
    function pw_bbp_auto_checK_subscribe( $checked, $topic_subscribed ) {
    if( $topic_subscribed == 0 )
    $topic_subscribed = false;
    return checked( $topic_subscribed, true, false );
    }
    add_filter( ‘bbp_get_form_topic_subscribed’, ‘pw_bbp_auto_checK_subscribe’, 10, 2 );

    But it must work properly: be unchecked for default, and user can check and uncheck it his self any time.

    Site: http://www.tocpeople.com/forum/
    with newest versions of WordPress and BBpress.

    #162201

    In reply to: noreply@domain.com ?

    kiwi3685
    Participant

    I would also like to see a better solution to this problem. I can confirm that it is only a BBP issue, not related to any other plugin. It is simply that the email “to” address is hard coded to use noreply@domain name in bbp.

    That initially sounds reasonable, but as Mathias70 who started this thread pointed out, not everyone has or even wants a ‘noreply’ email on their domain. I’ve just added bbp to our large organisation’s WP site and now have the same issue.

    Please can the “To” email address for notifications be a configurable variable rather than hard coded as soon as possible.

    #162198
    Nick
    Participant

    For some reason bbPress is broken when working on your local machine. Check out the code on this other thread; it worked for me and others in the localhost situation:

    ERROR: Are you sure you wanted to do that?

    #162196

    In reply to: Cutom topic headings

    Robin W
    Moderator

    There is no right term !

    This is just a bunch of code in a programme, topic heading is probably the best you’ll get

Viewing 25 results - 8,726 through 8,750 (of 32,505 total)
Skip to toolbar