Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 10,251 through 10,275 (of 14,146 total)
  • @robin-w

    Moderator

    sorry I don’t understand you sentance

    @robin-w

    Moderator

    so did you copy/paste it – exactly as per my code and what exact errors did you get?

    @robin-w

    Moderator

    Whilst I can see some of your concerns, there are no security concerns that bbpress will let your users access your wordpress site backend – none of us would use bbpress if it had backdoors like that.

    You core issue seem to stem from

    I had to install some bbPress code in my functions file to stop non-administrator profiles from seeing the WordPress main menu at the top of the forum.

    Please explain further? or give us the code you used.

    With that, in having to add code such as this I subsequently shut down my entire site due to adding code the functions.php file that it didn’t like. Not a good situation for me.

    That is a wordpress issue, and if you are not good at coding you should not be editing files ion a live site. You really need a test site

    https://codex.bbpress.org/getting-started/testing-your-bbpress-installation/creating-a-test-site/

    Yes you can set up a separate domain/sub-domain with wordpress and bbpress running, and just show bbpress in this site. BUT you can’t have this administered by the other wordpress site (well at least not at any level of understanding that you would have – you are not ready for multisite 🙂 )

    So either you run one site or two sites. 1 site will not give you security issues if set up correctly in wordpress. 2 sites will mean lots of duplication of usernames, double updating, and more room for error.

    I’d suggest you look strongly at the test site route – this will force you to learn about how a wordpress site is put together, which will allow you to do changes with confidence of more technical knowledge and no risk to live

    Good luck, and do come back and let us know how you get on

    @robin-w

    Moderator

    it’s not the default behaviour.

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    @robin-w

    Moderator

    All plugin writers write code to try and not interfere with each other – but occasionally we fail.

    I’d suggest you post a thread on their support forum to see if they can help.

    Did you try my shorter code – there is a reason for this question !

    @robin-w

    Moderator

    ok, so you need to amend form-topic.php

    Presumimg you can use FTP and use an editor

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

    where %your-theme-name% is the name of your theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-topic.php

    bbPress will now use this template instead of the original
    and you can amend this

    So in form-topic.php you need to amend line 28 from

    <?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
    

    to

    <?php if ( bbp_current_user_can_access_create_topic_form() && (bbp_get_forum_title() == 'other'  ) : ?>
    

    This should then only allow new topics if the user can create a topic and the cforum title is ‘other’ forum

    This is untested, but should work !

    In reply to: bbPress and s2Member

    @robin-w

    Moderator

    not quite sure what your questions is.

    bbpress will assign the default role on first user login – that’s the way it does it – in effect if there is no role it gives the user then default. So when s2member creates the account, you may not see a bbpress role until they have logged in.

    if that isn’t your question, then I’m not sure what you mean by

    However, they still cannot access the forums because a subscription has not been created in s2Member

    Isn’t that exactly what a membership plugin should do??

    bit confused, but please come back and explain some more !

    In reply to: bbPress & tinyMCE

    @robin-w

    Moderator

    not totally sure what you are after – this any good

    https://gist.github.com/ntwb/7797990

    ?

    @robin-w

    Moderator

    so did you try my code???

    @robin-w

    Moderator

    ok – can only suggest it could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    @robin-w

    Moderator

    Try :

    function rew_add_custom_role( $bbp_roles ) {
     
    $bbp_roles['bbp_global_moderator'] = array(
    'name' => 'Globale moderator',
    'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as moderator
    );
    return $bbp_roles;
    }
    add_filter( 'bbp_get_dynamic_roles', 'rew_add_custom_role', 1 );

    @robin-w

    Moderator

    It’s because you haven’t set the moderate primary cap 3rd one down in the list below.

    The full default mod caps are

    // Moderator
    		case bbp_get_moderator_role() :
    			$caps = array(
    
    				// Primary caps
    				'spectate'              => true,
    				'participate'           => true,
    				'moderate'              => true,
    				'throttle'              => true,
    				'view_trash'            => true,
    
    				// Forum caps
    				'publish_forums'        => true,
    				'edit_forums'           => true,
    				'read_private_forums'   => true,
    				'read_hidden_forums'    => true,
    
    				// Topic caps
    				'publish_topics'        => true,
    				'edit_topics'           => true,
    				'edit_others_topics'    => true,
    				'delete_topics'         => true,
    				'delete_others_topics'  => true,
    				'read_private_topics'   => true,
    
    				// Reply caps
    				'publish_replies'       => true,
    				'edit_replies'          => true,
    				'edit_others_replies'   => true,
    				'delete_replies'        => true,
    				'delete_others_replies' => true,
    				'read_private_replies'  => true,
    
    				// Topic tag caps
    				'manage_topic_tags'     => true,
    				'edit_topic_tags'       => true,
    				'delete_topic_tags'     => true,
    				'assign_topic_tags'     => true,
    			);

    you are missing

    'moderate'              => true,
    

    from yours !

    @robin-w

    Moderator

    use

    https://sitecheck.sucuri.net/

    and click the ‘website details’ section of the report

    if it’s wordpress it will say.

    Don’t offhand know what the others appear as

    In reply to: Background Content Box

    @robin-w

    Moderator

    Great – glad you’re fixed !

    In reply to: Background Content Box

    @robin-w

    Moderator

    Also, what profile is bbpress putting there on the left and how do I edit what shows?

    can you post a more detailed explanation – I don’t understand your question !

    In reply to: Background Content Box

    @robin-w

    Moderator

    on your first it is being affected by

    http://olympusnetworkmc.com/wp-content/plugins/bbpress-new-ui//inc/css/dark.css?ver=4.4.2

    change line 1411

    media screen #bbpress-forums div.bbp-forum-content, #bbpress-forums div.bbp-topic-content, #bbpress-forums div.bbp-reply-content {
    padding-left: 5px !important;
    }

    to from 5px to say 30px

    @robin-w

    Moderator

    you can also then style it using

    https://wordpress.org/plugins/bbp-style-pack/

    @robin-w

    Moderator

    on first issue – We need a link to your site to be able to see what is happening

    On second – this will let you display a badge dependant on no. posts – load it and if you like what it does I can give you a piece of code to make it work for user levels

    @robin-w

    Moderator

    @robin-w

    Moderator

    no problem

    @robin-w

    Moderator

    um yes – that’s how I did it 🙂

    Suggest you download the plugin and crack it open to see how it was done

    In reply to: Theme like bbpress.org

    @robin-w

    Moderator

    bbpress doesn’t have theme’s – it uses your sites theme, but sometimes integration is not great.

    Unfortunately your link produces a certificate error (The security certificate presented by this website was issued for a different website’s address.) on the https side, so I didn’t visit.

    If it is just styling rather than function try my plugin

    https://wordpress.org/plugins/bbp-style-pack/
    Otherwise give us a valid link, and I’ll take a quick look

    @robin-w

    Moderator

    @robin-w

    Moderator

    but yes as Pascal says, you do need to list the forums that you want to include

    and I have just updated the plugin for a technical error which should not affect you, but you may want to load the latest version from my site

    http://www.rewweb.co.uk/bbpress-additional-shortcodes/

    @robin-w

    Moderator

    ok, I think I know the problem.

    If you copied/pasted the shortcode from my website, it incorrectly formats the shortcode on your website.

    I’ve now corrected, so if you go back onto my website and copy/paste then it will now work.

    or just type the shortcode in !

Viewing 25 replies - 10,251 through 10,275 (of 14,146 total)