Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,451 through 2,475 (of 32,491 total)
  • Author
    Search Results
  • #213880
    hellojesse
    Participant

    I can help, you need to use hooks. If post is created, create a forum like post id of movie review. Then call shortcode with dynamic id of ppost form which is same as pos id of review.

    If you need code, contact me.

    #213877

    In reply to: Image at left of forum

    hellojesse
    Participant

    <img src="img.jpg" style="float:left;">

    #213874
    hellojesse
    Participant

    Discuss with codex of WordPress. add_role function could help.

    #213871

    In reply to: User ranking system?

    chandra08
    Participant

    No code that can I put inside code snippet and insert shortcodes in functions.php?

    Thank you!

    #213869
    chandra08
    Participant

    Hello,
    I want to ask about topic tags, is there any shortcode to display topic tags count? because when I put [bbp-topic-tags] shortcodes, the shortcodes only displaying name of topic tags and if topic tags popular, the topic tags name more larger.

    I want to be like this:
    topic tag1 (5)
    topic tag2 (1)
    topic tag3 (4)
    and so on.

    Is there any ideas?

    Thank You.

    #213864
    Mark Smith
    Participant

    You can go through this link for finding better solution.

    Layout and functionality – Examples you can use

    #213863

    In reply to: BBpress error?

    Robin W
    Moderator

    the last one is the telling one, looks like thismplugin is still active

    C:\Users\Darren\Local Sites\elumine\app\public\wp-content\plugins\unyson\framework\extensions\shortcodes\extensions\page-builder\class-fw-extension-page-builder.php on line 510

    #213862
    Bingo Bongo
    Participant

    Activating bbpress throws errors
    All other plugins deactivated

    bbpress v 2.65
    wp v 5.5
    https://elumine.interconnected.me/
    theme – elumine, and twenty twenty, both up to date.

    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2172
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2176
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2182
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2186
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2190
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘post_status’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2194
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2199
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2203
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-admin\includes\template.php on line 2208
    [20-Aug-2020 08:10:54 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in C:\Users\Darren\Local Sites\elumine\app\public\wp-content\plugins\unyson\framework\extensions\shortcodes\extensions\page-builder\class-fw-extension-page-builder.php on line 510

    Please advise.
    Thanks.

    #213850
    Robin W
    Moderator

    could be down to a failure to close a <div>

    contact me via

    wilsonrobine@btinternet.com quoting this thread

    #213849
    rosbiffer
    Participant

    Is there some way that the theme doesn’t realise the bbp code has finished so doesn’t realise it’s into the footer? Really clutching at straws here

    #213847
    rosbiffer
    Participant

    I think that add-on is just for to enable you to more easily add bbp shortcodes rather than any sort of compatibility. I just don’t understand why, when it’s using the same template as other pages, it breaks the footer display..

    #213846
    Robin W
    Moderator

    hmmm….not sure what to suggest next

    sort of looks like wp-bakery want you to buy an add-on for bbpress shortcodes

    bbPress Shortcodes

    #213844
    Robin W
    Moderator

    and that page is a bakery page – ie a page where the shortcode is in a bakery item ?

    #213840
    Robin W
    Moderator

    and can you look at this

    Step by step guide to setting up a bbPress forum – Part 1

    Items 3 and 8

    Robin W
    Moderator

    loads of plugins still use this, so lots of plugin authors will need to change code 🙂

    phy9pas
    Participant

    I’m running WP 5.5 and BBP 2.6.5

    It seems that WP5.5 has deprcated the method wp_make_content_images_responsive but it is still being hooked in
    /plugins/bbpress/includes/core/filters.php
    lines 194 & 195

    This is causing a warning message to be thrown

    #213798

    In reply to: Indent forums

    Robin W
    Moderator

    I’d try using padding-left instead

    #213793
    p3t3rr
    Participant

    UPDATE:

    I found the issue. 2 weeks back I added the following function to functions.php > child theme, because I wanted to rename the Keymaster to Administrator:

    // change user role name 'Verwalter' to 'Administrator'
    function ntwb_bbpress_custom_role_names() {
    	
    	// Keymaster
            bbp_get_keymaster_role() => array(
                'name'         => 'Administrator',
                'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
            )
    }
    add_filter( 'bbp_get_dynamic_roles', 'ntwb_bbpress_custom_role_names' );
    

    It successfully renamed the role and I was done with the issue. However, it apparently removed all the other default bbpress roles. I thought this function is exclusively for renaming roles as the name suggests.

    I went back and included all other default roles into that function in the child theme (The complete rename roles function can be seen eg here.) Now I see all roles in settings > forum > automatically assign roles. Also in user management I see all forum roles. Also, new forum registrants are automatically assigned to subscriber.

    problem solved.

    p3t3rr
    Participant

    not sure why you need the second bit of code?

    I thought it’s necessary to in case subsribers have the link ‘mysite.com/wp-admin’. However, I just commented the second function out and it seems a subsriber still does not have access to /wp-admin.

    So, I guess

    function disable_admin_bar() {
    	if (current_user_can( 'subscriber' ) ) {
    		show_admin_bar( false );
    	}
    }
    add_action( 'after_setup_theme', 'disable_admin_bar' );

    takes care of both (and second function is obsolete)?

    #213788
    Robin W
    Moderator

    so what code are you using ?

    Robin W
    Moderator

    are the min files copied from elsewhere? or did you create the code?

    #213786
    Robin W
    Moderator

    something strange going on!

    I can only suggest it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    I’d start by taking out any code in your child theme’s functions file !

    Robin W
    Moderator

    not sure why you need the second bit of code?

    Robin W
    Moderator

    if it works, code looks fine, but I haven’t looked at in detail 🙂

    p3t3rr
    Participant

    Hi Robin,

    thank you for your reply. The code in that resource isn’t quite satisfactory but it gave me a head start.

    I came up with the following function to disable the wp toolbar:

    // disable wp toolbar on the frontend of website for role:'subscriber'
    function disable_admin_bar() {
    	if (current_user_can( 'subscriber' ) ) {
    		show_admin_bar( false );
    	}
    }
    add_action( 'after_setup_theme', 'disable_admin_bar' );

    and the following to disable wp-admin:

    // not allow access to wp-admin backend for role:'subscriber'
    function sub_no_read_wpadmin(){  
        $role = get_role( 'subscriber' );
        $role->remove_cap( 'read' );    
    }
    add_action( 'admin_init', 'sub_no_read_wpadmin' );

    Hopefully this is sound. Do you see any problems with this implementation?

Viewing 25 results - 2,451 through 2,475 (of 32,491 total)
Skip to toolbar