Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,926 through 12,950 (of 32,585 total)
  • Author
    Search Results
  • #141528
    Anonymous User 5853594
    Inactive

    You’ll have to create a page do display your forums and some forums to fill them. You can find the settings in the admin area under Forums, Topics, and Replies. Settings for the forums can be found under Settings > Forums.

    You could also take al look at the instructions in the Codex to see if you’re missing something.

    #141523
    Will Brownsberger
    Participant

    My office team is complaining that they can’t save topics in draft.

    I thought it must be a bug, but tracked it down to very deliberate code in topics.js.

    jQuery( document ).ready( function() {
        jQuery( '#misc-publishing-actions' ).find( '.misc-pub-section' ).first().remove();
    //  jQuery( '#save-action' ).remove();
    } );

    I can’t find any reference to problems in the forums — is this just a policy choice or screen simplification? Or is there a reason why I should not just comment out that code?

    I’ve tested the topics listings and statistics with the code commented out and saving drafts and all appears to perform correctly.

    Some guidance from developers would be much appreciated.

    #141517
    Anonymous User 5853594
    Inactive

    No, they cannot. Only Moderators and Keymasters can.
    You can find which types of users can do what in the codex, it has an article about user roles and capabilities.

    If you like to change what users can do, you would have to look for a plugin with controls what users can and cannot do.

    Anonymous User 5853594
    Inactive

    It can be done in a roundabout manner by using a shortcode. You insert a topic with the [bbp-single-topic id=$topic_id] tag and voila, you’ve got a post which displays/links a topic.

    #141508
    Anonymous User 5853594
    Inactive

    Not natively, although there are ways to display members of your site/forum.

    BuddyPress is a bit of overkill for just displaying a members list, but if you’ve got an active forum, you might like the addition of its many options (extended profiles, private messaging, user groups come to mind).
    There are probably more plugins who could do it though, you’d have to search the plugin directory for them.

    There are themes (like Twenty Fourteen) which have templates to show members on a page, you could also try that. But you’d have to find a suitable theme or extract the code you need from the theme and add it to your current one (preferably by making a child theme).

    #141507
    avgmatt
    Participant

    I am having the hardest time getting visual buttons on my forum. I will try this. Where are you adding this code?

    #141502
    jules22
    Participant

    I would like to put my search for the forums in my footer.
    <div class=”bbp-search-form”></div>, essentially move this to the footer. I need to echo out this form with php in the footer.

    I tried… echo do_shortcode(‘[bbp-search]‘) and [bbp-search-form]… those 2 shortcodes did not work. However other bbpress shortcodes did work with do_shortcode. Any other options. Or what is the php function that is called to output the search input box ? Thanks Jillian

    #141485
    jernatety1
    Participant

    I’ve been looking all over for the shortcode is there anything to list the members on the forum?

    Thank you

    #141484
    jules22
    Participant

    I would like to put my search for the forums in my footer.
    <div class=”bbp-search-form”></div>, essentially move this to the footer. I need to echo out this form with php in the footer.

    I tried… echo do_shortcode(‘[bbp-search]‘) and [bbp-search-form]… those 2 shortcodes did not work. However other bbpress shortcodes did work with do_shortcode. Any other options. Or what is the php function that is called to output the search input box ? Thanks Jillian.

    #141483
    Hamed.T
    Participant

    i have a php code that help me to add any button in wordpress quicktags toolbar:

    add_action( 'admin_footer-post-new.php', 'pre_add_quick_tag' );
    add_action( 'admin_footer-post.php',     'pre_add_quick_tag' );
    function pre_add_quick_tag() { ?>
        <script type="text/javascript">
            edButtons[edButtons.length] = new edButton( 'pre', 'pre', '<pre>', '</pre>', '' );
        </script>
    }

    now i want this pre button also added in bbpress (not just for admin, i want all users can use this button), any idea?

    ps: i also asked this question here

    #141479
    mosaicrob
    Participant

    Thank you @pekmez!! That is a perfect fix.

    Note, this code is now on line 2266.

    Cheers

    #141475
    Tecca
    Participant

    Here in the Codex: https://codex.bbpress.org/import-forums/mingle/

    Make sure to read the topic that’s linked at the bottom.

    #141474
    phatboydw
    Participant

    I have now also done live tests with all the themes that where in the list and that didn’t seem to repair the issue either. I read somewhere that someone else was having a similar problem but they could see the information in there source code of the page. When I checked that there was nothing, so I don’t think its a css problem but I could be wrong. Willing to attempt what ever, before our other guy just replaces it with something else.

    #141473
    Scheema Digital
    Participant

    Apache2 core log
    [notice] child pid 17210 exit signal Segmentation fault (11), possible coredump in /etc/apache2

    #141471
    DarraghDevEire
    Participant

    Hello, i need help with an issue! I have two images, and two different profile types, for example – if a user is of type profile a, then they will have image a, else they will have image b. I am assuming that this is a simple if/else statement but i am not sure where to inject the code.

    WP Version – 3.8
    BBpress Version – 3.5.1
    URL – http://goo.gl/cP3yq9

    #141466
    avgmatt
    Participant

    Is your forum page just the root page or did you create a page and shortcode?

    #141463
    avgmatt
    Participant

    Thank You for that info. I set up the new directory and file like you mentioned. Do I need to do more or should it adapt.

    I have the new bbPress folder created under the wp-content/themes folder and added the new php file to it.

    Here are the forum pages I am messing with.
    The basic forum root averageoutdoorsman.com/forums/
    The new page using shortcodes averageoutdoorsman.com/ao-forums/

    Nothing has changed in either since I created the suggested files. Do I need to specify the new theme file somehow?

    Thanks for your help.

    Matt

    talkedtv
    Participant

    I password protected my most recent blog post and it is causing my BBPress forum searches (using the search widget on this page) to require the same password used for that post in order to return the search results. If I remove the password, the BBPress search no longer requires the password.

    I opened a support ticket with the theme designer and he insists that it is a problem with the BBPress code rather than the theme. I was hoping someone could attempt to replicate the issue and/or help me solve my problem.

    Thank you!

    #141454
    isopaha
    Participant

    Hey there!

    Yeah, its awesome! Never really liked bbP before I found out a way to layout the forums like that.

    Here’s the way I’ve done it (looked it up somewhere, can’t remember where):

    1. Create subdirectory called bbpress into your theme directory.
    2. Inside the bbpress subdirectory, create a file called loop-forums.php
    3. Place this code inside of it:

    <?php
    
    /**
     * Forums Loop
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    ?>
    
    <?php do_action( 'bbp_template_before_forums_loop' ); ?>
    
    <?php while ( bbp_forums() ) : bbp_the_forum();
    		
    		/* We print the header only if we want to show a category or if it's the first item of a no-parent forum list */
    		if (bbp_is_forum_category() OR !$bbp_forums_noheader)
    			{ ?>
    
    			<ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums">
    
    				<li class="bbp-header">
    
    					<ul class="forum-titles">
    						<li class="bbp-forum-info"><?php if(bbp_is_forum_category()) { ?><a class="bbp-forum-title" href="<?php bbp_forum_permalink(bbp_get_forum_parent_id()); ?>"><?php bbp_forum_title(bbp_get_forum_parent_id()); ?></a><?php } else { _e( 'Forum', 'bbpress' ); } ?></li>
    						<li class="bbp-forum-topic-count"><?php _e( 'Topics', 'bbpress' ); ?></li>
    						<li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li>
    						<li class="bbp-forum-freshness"><?php _e( 'Last Post', 'bbpress' ); ?></li>
    					</ul>
    
    				</li><!-- .bbp-header -->
    <?php 		} ?>
    
    			<li class="bbp-body">
    	
    <?php 		/* If the forum is a category, we're gonna make another loop to show its subforums and sub-subforums as if those were forums */	
    			if(bbp_is_forum_category())
    				{
    
    				$temp_query = clone bbpress()->forum_query;
    				bbp_has_forums('post_parent='.bbp_get_forum_id());
    				while ( bbp_forums() ) : bbp_the_forum();
    				bbp_get_template_part( 'loop', 'single-forum' );
    				endwhile;
    				bbpress()->forum_query = clone $temp_query;
    
    				} 
    					else /* Otherwise, we print the forums the normal way */
    				{	
    
    				bbp_get_template_part( 'loop', 'single-forum' );
    				$bbp_forums_noheader = 1; /* This prevents the header part to be printed again on next post in the loop */
    
    				} ?>
    
    			</li><!-- .bbp-body -->
    
    <?php		/* Prints the footer only if :
    				- it's a category
    				- or if it's the last forum of a no-parent forum list
    				- or if the next forum in the loop is a category */
    
    			if(	bbp_is_forum_category() 
    			OR 	(bbpress()->forum_query->current_post+1) == bbpress()->forum_query->post_count
    			OR 	bbp_is_forum_category(bbpress()->forum_query->posts[ bbpress()->forum_query->current_post + 1 ]->ID)) 
    			{ ?>
    
    			<li class="bbp-footer">
    
    				<div class="tr">
    					<p class="td colspan4">&nbsp;</p>
    				</div><!-- .tr -->
    
    			</li><!-- .bbp-footer -->
    
    		</ul><!-- .forums-directory -->
    
    <?php 	unset($bbp_forums_noheader); /* Needed if we have 2+ no-parent forums with at least 1 category between them */
    		}  ?>
    
    <?php endwhile; ?>
    
    <?php do_action( 'bbp_template_after_forums_loop' ); ?>

    That should do the trick for you! Keep in mind, General, the Guild, Off-Topic etc. that you see in my site, are all categories. Under the categories I’ve made forums where you can actually post. I encourage you to do the same for this trick to work 🙂

    #141450
    Lynqoid
    Participant

    You can use css to make the list items li { display:block; }

    You need to target it with specific class or ids though.

    Good luck!

    #141448
    B
    Participant

    After a little digging, discovered my Custom Post Type Permalinks plugin wasn’t playing nicely with bbPress.

    Problem and solution (albeit temporary) documented here: https://wordpress.org/support/topic/bbpress-topic-links-in-forums-break

    Ultimately, edited the CPTP plugin file directly (ugh) line 290-something

    $parentsDirs = "";
    if( !$leavename ){
    	$postId = $post->ID;
    	if ( !in_array($post_type, array('topic', 'forum', 'reply') ) ) {
    		while ($parent = get_post($postId)->post_parent) {
    			$parentsDirs = get_post($parent)->post_name."/".$parentsDirs;
    			$postId = $parent;
    		}
    	}
    }
    #141443
    B
    Participant

    Hi all,

    Having a slight URL issue. Forums settings / slugs are default, permalink settings are using

    /%postname%/

    Forums URL is:
    http://www.website.com/forums/

    Forums topic URL one level down is:
    http://www.website.com/forums/forum/website-community/announcements/
    … where ‘website-community’ is the category, and ‘announcements’ is the first forum under that.

    Here’s where it breaks. If I hover over a topic, the URL displays as:
    http://www.website.com/forums/topic/website-community/announcements/first-topic/
    … and if I click, I get a 404.

    If I edit the URL manually, it will work as expected, I just have to take out the category and forum name from the url, such as:
    http://www.website.com/forums/topic/first-topic/

    Why are the category and forum titles appearing in the URL, and what’s the best way to fix?

    Thanks in advance!

    #141432
    avgmatt
    Participant

    I really love how your forum is laid out. I have been trying to set mine up similar to that style and can’t get it. I really want the separated categories like that. I kinda got it working with shortcodes on a new page but its not that great. Do you mind sharing how you did yours?

    #141431
    B
    Participant

    @kaliceos thanks for sharing this. Have you ever gotten an undefined variable notice for bbp_forums_noheader?

    if (bbp_is_forum_category() OR !$bbp_forums_noheader) { ?>

    Curious if anyone’s gotten this error when doing a straight copy + paste into loop-forums.php

    #141429
    piccart
    Participant

    Hi guys! sorry but I forgot to pin the notifications for this post so I just realized about your replies..

    it wasn’t very technical actually, but I think it depends a lot on the theme you have.

    if just added a conditional into the class of my page template main content and of the sidebar wrap:

    <?php if (is_bbpress() || is_page('forum')){ echo "forum_layout"; } ?>

    it will have to be added something like this:

    <div class="grid__item main float--left <?php if (is_bbpress() || is_page('forum')){ echo "forum_layout"; } ?>">

    then is all about css, so it depends on yours. but you should be able to override the interested divs, appending your .forum_layout class in this way:

    
    .grid__item.main.forum_layout {
    	width:76%;
    
    }
    
    .grid__item.sidebar.forum_layout {
    	width:24%;
    
    }

    then at the same you can override the normal layout fonts, colours, etc.. if something is not considering your new style, try adding !important in this way:

    width:24% !important;

    hope that’ll help! 😉

Viewing 25 results - 12,926 through 12,950 (of 32,585 total)
Skip to toolbar