Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,276 through 13,300 (of 32,585 total)
  • Author
    Search Results
  • #139823
    Robin W
    Moderator

    Yes, add this code to your style.css in your child theme

    .bbp-search-form {
     display:none !important;
     }
    #139822
    Robin W
    Moderator

    Holly,

    bbPress will work out of the box for most implementations. How much you then customise it is up to you.

    Typically you might want to change a little of the styling – that depends on how much styling your existing site has – There wasn’t a link to your existing site in your original post.

    Then you might wish to alter some layout – although the default is pretty standard

    The documentation

    Codex

    will show you what you need to do to set up, and if you already have wordpress, then you could see how well bbPress would suit you in a couple of hours by following the set up guide and creating some test forums.

    #139817
    Haz
    Participant

    Hi all, I am using short code on my forum page, but I have duplicate search boxes on my site.

    http://www.aquariumcarebasics.com/forum/

    My main search box is in the sidebar with is site-wide, and one in the Forum section. I prefer to keep the search box is in the sidebar, as I am using a plugin that will incorporate forum contents in my overall searches.

    Is there any way to disable the search box that appears within the forum on the forum index page?

    I am using a child theme and I would prefer to avoid changing core files because of updates.

    Please let me know, thanks!

    Haz
    Participant

    Hi all, I have an issue that has been baffling me for ages. I’m running twenty twelve, WP 3.7.1, and bbress 2.5.

    I’m using a page for my forum index using the shortcode. I want my forum navigation link to point back to my page with short code, not the slug created by the Forum Root field.

    I have a child theme, and I would like to avoid changing core files because of updates. Is there any way to code the navigation link so it has my choice of address and link text?

    Here is how I’m set up:

    Slug for my forum wp page is” “forum”
    Forums Settings Forum Root: “DO NOT WANT THIS TO BE WHAT THE LINK POINTS TO”
    Forums Settings Single forum slug: “discussion”
    Prefix all forum content is unchecked…my preference.

    Here are the links:

    Forum Index Page: http://www.aquariumcarebasics.com/forum/ (no problem)
    Forum Page: http://www.aquariumcarebasics.com/discussion/amano-shrimp-care/ (no problems)

    But when I’ on the amano-shrimp-care page, for example, the “Forums” link text points back to:

    http://www.aquariumcarebasics.com/DONOTWANTTHISTOBEWHATTHELINKPOINTSTO/

    instead of http://www.aquariumcarebasics.com/forum/.

    I know that if I populate the Forum Root field with the same slug as my shortcode page the forum index and page contents show up, but what I lose is my Page Title Tag. The Page Title Tag generated this way is the default tag from the Forum Root field. I suppose I can live with this, but I want to see if I can sort it out properly.

    Please let me know, Thanks!

    #139813
    selurnatas
    Participant

    Hello, I installed the plugin bbpress, adding a forum page, inserted the shortcode, but my forum is a vertical list, I would like to appear as a horizontal blocking like normal forums. Anyone know how to do this? I use the responsive theme, but i tested with other themes and it does the same exact thing. a little assistance would be cool, for i am thoroughly frustrated.
    My website = places2bee.com

    robgranholm
    Participant

    @mitesh-patel Could I have some help on how to do this with my website? It’s a membership site so right now there’s nothing to see, but can you connect with me and I can give you access?

    I’m trying to adapt the code you’ve given here but this isn’t working.

    body.bbPress #nav > menu-item menu-item-type-post_type menu-item-object-page menu-item-158 sfhover > a {background: none repeat scroll 0 0 #F2F2F2;}

    The site is at http://dev.itarsenal.com right now

    #139808
    Robin W
    Moderator

    You can also use hidden forums to allow only registered users to view

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

    step 5

    or

    https://wordpress.org/plugins/members/

    #139807

    In reply to: layout changes

    Robin W
    Moderator

    quite easy see

    Codex

    where there are step by step guides, and layout examples

    #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.

Viewing 25 results - 13,276 through 13,300 (of 32,585 total)
Skip to toolbar