Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,751 through 3,775 (of 32,508 total)
  • Author
    Search Results
  • #199927
    chickencurry
    Participant

    Hello bbPress team and users

    I am currently setting up my first bbpress forum. I am using buddypress and gamipress (didnt set it up so far) too.

    I use a widget on my bbpress forum site for recent topis. It’s the standard bbpress widget. Before the topic title are 7 speech bubbles. I don’t know if it’s always seven, but it doesn’t look good and it has no real use. Can I change this to a emoji symbol, like fire, and maybe the number of replies to it? How can I find the right code?

    Another question somebody could maybe anwser. Can I show gamipress ranks and points below the avatar in postings or other informations from buddypress profiles, or any bbpress related informations?

    Thank you in advance and have a nice day to the whole in community!

    #199905
    nfusionco
    Participant

    Here is the value in my _bbp_converter_query string so you can see right where the issue is happening each time I believe.

    SELECT value_id, meta_value FROM lT8Kj0L7_bbp_converter_translator WHERE meta_key = '_bbp_old_forum_id' AND meta_value = '40' LIMIT 1

    Clicking Pause & Start never continues on and instead imports the same 27 topics it did previously each time you pause and start growing topics by 27 over and over.

    #199904
    nfusionco
    Participant

    Continuing the troubleshooting here in case someone has an idea. Upgraded vBulletin to 4.2.5; can’t access the site directly anymore but the database is still fine. Tried to do the bbPress import once more fresh and it hangs still at “Doing Step 6” with No forum subscriptions to import. The debug is a little differnt now though:

    [13-Apr-2019 02:09:24 UTC] PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 225
    [13-Apr-2019 02:09:24 UTC] PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 237
    [13-Apr-2019 02:09:24 UTC] PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 241
    [13-Apr-2019 02:09:25 UTC] PHP Fatal error:  Uncaught Error: Cannot pass parameter 1 by reference in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php:1485
    Stack trace:
    #0 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(1508): BBCode->Internal_GenerateOutput(1)
    #1 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(1891): BBCode->Internal_RewindToClass(Array)
    #2 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(2068): BBCode->Internal_ParseStartTagToken()
    #3 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-base.php(1211): BBCode->Parse('[list=1][*]quee...')
    #4 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/converters/vBulletin.php(754): BBP_Converter_Base->callback_html('[list=1][*]quee...')
    #5 /var/www/vhosts/mydomain.com/dev.mydomain.com/w in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 1485
    #199903
    nfusionco
    Participant

    Debug log included:

    [12-Apr-2019 22:13:19 UTC] PHP Fatal error:  Uncaught Error: Cannot pass parameter 1 by reference in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php:1485
    Stack trace:
    #0 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(1508): BBCode->Internal_GenerateOutput(1)
    #1 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(1891): BBCode->Internal_RewindToClass(Array)
    #2 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php(2068): BBCode->Internal_ParseStartTagToken()
    #3 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/classes/class-bbp-converter-base.php(1211): BBCode->Parse('[list=1][*]quee...')
    #4 /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/converters/vBulletin3.php(752): BBP_Converter_Base->callback_html('[list=1][*]quee...')
    #5 /var/www/vhosts/mydomain.com/dev.mydomain.com/ in /var/www/vhosts/mydomain.com/dev.mydomain.com/wp-content/plugins/bbpress/includes/admin/parser.php on line 1485
    #199902
    nfusionco
    Participant

    Installed bbPress (2.7RC) to test and I like the improved dashboard for information but still having the import issue – though now I’m informed that it reaches step 6:

    Step 6. No forum subscriptions to import
    and just doesn’t move past that point. As a note there are no other plugins activated at all in my wordpress install – this is brand new and i’m starting out with the bbPress plugin since it’s the largest potential issue.

    nfusionco
    Participant

    I’m trying to import an old vBulletin (3.8.3) forum to a new bbPress (2.5.14) setupon WordPress 5.1.1 and the initial import looks great. It imports the users (~13k) says something about deleting their WordPress password, then a moment later it seems to hang and no matter how long I leave it we never progress.

    Calculating forum hierarchy (0 - 99)
    Converting forums (0 - 99)
    Delete users WordPress default passwords (12700 - 12799)
    Delete users WordPress default passwords (12600 - 12699)
    Delete users WordPress default passwords (12500 - 12599)
    Delete users WordPress default passwords (12400 - 12499)
    Delete users WordPress default passwords (12300 - 12399)

    Looking at the forum sections shows that it’s created the 22 forums and correctly set some of them as categories, they also show how many topics and replies are in each one correctly –

    — Random Thoughts - Topics: 3,119 Replies: 54,698

    But only 27 topics across the entire forum are imported. It’s the same 27 topics every time as well. To the point that if I stop the import, and hit the start button again, it imports these same 27 topics once more now showing 54. Is there an error log I can find that might show me why it’s hanging up? The bit above with the Calculating Hierarchy is the last update I ever get in the window. I added the lines to turn on debug logging in WordPress but nothing every shows up.

    define( 'WP_DEBUG', true ); // turn on debug mode
    if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
    	define( 'WP_DEBUG_LOG', true ); // log to wp-content/debug.log
    }
    #199889
    lflier
    Participant

    Late to the party, but instructions for enabling the TinyMCE editor are here. Instructions for styling the content inside the editor are here. TinyMCE is not Gutenberg. But it’s simple and reasonably user-friendly.

    #199887
    lflier
    Participant

    One of the problems I’ve encountered in trying to use the TinyMCE editor in bbPress is styling the text inside the editor itself. The default fonts are serif, but suppose you want sans?

    Attempting to override the font-family in the usual way — by modifying your theme’s CSS file — fails because the editor window of TinyMCE is in it’s own tiny little world as far as CSS is concerned.

    In order to get TinyMCE to use your own stylesheet, you have to pass it as an argument when the editor is called. Here’s how to do it in bbPress.

    function bbp_enable_visual_editor( $args = array() ) {
        $args['tinymce'] = array( 
                'content_css' => '/wp-content/themes/mytheme/css/tinymce-editor.css',
            );
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    In the example above, “tinymce-editor.css” is the CSS file you want the editor to use. It is located in a folder entitled “CSS”, which is located in your theme folder “mytheme”. The code above can be copied and pasted into your functions.php file.

    Other options for the editor can be found here. Notice that the value for “tinymce” can be an array. That’s what we’re doing above.

    Additional arguments to pass in the array for the TinyMCE editor can be found here.

    I hope this helps someone. The documentation for styling the editor text could be improved. I banged my head on this problem for years until I stumbled on the solution elsewhere.

    #199882
    Robin W
    Moderator

    bbpress does not have fixed separators – it has default ones.

    you can change simply by putting this in your child theme functions file or using code snippets plugin

    function custom_bbp_sub_forum_list() {
      $args['separator'] = 'whatever you want' ;
      return $args;
    }
     add_filter('bbp_after_list_forums_parse_args', 'custom_bbp_sub_forum_list' );
    

    You also seem to be confused by templates. Theme and plugin templates are exactly that and designed to be changed if wanted. With bbpress you simply follow

    Step by step guide to setting up a bbPress forum – part 3

    #199866
    tapiohuuhaa
    Participant

    I had problems with fixed separators in source. I edited the core code, but is there any other way?
    See my changes here:

    Get rid of fixed separators

    #199828
    atcreat
    Participant

    I created a site using buddypress. The shortcodes like [bbp-login], [bbp-register], [bbp-lost-pass] not working. It just shows the shortcode. I tested it with the theme Twenty Seventeen and NO other plugin installed. WordPress 5.1.1, PHP 7.3 (tested also with 5.6 and 7.2), and Buddypress 4.2.0.
    You can see it here: https://bbpress.at-creation.ch/login/
    Thanks for your help.

    #199772
    ckriegel
    Participant

    Hi, i met this issue, and for future ppl who would face the same problem, here is a simple fix that worked for me : http://zzlatev.com/bbpress-404-header-in-users-profiles/

    it’s an issue with 404 being catched and not letting bbpress show the profile page, evenif it exists. You can add this in the theme function file :

    function bbp_fix_users_404_headers() {
        if ( ! function_exists( 'bbpress' ) ) return;       
        $bbp = bbpress();
    
        if ( !empty( $bbp->displayed_user ) && is_404() ) {
            global $wp_query;
            $wp_query->is_404 = false;
            status_header( 200 );
        }
    }
    add_action( 'wp', 'bbp_fix_users_404_headers' );
    budget101
    Participant

    @lucio – I had the same issue, I wanted my topic list to appear above my subforums, here is the easy fix.

    go to> wp-content>plugins>bbpress>templates>default>bbpress

    Find content-single-forum.php

    select lines 28-32:

    
    		<?php if ( bbp_has_forums() ) : ?>
    
    			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
    
    		<?php endif; ?>

    Find these lines:

    		<?php if ( bbp_has_forums() ) : ?>
    
    			<?php bbp_get_template_part( 'loop', 'forums' ); ?>
    
    		<?php endif; ?>

    Paste the 3 lines selected above UNDERNEATH those lines (Line #50)

    #199767
    Robin W
    Moderator

    ok, that is beyond free help, but in essence you’ll need to amend templates for

    loop-single-forum
    loop-single-topics

    see

    Step by step guide to setting up a bbPress forum – part 3

    item 3

    #199690

    In reply to: larger font size

    Robin W
    Moderator
    div.bbp-template-notice p {
    	font-size: 12px !important;
    }
    #199679
    Ruchik
    Participant

    Hey ,I have this same issue of the shortcode.

    Thank you for helping me out.It will be very helpful for my new project.

    Robin W
    Moderator

    use

    Code Snippets

    and enter any code there

    #199626
    likipadhy
    Participant

    Okay, so what I want is show the topic creation date in freshness column. I understand that I need to edit the template files but what code ll be going to that column, and how we’ll get the date?
    suppose the topic is created on March 24th, 2019 I want to show this date on freshness column.

    #199623

    In reply to: Designing site

    Robin W
    Moderator
    aaron77
    Participant

    Hi all,

    I hope this is the right place to put this but I need some help. A quick backstory I’m working for a startup and before I joined someone made the site for them on WordPress. He left however and I’ve taken over the general running of the site, I have a decent understanding of WordPress because I have messed around with it before but this is the biggest project I’ve been apart of.

    On to the problem they want to add a news section with news from the industry (blockchain). So I’m trying to research how to get that done and most of the plugins I’ve found keep talking about entering a snippet of code into your site to do X or Y. The problem is that the person before me built the site using some plugin I have never seen before.

    Any help would be greatly appreciated.

    #199580
    jaykaybee
    Participant

    I would like to use html in topics that is then reflected in excerpts. There is a plug-in for general WP called Advanced Excerpt that enables this. But I am wondering if it can be done for bbpress excerpts.

    Details:

    In a forum (https://devgo.jeffbelkora.com/collections/articles/resource-list/) I am using some code from https://premium.wpmudev.org/forums/topic/bbpress-topic-excerpts, namely:

    function add_topic_excerpt() {
    echo “<p>”.bbp_get_topic_excerpt( $topic_id, 200).”</p>”;
    }
    add_action(‘bbp_theme_after_topic_title’, ‘add_topic_excerpt’ );

    Unfortunately, the bbpress excerpt does not show active links (html) from the content as I desire.

    Any ideas?

    #199563

    In reply to: size of menu font

    Robin W
    Moderator
    span.bbp-admin-links a {
    	font-size: 24px !important;
    }
    #199556

    In reply to: Lager font

    Robin W
    Moderator

    put this in your custom css

    #bbpress-forums ul.bbp-lead-topic, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results {
    	font-size: 24px !important;
    }
    #199490
    Robin W
    Moderator

    I think this may do it – but I’ve no knowledge of mathml, other than a quick google

    This code is untested, but add this to your child theme function file or use the ‘code snippets’ plugin

    add_filter( 'bbp_kses_allowed_tags', 'rew_add_mathml') ;
    
    function rew_add_mathml ($allowed) {
    	$allowed['math'] = array() ;
    	$allowed['mo'] = array() ;
    	$allowed['mi'] = array() ;
    
    return $allowed ;
    }

    you would need to add lines for other tags required.

    #199476
    Robin W
    Moderator

    change this to

    /*
    // Forum topic count (Stored in postmeta)
    $this->field_map[] = array(
    ‘from_tablename’ => ‘forums_table’,
    ‘from_fieldname’ => ‘the_topic_count’,
    ‘to_type’ => ‘forum’,
    ‘to_fieldname’ => ‘_bbp_topic_count’
    );
    */
Viewing 25 results - 3,751 through 3,775 (of 32,508 total)
Skip to toolbar