Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,601 through 10,625 (of 32,511 total)
  • Author
    Search Results
  • #152242
    Robin W
    Moderator

    @johnjack

    There seems to be several symptoms, some see topics not showing just replies, some has 404 errors wherever they are (topics, replies even forums), and some have issues with child forums.

    At the moment the scenario is that since bbpress on a default theme doesn’t have these issues, then it is likely that it is a combination of wp4.0, bbpress AND one or more others.

    Plugins that use code relying on searches are definitely one area, I suspect themes that look or rely on post types are another. You issue may be a third.

    You seem to have disabled plugins, but have you used a default theme such as twentytwelve?

    I have bbpress 2.5.4 running with twentyten and a top forum of category, a sub forum with that forum as parent, and a sub forum of that subforum all displaying fine.

    If I can replicate a scenario, I can start to see if the issue is the one I’m looking at.

    #152228
    Robin W
    Moderator

    the following will disable the toolbar for all but admins

    //disable toolbar for non-admins
    if (!current_user_can('manage_options')) {
    show_admin_bar(false);
    }

    put this in your function file

    see

    Functions files and child themes – explained !

    The you can add a widget login to the sidebar

    Dashboard>appearance>widgets and look for (bbpress) login widget

    You can also add logins to the menu see

    Layout and functionality – Examples you can use

    #152190

    In reply to: Duplicate Breadcrumbs

    Robin W
    Moderator

    Glad you found some stuff I have written useful

    Unfortunately to get to the level you want to you will need to start dabbling with code

    Functions files and child themes – explained !

    should help you.

    Breadcrumbs

    but hiding the breadcrumbs per the directions didn’t work for some reason.

    You’d need to tell us what you did to help you further

    Forums name

    That initial breadcrumb belongs to your theme, so you’ll need to query it with your theme provider.

    Any idea how long it’s going to be before Live Preview is ready for prime time?

    that code is written by a private individual, so no-one but him can say when it would be live, and I don’t know if it works !

    Finally, how do I make the posts and the editor wider. Is that CSS controlled by my theme or bbPress?

    theme !

    #152184

    Topic: Duplicate Breadcrumbs

    in forum Themes
    K-Path
    Participant

    WordPress 4.0 running Montezuma theme.
    bbPress Version 2.5.4
    Site location:
    http://ecopsi.org/forums/

    Breadcrumbs
    Including the theme I have three sets of breadcrumbs with the WP theme breadcrumbs at the top and which follow the forums well enough. Below are of course the two bbPress breadcrumbs. I want to hide both the bbPress breadcrumbs. The one immediately above the forums and the partial one on the right next to the search box.

    I found some helpful things here

    Layout and functionality – Examples you can use


    and here

    bbPress Styling Crib

    Unfortunately the directions assume expertise beyond mine. I was able to do things like float [subscribe] to the right of the console but hiding the breadcrumbs per the directions didn’t work for some reason. My php kung fu isn’t much to brag about.

    Forums Name
    A more experienced person helped me change the name [Forums] to [The EcoPsi Forums] but it only partially worked and didn’t change the name in the primary breadcrumbs at the top. It also didn’t change the name of the root of the forums which is still [Forums]. I want make the [Home] link at the root of the forums go away. It annoyingly tempts me to click thinking I’ll return to the root of the forums but instead takes me to root of the website.

    Finally, how do I make the posts and the editor wider. Is that CSS controlled by my theme or bbPress? Any idea how long it’s going to be before Live Preview is ready for prime time?
    https://github.com/r-a-y/bbp-live-preview/

    Needful Things

    #152183
    Robin W
    Moderator
    #152181
    Jamie Dallaire
    Participant

    Because the site is live, I decided to share one page for both the English and French side for now. But eventually, I would like to have a separate page for each English and French, but I want them both to share the same forum shortcode.

    Jamie Dallaire
    Participant

    Hello,

    I’ve got a simple forum set up using the shortcode. I used the same shortcode on the translated page (French). When bbPress is activated, I have noticed the following issues:

    – The top right language switcher re-directs me to the french homepage instead of the community forums page. If bbpress is de-activated, the language switcher works as advertised. All other pages are fine.

    – The shortcoded forum on the French page does not carry over custom css styles I input with the Simple Custom CSS plugin. Seems like it has to do with the page template I am using. For some reason, the English side automatically uses my theme’s ‘Upcoming Events’ template. I have the option to choose on the French side, but if I pick that same ‘Upcoming Events’ one, the custom css colours do not carry over.

    And lastly, and I believe this is a concern of many. A moderator to the site can not create or modify forums – which I find ridiculous. Any work around to this?

    Any help would be appreciated

    #152176

    In reply to: Title font styling

    Robkk
    Moderator

    @dandr69 the weird title look isnt because of bbpress, its how your theme reacts to long titles.

    and you can put that code i gave you anywhere where you can put custom css,

    a child themes css stylesheet
    jetpacks custom css module if you have jetpack
    if your theme has a custom css area in the appearance settings
    a standalone custom css plugin

    #152175

    In reply to: Title font styling

    dandr69
    Participant

    Hey, i tested with the code in the theme CSS and it works.
    Thank you!

    #152173

    In reply to: Title font styling

    Robkk
    Moderator

    fixing the line height made it look better.

    .title {
    margin-bottom: 5px;
    line-height: normal;
    }

    you can also just make the line-hieght above 21px or just remove line height from the code.

    #152167
    tonydes
    Participant

    @robin-w It’s because the new updated version of my theme contains hard coded fields in the submission page that are irrelevant to the purpose of my website. Hence I have to stick with the older version until a newer update is released which makes those fields optional.

    Brandon Allen
    Participant

    What plugins are you running? Sounds like something else (plugin/theme) may be incorrectly filtering the content and or shortcodes and is causing a conflict.

    #152136
    rob24g
    Participant

    I did everything through wordpress.. I didn’t touch any code

    #152134
    Robkk
    Moderator

    put the original code back to fix your problem

    Brandon Allen
    Participant

    So are you saying that the page works with the shortcode only and with text only, but the two combined fail?

    #152129

    In reply to: Bullets n Numbers?

    Brandon Allen
    Participant

    The code I provided doesn’t mess with the bullets. That’s handled by your theme. You could try something like below, but it hides the arrow bullets for those forum listings.

    .hentry ul ul.bbp-forums-list li i {
        background: none;
    }

    To fix the breadcrumb title, use the below instead.

    function my_change_forum_root_breadcrumb_title( $args = array() ) {
    	$args['root_text'] = 'The EcoPsi Forums';
    	return $args;
    }
    add_filter( 'bbp_before_get_breadcrumb_parse_args', 'my_change_forum_root_breadcrumb_title' );
    #152109
    johnjack
    Participant

    @robin-w I beg to differ a little, the behaviour seems to suggest it is something else going on.

    It is only child forums that seem to be having this issue.
    If a forum is is set up as a child of a forum (set as type category) the result is a 404 Error.
    if that link is broken (the forum has been set to have no parent) then the forum loads.

    The permalink doesn’t change ?forum=general query string is the same for both. This is with all plugins disabled and on different themes.

    There must be something that works differently code wise between the two.
    Seems very odd.

    It has also worked quite happily for the last year on default permalinks with the current plugin setup quite happily.
    Something has changed the method in the way that it works, either through a bbpress release or WordPress 4.0 release

    John

    #152108

    In reply to: Bullets n Numbers?

    K-Path
    Participant

    Dude you are awesome.
    Thank you so much.
    A couple of things: The counts are gone but now the bullets are layered over the names of the forums. Is there a way to leave the main theme’s bullets alone but in the Forum bbPress reverts to generic bullet points that it’s compatible with?
    http://ecopsi.org/forums/

    Also I must have made a mistake with the breadcrumb code.

    // Custom breadcrumb label for bbPress
    function my_change_forum_root_breadcrumb_title( $args = array() ) {
    	if ( ! empty( $args ) ) {
    		$args['root_text'] = 'The EcoPsi Forums';
    	}
    	return $args;
    }
    add_filter( 'bbp_before_get_breadcrumb_parse_args', 'my_change_forum_root_breadcrumb_title' );
    Eric Greenspan
    Participant

    thanks but it does in fact kill the page if I add text above the shortcode. My theme is Divi and I’m on the latest WP and all. Pretty generic actually.

    #152100
    Brandon Allen
    Participant

    You have to trash the forums page where you added the shortcode. Then you have to empty the trash so that the forums page is completely gone. Then forums will display without the shortcode.

    Brandon Allen
    Participant

    It’s both. bbPress is setup to automagically create the /forums page out of thin air. If you’d like to add some other text to this page, you may do that as well. If you do create an actual forums page, as it seems you have, all that’s needed is to add the forums shortcode where ever you’d like the forum index to appear. In this case, just add [bbp-forum-index]. There are a number of other shortcodes that can be used for similar purposes that can be found here https://codex.bbpress.org/shortcodes/.

    #152097

    In reply to: Bullets n Numbers?

    Brandon Allen
    Participant

    The numbers represent the topic/post counts of each individual forum. For instance “Cognition (0, 0)” is equivalent to “Cognition (0 topics, 0 posts).”

    In your theme’s functions.php file you can add the below to remove the counts:

    function my_remove_list_forums_counts( $args = array() ) {
    	if ( ! empty( $args ) ) {
    		$args['show_topic_count'] = false;
    		$args['show_reply_count'] = false;	
    	}
    	return $args;
    }
    add_filter( 'bbp_after_list_forums_parse_args', 'my_remove_list_forums_counts' );

    To change the breadcrumb root add the below code to the same functions.php file as above:

    function my_change_forum_root_breadcrumb_title( $args = array() ) {
    	if ( ! empty( $args ) ) {
    		$args['root_text'] = 'This used to be Forums';
    	}
    	return $args;
    }
    add_filter( 'bbp_before_get_breadcrumb_parse_args', 'my_change_forum_root_breadcrumb_title' );
    #152095
    mpesgt01
    Participant

    I think you may be inferring the import doesn’t ever actually finish?
    If that is the case see the docs here: https://codex.bbpress.org/import-forums/import-troubleshooting/

    Thanks for this link Stephen. It is relaoding again from where it stoped. Fingers crossed 😉

    – Once the import hangs, click stop, take a note of where it was up to, e.g. Converting 11,299 – 11,300
    – Click start again and the import will continue from where it left off

    #152094
    Stephen Edgar
    Keymaster

    Once the import finishes you will be prompted with a link to the repair tools, you need to run each of these after importing so bbPress, you can’t do this until everything is imported.

    Edit: I think you may be inferring the import doesn’t ever actually finish?
    If that is the case see the docs here: https://codex.bbpress.org/import-forums/import-troubleshooting/

    #152087
    Robkk
    Moderator

    discourse like revision log

    shows only when edits occur , shows only number of edits, on hover shows last time ago of edit.

    i had two functions of code that could calculate number of edits on the post.

    1 is the one i have now which calculates from when i inserted the code i believe.

    the other just had a count of previous edit logs, but it had a kind of bug and showed up on all posts with the same number.

    might make a tutorial on this, have to consult i guess robin or stephen if the code is good to use or not.

Viewing 25 results - 10,601 through 10,625 (of 32,511 total)
Skip to toolbar