Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,251 through 13,275 (of 32,521 total)
  • Author
    Search Results
  • #139761
    mistercyril
    Participant

    Hello again Stephen,

    so here is what happens…

    SHORTCODE SOLUTION
    I inserted the [bbp-forum-form] shortcode and can see a forum creation form while logged is as KeyMaster. However, once logged in as “Moderator” I only get the following message

    You cannot create new forums.

    PLUGIN APPROACH
    I installed the suggested plugin (which is very straight forward and easy to use BTW) Advanced user capability editing for bbPress.

    Even though options are all set appropriately, the “Forum” menu will not display as long as the user is a “moderator”.

    In order to be as thorough as possible, here are the tests I ran :

    • Changed moderator’s WP user role to each available option (subscriber -> admin) and tested every time
    • Used plugin’s reset to defaults button (essentially disabled everything)
    • Added options to enable creating and editing forums

    What i noticed is that the “Topics” and “Replies” menus react to BBpress user-role settings whereas the “Forum” menu does not. This might seem logical, but in my mind it validates the fact that BBpress roles are not entirely overridden or broken.

    #139755
    Stephen Edgar
    Keymaster

    Change your WordPress settings (/wp-admin/options-general.php) to whatever format you require, bbPress will inherit those settings.

    #139752
    Stephen Edgar
    Keymaster

    Firstly, thanks for the detailed report, it really helps ๐Ÿ™‚

    This is actually a known issue with moderators and the back end.

    The way around this is to use the [bbp-forum-form] shortcode, your moderator/s should have no problems creating new forums from a page setup with this shortcode.

    Tried editing role with Capability Manager Enhanced

    I am not familiar with this tool and it’s compatibility with bbPress.

    A great tool from @johnjamesjacoby is this one Advanced user capability editing for bbPress

    #139751
    mistercyril
    Participant

    Hello,

    I am experiencing BBPress role issues with a WP + BP + BBPress setup.

    I need a “moderator” role to be able to create new forums and edit his own, as per the standard permissions defined here : http://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    Moderator

    Forum Capabilities

    • publish_forums
    • edit_forums
    • read_private_forums
    • read_hidden_forums

    Unfortunately, the “moderator” role doesn’t see the “Forum” menu in the WordPress back-end, and even if its pages are accessed directly, there is a message stating the user does not have permission to accรจs the content.

    So I understand that this may be a permissions issue, but i’ve taken a number of steps to circumvent this, and still no solution in sight :

    • Disable all other plugins and use standard WP theme
    • Upgrade BBpress to V 2.5
    • Tried every single “repair forum” tool in plugin preferences
    • Tried activating-deactivating and reactivating “default user role” setting
    • Tried editing role with Capability Manager Enhanced
    • Tried with a fresh install of WordPress

    From what i’ve gathered on-line, the BBpress team has introduced a new way of storing user roles but there isn’t very much information on how it REALLY works and how to make it compatible with an existing site that upgrades to a new version of BBpress.

    Anyway, has anyone else experienced this? Does anyone know how to solve this issue?

    I would appreciate any input,

    C.

    #139749
    mistercyril
    Participant

    Hello Stephen,

    I can confirm that I have the .even class on every single entry in my forum.

    Furthermore, I get random display orders even when no editing is done. I’ve tried editing with “contributor”, “moderator” and “keymaster” roles but I can’t see any particular pattern, so as far as I can tell I would exclude any correlation with user roles or editing.

    #139748
    Stephen Edgar
    Keymaster

    Do you mean if I have the odd and even classes on the bbpress.css?

    No, in the code I posted above the 2nd last class on the 1st line of each entry has even, every second one of these should be ‘odd’ and I am trying to see if there is any correlation betwen these two issues.

    #139747
    eduardosilva
    Participant

    Hello Stephen, thanks for your feedback

    So far, I just noticed this issue after edits.
    Do you mean if I have the odd and even classes on the bbpress.css?

    #bbpress-forums div.even,
    #bbpress-forums ul.even {
    background-color: #fff;
    }

    #bbpress-forums div.odd,
    #bbpress-forums ul.odd {
    background-color: #fbfbfb;
    }

    I found this on the css, but I’m not sure if this is what you are looking for.
    I didn’t changed any template or php file.

    Thank you! ๐Ÿ™‚

    #139739

    In reply to: CSS bug?

    Stephen Edgar
    Keymaster

    I am not not sure if this is a bug or not, my CSS skills are not that great.

    If we removed it I am not sure how this would affect template compat in other themes.

    I would suggest adding a custom bbpress.css file to your theme with the ‘overflow: hidden’ removed/commented out.

    #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: 12px;
    /*	overflow: hidden; */
    	border: 1px solid #eee;
    	margin-bottom: 20px;
    	clear: both;
    }

    Also if you want to create a ticket on Trac https://bbpress.trac.wordpress.org/ we can look into it further.

    #139738
    Stephen Edgar
    Keymaster

    Your code works fine for me.

    #139736

    In reply to: Custom BBCodes?

    Stephen Edgar
    Keymaster

    This should work for you, just swap the bbcode_table with tabella in each case, and the same for your custom tr/td etc ๐Ÿ™‚

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

    function ntwb_custom_bbcode_table_replace( $text ) {
     
    	$text = preg_replace( '/\[bbcode_table\]/i',      htmlspecialchars_decode( '<table>'  ), $text);
    	$text = preg_replace( '/\[\/bbcode_table\]/i',    htmlspecialchars_decode( '</table>' ), $text);
    	$text = preg_replace( '/\[bbcode_table_tr\]/i',   htmlspecialchars_decode( '<tr>'     ), $text);
    	$text = preg_replace( '/\[\/bbcode_table_tr\]/i', htmlspecialchars_decode( '</tr>'    ), $text);
    	$text = preg_replace( '/\[bbcode_table_td\]/i',   htmlspecialchars_decode( '<td>'     ), $text);
    	$text = preg_replace( '/\[\/bbcode_table_td\]/i', htmlspecialchars_decode( '</td>'    ), $text);
     
    	return $text;
    	}
     
    add_filter('bbp_get_reply_content', 'ntwb_custom_bbcode_table_replace');
    #139735
    Stephen Edgar
    Keymaster

    I can’t seem to reproduce this issue, I can clearly see it @eduardosilva forum thread linked to above.

    Here is the basic layout of the CSS classes of @eduardosilva topic linked above

    1. post-18012 topic type-topic status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-1 user-id-6181 topic-author
    2. post-18014 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-2 user-id-2
    3. post-18031 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-5 user-id-6181 topic-author
    4. post-18037 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-7 user-id-6181 topic-author
    5. post-18046 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-8 user-id-2
    6. post-18029 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-3 user-id-6181 topic-author
    7. post-18033 reply type-reply status-publish hentry even bbp-parent-forum-4 bbp-parent-topic-18012 bbp-reply-position-6 user-id-2
    8. The order currently being shown using bbp-reply-position- is 1, 2, 5, 7, 8, 3, 6 and it should be 1, 2, 3, 5, 6, 7, 8.

      Every post has a class of even when every second post should be odd based on the source code here, this is also something I cannot reproduce. This is also a sitewide issue on all the topics on @eduardosilva forums.

      Anyone else with this issue can you confirm it is also ONLY after a reply has been edited?

      Also do you have odd & even in the CSS classes or all they all even?

    Apposl
    Participant

    Thank you very much! I apologize that I’m a total newbie – does that mean just delete the below part:

    .item {
        width: 16.6%;
    }

    Or add to that something that excludes it for major resolutions?

    #139725

    In reply to: Custom BBCodes?

    Lynq
    Participant

    I know this could be tedious, but how about setting up some wordpress shortcodes for the relevant BBCodes?

    This could work: https://codex.wordpress.org/Shortcode_API

    Good luck!

    #139720
    Haz
    Participant

    thank you for getting back to me so quickly, I did an uninstall and fresh install of bbpress, I made a new forum and a new topic, and I am still getting the same error. Here are the links:

    http://www.aquariumcarebasics.com/
    http://www.aquariumcarebasics.com/forum/ (forum index page, using shortcode)
    http://www.aquariumcarebasics.com/discussion/bamboo-shrimp-care/ (forum page)
    http://www.aquariumcarebasics.com/topic/best-temperature-bamoo-shrimp/ (topic page, with error)

    Warning: Illegal offset type in isset or empty in /home/postpr7/public_html/aquariumcarebasics.com/wp-includes/post.php on line 1060

    Please let me know what you think!

    #139715

    Tried testing on your forum, but your forums disappeared while I was looking around.

    Can you try reinstalling bbPress? I can’t see any reason why get_post_type_object() would fail in any bbPress context.

    #139711

    In reply to: Avatar

    FreeWPress
    Participant

    Hi, problem was in style.css line 1 see down:

    .reply a, a#cancel-comment-reply-link {
        background: url("img/reply.png") repeat-x scroll 0 0 rgba(0, 0, 0, 0);
        border: 1px solid #FFFFFF;
        border-radius: 0 3px;
        box-shadow: -1px 1px 3px #D1D1D1;
        color: #6E6E6E;
        font-size: 11px;
        line-height: 11px;
        padding: 3px 16px;
        position: absolute;
        right: 0;
        text-decoration: none;
        text-shadow: 1px 1px 0 #FFFFFF;
        top: 0;
    }

    Remove entire code and problem was resolved.

    FreeWPress
    Participant

    Problem was in your responsive.css see down:

    @media only screen and (min-width: 1566px) {
    .item {
        width: 16.6%;
    }
    .grid-double {
        width: 33.2%;
    }
    .grid-triple {
        width: 49.8%;
    }
    }

    your media queries is no correct.. remove item width for major resolutions

    #139692
    Lifeischoice
    Participant

    Hello,
    newbie question: Need assistance to change your code above so as to hide replies by the keymaster (admin) only for public or non logged in?

    thanks

    #139680
    matrixino
    Participant

    Hello, after importing from a phpBB forum where I had custom BBCodes I have the problem that they are not changed in actual html.
    I would like to know how can I implement such custom bbcodes in my bbpress installation.

    I did some tries making a custom plugin with something like this inside (this is just an example):

    function bb_table_replace( $text ) {
    $text = preg_replace('/\[tabella\](.*?)\[\/tabella\]/ie', "<table>$1</table>", $text);
    return $text;
    }
    add_filter('bbp_get_reply_content', 'bb_table_replace');

    But I had no luck. It seems however to find my regexp pattern but its replace is wrong, it’s made after the matched pattern (adding to it, instead of replacing).

    Any help?

    #139678
    Robin W
    Moderator

    I disable the toolbar for users – it always looks like an add-on and clashes with the theme style

    I use a sidebar, and put the login widget on it.

    I then customise the login widget as per item 3 of

    Layout and functionality – Examples you can use

    #139675
    Robin W
    Moderator

    crzyhrse – I am in the process of trying to improve the documentation – I started using wordpress & bbPress earlier this year and am still learning. This is community software, and community documentation, so I am trying to do my bit by helping the documentation side, and by spending time on the forum helping others where I can. The step by step guides I am writing are designed to fit the bill of “cohesive simple directions”, but if they are failing or you haven’t found them, then they are not working as planned. Let me know and I’ll try to improve layout and/or content, but I need good feedback to do this.

    The text change suggested by renai42 works (with a small change) if done to the bbpress.css.

    Can I ask you to look at

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


    and the styling crib

    bbPress Styling Crib

    I’ve just tested and added Renai’s css so look there for what to use.

    If you can improve wording or content to help others – please let me know what could be better phrased.

    If it doesn’t work, come back with what you did, and I’ll see if I can help further

    #139673
    ronthai
    Participant

    Hi,
    In posts, my theme only has page-navigation at the bottom.
    I added it also at the top of posts, no problem

    The issue is that now there is also a (sort of) page-navigation at the top of every page in the bbpress plugin part, which I don’t want of course.

    How do I exclude the added code from showing on the bbpress pages (the whole plugin pages for that matter)

    Thanks, Ron
    WP: 3.7.1
    bbPress: 2.5

    Nevermind, solved it:
    SOLVED:
    Had to put it inbetween:

    <?php if ( is_singular('post') ) : ?>
    
    <?php endif; ?>
    #139672
    Robin W
    Moderator

    bbPress can do all the above.

    See

    Codex


    for a step by step guide.

    Can bbpress be configured to require registration before posting?

    Yes, and you may want to set a manual registration if you want to vet who joins. The documentation explains.

    Are there additional plugins?

    Yes, lots of them that’ll let you add stuff to the forum and customise it for you

    #139671
    Yukon Cornelius
    Participant

    @yanseo thanks for the snippet. It works perfectly! Do you have any idea how i would change the code to add the thumbnail for sub forums instead?

    The forum index looks something like:

    PARENT FORUM
    *sub-1
    *sub-2
    *sub-3

    I attached a featured image to each sub forum. I would like those images to show where the asterisk is.

    I tried changing the action in your code to ‘bbp_theme_before_sub_forums’ but it still spits out the thumbnail/featured image for the Parent category.

    Any ideas?

    J

    #139666
    Robin W
    Moderator

    Sorry I can’t see any forums on your site now.

    You can turn breadcumbs off using

    function bm_bbp_no_breadcrumb ($param) {
    return true;
    
    }
    
    add_filter ('bbp_no_breadcrumb', 'bm_bbp_no_breadcrumb');

    add this to your functions file in your theme/childtheme

Viewing 25 results - 13,251 through 13,275 (of 32,521 total)
Skip to toolbar