Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 3,401 through 3,425 (of 32,517 total)
  • Author
    Search Results
  • #205643

    Different themes use different styling for different reasons.

    If I recall correctly, Twenty Seventeen does not use the text-decoration attribute, but rather uses some kind of text-shadow or bottom-border. It’s a weird anomaly with how that theme decided to do things.

    It’s nearly impossible for bbPress to work perfectly with all themes, but we do try to keep the default styling working well with the themes that come bundled with WordPress.

    This should be solvable with a bit of custom CSS. I’ll create a Trac ticket and see if we can bring this back for you with this theme specifically.

    #205633
    Chuckie
    Participant

    Say I have this in a code block (originally):

    <Talk Number="31" Type ="0" Date="01/08/2018">Are You Conscious Of Your Spiritual Need?</Talk>

    At the time it worked. And right now if I view the post I can see the code correctly.

    But when I edit the post, the HTML gets stripped. Unless I edit the file and have the “text” editor as the active one. Then the text shows wrapped in the code characters.

    But if I edit the post and the Tiny MCE (4.9.6) is active, or I toggle between Text and Visual I get:

    Are You Conscious Of Your Spiritual Need?

    It has stripped the XMl syntax which is frustrating.

    Why is this?

    #205632

    Hey there! Sorry that 2.6 is giving you trouble.

    bbPress roles are somewhat tricky, but not too much has changed, so it shouldn’t be too hard for us to figure it out.

    We’ll need to see the code that you used to make your custom Roles. If you can include it or link to it here, that will be really helpful.

    #205630
    quoctai101
    Participant

    Hi,

    I’m currently using BuddyPress, bbPress, and Image and video gallery from Google Drive (all are latest updated). The plugin “Image and video gallery from Google Drive” provides a shortcodes is [sgdg path=”MyPath”]. I tried installing “bbPress – Do Shortcode” and it worked. However, the javascript file for loading is missing. Anyone can help me out please?

    #205626
    Hammy Havoc
    Participant

    Oddly, the fix results in the same error endlessly looping:

    16. Converting anonymous reply authors (50 through 50 of 50) 100%

    sunspot10
    Participant

    The new bbPress 2.6.0 update implemented yesterday breaks the forum index displayed with the [bbp-forum-index] shortcode.

    1. The above shortcode used to display two levels, not one on bbpress 2.5.14 before the update.
    2. The problem happens on three different sites, so it is not a plugin compatibility issue.
    3. The problem was reported during the 2.6.0 development cycle but ignored:
    https://wordpress.org/support/topic/subforums-not-showing-after-upgrade-from-2-6rc5-to-2-6rc7/

    4. The forums that are displayed are and always have been propertly set to display two levels in the index:

    Showing parent forums and subforums (categories) in forum root: How?

    What I would recommend is modifying bbpress to implement a parameter after the [bbp-forum-index] shortcode such as “showlevels=1-2” or the like. That way users can control how many levels of the hierarchy are displayed in the index.

    This is clearly a bug in 2.6.0 that needs to be fixed. When will it be fixed?

    #205619

    In reply to: Child CSS

    raydelvec
    Participant

    Same problem. I changed the CSS on my forum about a year ago, uploading the custom styles to Active Theme > css > bbpress.css

    Then upon this latest update, they all reverted back.

    It is fixed when you copy/paste the CSS code from that file into either main style.css or the Appearance > Customize > Additional CSS

    I also use Autoptimize which wraps the bbpress.css code into one file.

    I would like to know what’s causing the issue even though this is a workaround.

    #205610

    In reply to: Child CSS

    DigitalGdn
    Participant

    Workaround fix:

    My theme’s bbPress custom styles were in bbpress/css/bbpress.css, I have copied the CSS contents into the main style.css and it is ok now.

    #205596
    agrolsy
    Participant

    after upgrading from 2.6 rc 5 to 2.6 one of my plugins stopped working, with the fatal error Call to undefined function bbp_get_version(). I can’t figure out why, from what I can see that function still exists?

    [14-Nov-2019 08:27:11 UTC] PHP Fatal error: Uncaught Error: Call to undefined function bbp_get_version() in /home/woouser/wordpress/wp-content/plugins/wp-courseware-bbpress-addon/wp-courseware-bbpress-addon.php:222
    Stack trace:
    #0 /home/woouser/wordpress/wp-settings.php(360): include_once()
    #1 /home/woouser/wordpress/wp-config.php(92): require_once(‘/home/woouser/w…’)
    #2 /home/woouser/wordpress/wp-load.php(37): require_once(‘/home/woouser/w…’)
    #3 /home/woouser/wordpress/wp-blog-header.php(13): require_once(‘/home/woouser/w…’)
    #4 /home/woouser/wordpress/index.php(17): require(‘/home/woouser/w…’)
    #5 {main}
    thrown in /home/woouser/wordpress/wp-content/plugins/wp-courseware-bbpress-addon/wp-courseware-bbpress-addon.php on line 222

    here’s the code from the plugin

    
    add_theme_support( 'bbpress' );
    $pluginroot = plugin_dir_path( __FILE__ ); 
    $themeroot = get_template_directory();
    	 
    $bbpressversion =  bbp_get_version();
    
    $ex_aaa = explode("-", $bbpressversion);
    $ex_bbpressversion = $ex_aaa[0];
    Hammy Havoc
    Participant

    When I try the fix on https://bbpress.org/forums/topic/fix-for-phpbb3-to-bbpress-conversion-script/page/2/#post-205592, I get this error on an endless loop:

    Converting anonymous reply authors (100 through 100 of 100)

    #205592
    Hammy Havoc
    Participant

    I get stuck on that loop too:

    Converting anonymous reply authors (100 through 100 of 100)

    Hammy Havoc
    Participant

    Hi everybody!

    I’m having some problems importing from the latest phpBB into the latest bbPress.

    I get the following error:

    1. No passwords to clear
    2. No users to import

    Everything else appears to import as expected.

    #205588
    Chuckie
    Participant

    This works:

    		'video'      => array(
    			'controls' => true,
    			'width'    => true,
    			'height'   => true,
    		),
    		'source'     => array(
    			'src'    => true,
    			'type'	 => true
    		)
    #205587
    PDidee
    Participant

    Since the latest update to 2.6.0 I’ve noticed that I am unable to click into the visual editor on replies to posts. Text tab works but the text area for the visual editor isn’t working at all. I can’t click into the space and type anything there. I’m using the following code to use the visual editor…

    function bbp_enable_visual_editor( $args = array() ) {
    $args['tinymce'] = true;
    $args['teeny'] = false;
    return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' );

    function bbp_tinymce_paste_plain_text( $plugins = array() ) {
    $plugins[] = 'paste';
    return $plugins;
    }
    add_filter( 'bbp_get_tiny_mce_plugins', 'bbp_tinymce_paste_plain_text' );

    function bavotasan_bbpress_upload_media( $args ) {
    $args['media_buttons'] = true;

    return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'bavotasan_bbpress_upload_media' );

    function add_theme_caps() {
    $role = get_role( 'subscriber' );
    $role->add_cap( 'upload_files' );
    }

    add_action( 'admin_init', 'add_theme_caps');

    #205585
    Chuckie
    Participant

    Is this right? I don’t want to blindly add the code so I appreciate confirmation:

    'video'      => array(
    	'controls' => true,
    	'width'    => true,
    	'height'   => true,
    ),
    'source'     => array(
    	'src'    => true
    )

    ?

    #205578
    Chuckie
    Participant

    So I have this code for html tags not showing in topics for non-admin:

    // Stop HTML Tags appearing in bbPress posts for non-admin users
    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,
    		)
    	);
    } 

    I need to add some more tags to this list because my topics now support embedded videos. A user did a topic and it shows as:

    <video controls=”controls” width=”300″ height=”150″>
    <source src=”path; /></video>

    What must I add to this tags array for this?

    Thanks

    #205576
    livefree
    Participant

    In using bbstyle pack, when I have it set to have edit profile in the menu, it refers to this link…
    /users/*username*/edit
    … but I end up with an error page…
    “Sorry, This Page Is Gone.
    The page you are trying to view no longer exists or has been moved. You may try the search form below to find it.”

    I also tried the bbstyle pack shortcode [bsp-profile] and same result as above.

    You asked on another thread…
    What have you got set for dashboard>settings>forums>forum user slugs>user base ?
    It is set to the default… I never changed it…
    users

    I found an old plugin as a workaround, but I would rather not add another plugin, especially one that is not updated for the past two years…
    /plugins/bbp-profile-link-shortcode/

    When I use that plugin, it works fine for profile edit… I put their shortcode in a sidebar widget… and it refers to this link…
    /users/*username*/
    … this link works to reach Profile.

    Here is the problem…

    I have my wp in a sub folder of the domain, WordPress Address (URL).
    And, the Site Address (URL) is the domain root.

    bbstyle pack is using the WordPress Address (URL) … adding the folder to the link string … and not the Site Address (URL)…like this…

    /domain/folder/users/*username*/edit
    … this will not work… “Page is Gone”

    /domain/users/*username*/edit
    … this works.

    Is there a way to change the setting for bbstyle package to use the Site Address (URL) as opposed to the WordPress Address (URL)?

    #205575
    Robin W
    Moderator
    #205570
    Robin W
    Moderator

    this will let you change text if you need it – not as good as having an ‘accepted translation’ but better than English

    add_filter(  'gettext',  'rew_bbpress_translate', 20 , 3  );
    add_filter(  'ngettext',  'rew_bbpress_translate' , 20 , 3 );
    
    function brexit_translate( $translated, $text, $domain ) {
    	if ($domain == 'bbpress') {
         $words = array(
                            
                            'Topic' => 'New-word',
                             'topic' => 'new-word',
             );
         $translated = str_replace(  array_keys($words),  $words,  $translated );
    	}
         return $translated;
    }

    just change what you need and add to in the middle section

    Put this in your child theme’s function file – or use

    Code Snippets

    #205562
    Chuckie
    Participant

    As already mentioned I have the information displayed with the functions code tweak. Thanks for the referral to the plugin though.

    #205546
    Oxibug
    Participant

    Hi There!

    For guys whom using action hook {bbp_forum_metabox}, It was uses ($post_id) and since v2.6.0 they modify the variable into WP_Post object so if you use {$post_id} to get your custom meta values it won’t work and you must modify it to {$post->ID} instead of {$post_id}.

    I extremely recommended to make two functions using {version_compare} with bbp_get_version() to solve this.

    if( version_compare( bbp_get_version(), '2.6.0', '<' ) ) {
        // Use $post_id
        add_action( 'bbp_forum_metabox', array( $this, 'bbp_forum_metabox' ) );
    }
    else {
       // Use $post->ID
       add_action( 'bbp_forum_metabox', array( $this, 'bbp_forum_metabox_GTv260' ) );
    }
    #205529
    pipipi07
    Participant

    Thank you for making it 2.6!
    However, there was a problem after the update.

    I use bbpress in Japanese.
    In ver.2.5, a code that sets the topic title to 20 characters in Japanese was added to functions.php and it worked properly.
    This is the code.

    function title_max_length ($ default) {
    $ default = 20;
    return $ default;
    }
    add_filter ('bbp_get_title_max_length', 'title_max_length');

    But after 2.6, it didn’t work.
    For example, if default = 20, only 6 characters will be reflected in the title in Japanese. If it is half-width alphanumeric characters, up to 20 characters are correctly reflected.

    I know this is a multibyte issue, but I don’t know how to deal with it. Can I change the limit on the number of characters in a title even with multibyte?
    I hope to find a good solution.

    I am not good at English. I’m sorry in terrible English. thank you for reading!

    #205526
    livefree
    Participant

    Also, Robin… I ran along this path because in bbstyle, this shortcode didn’t work…
    [bsp-profile]
    … it leads to …

    …/forumslug/users/email@gmail.com
    And, I get…

    “Sorry, This Page Is Gone.
    The page you are trying to view no longer exists or has been moved. You may try the search form below to find it.”

    #205523
    livefree
    Participant

    I have to use the workaround and can’t use the default edit profile link… which I would prefer …
    the default link is …
    /forumslug/users/emailgmail-c*o*m/edit
    … it doesn’t work

    the edit profile link is…
    …/forumslug/users/emailgmail-c*o*m

    the workaround is this plugin, but I would rather not add another plugin, especially one that is not updated for the past two years.

    Any thoughts on how I could list the edit profile correctly, say, in a widget or with a code?

    #205519
    randrcomputers
    Participant

    Glad im reading tonight as i use same shortcode so will wait for 2.6.1

Viewing 25 results - 3,401 through 3,425 (of 32,517 total)
Skip to toolbar