Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,226 through 13,250 (of 32,504 total)
  • Author
    Search Results
  • #139806

    In reply to: CSS bug?

    Robin W
    Moderator

    As Stephen says move the bbpress.css into your theme and you can mod it withoutn overwriting

    see

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

    for details of how to do this

    #139790
    Stephen Edgar
    Keymaster

    @mistercyril Thanks for that info ๐Ÿ™‚

    At this stage it looks like if you are having this issue of ‘Replies out of order’ (Sometimes after an edit :S) you also have the issue of all replies only having the even CSS class.

    Could you check with your web host what version of PHP your site uses?
    (Either contact them directly or create your own phpinfo.php file and upload it to your host, details here how to create one http://www.phpinfofile.com/)

    #139789

    In reply to: Custom BBCodes?

    matrixino
    Participant

    The problem is I have some BBcodes with multiple vars like this:
    [table3]var1!var2!var3[table3]
    transforming in something like this:
    <table><tr><td>var1</td><td>var2</td><td>var3</td></tr></table>
    I can’t seem to achieve the same thing even if using grouping in regexp with (.*?) and then using $1, $2, $3 to get the texts in between the “!”.

    #139785

    In reply to: Adding profile fields

    s1r0n
    Participant

    also, can somebody tell me where to copy the template files so I can customize bbpress. the information here

    https://codex.bbpress.org/step-by-step-guide-to-creating-a-custom-bbpress-theme/

    admits to being dated

    #139768
    FreeWPress
    Participant

    Hi, i’m registered on your site to test this problem… Is strange problem..

    This issue was only in a single topic template.. please.. Open File content-single-topic.php and backup it..

    On line 28 remove entire this:

    		<?php if ( bbp_show_lead_topic() ) : ?>
    
    			<?php bbp_get_template_part( 'content', 'single-topic-lead' ); ?>
    
    		<?php endif; ?>

    This is only a test to see if anything happens..

    You have another problem.. If i logout from yuor site i cannot view my test topic.. i see only your..

    If i get login i see all..

    #139764
    Stephen Edgar
    Keymaster

    Sorry, hard to keep up with so many posts ๐Ÿ˜‰

    bbPress includes and importer for phpBB and with the size of your forum once you click ‘start’ it should be done in less than 30 seconds ๐Ÿ™‚

    You will lose very little, details of what is not converted is in the links below.

    https://codex.bbpress.org/import-forums/ & https://codex.bbpress.org/import-forums/phpbb

    #139763
    Stephen Edgar
    Keymaster

    Two things:

    1. At this stage Moderators will NOT be able to see the ‘forums’ section in the backend eg. /wp-admin/edit.php?post_type=forum no matter what you try, this is the known bug.
    2. The ONLY way moderators can create new forums is by filling out the fields and clicking submit using the shortcode [bbp-forum-form]
    3. So no matter what you/we do a moderator will not see the forums in the backend.

      That said your moderator user should have had no problems creating forums via the [bbp-forum-form] form.

      As I said I tested this myself before posting above. Can you create a new user, login as that user, logout and log back in is admin (or via separate browsers etc).

      Did this user get the role ‘participant’ assigned to them after they logged in the first time?

      Now promote the user to a ‘Moderator’ and visit the page you created with the shortcode ‘[bbp-forum-form]‘ and fill in and submit the form.

      How’d wee go?

    #139762
    Stephen Edgar
    Keymaster

    Can you try this instead ๐Ÿ˜‰

    Either add this to your themes functions.php or your bbpress-functions.php or download the entire file and install it as a plugin from https://gist.github.com/ntwb/7767761

    add_filter ( 'bbp_get_reply_post_date', ntwb_bbpress_enable_date_translation, 10, 6);
    add_filter ( 'bbp_get_topic_post_date', ntwb_bbpress_enable_date_translation, 10, 6);
     
    function ntwb_bbpress_enable_date_translation( $result, $reply_id, $humanize, $gmt, $date, $time ) {
     
    	$date = get_post_time( get_option( 'date_format' ), $gmt, $reply_id, $translate = true );
    	$result = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbpress' ), $date, $time );
    	return $result;
    }
    #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

Viewing 25 results - 13,226 through 13,250 (of 32,504 total)
Skip to toolbar