Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,051 through 14,075 (of 32,503 total)
  • Author
    Search Results
  • #135481
    stuudio
    Participant

    I have exactly the same problem. Can someone please help?

    Thank you.

    #135472
    VC1541
    Participant

    Solved it with the following code in my theme’s function.php:

    add_filter(‘bbp_current_author_ip’, ‘my_anonymize_ip’);

    function my_anonymize_ip($retval) {
    $retval = ‘0.0.0.0’;
    return $retval;
    }

    I found out that the filter “bbp_current_author_ip” is called by bbp when creating a new topic/reply.

    marketmynovel
    Participant

    I am extremely frustrated with a recent install of bbPress and BuddyPress.

    My understanding is that, when you create a forums page with the same name as the bbPress forum slug, this page will show the list of forums.

    Mine did not. I finally used a short code on a new page and it gave me a list of forums – though the formatting leaves a lot to be desired.

    Unfortunately, every time you click a forum link on the page, it takes you to the listing of forums. You can never access the individual forums to post questions or comments.

    Thoughts on how to fix this?

    bbPress 2.3.2
    BuddyPress 1.8
    WordPress 3.5.2
    Responsive theme

    http://dev.brownfieldagnews.com/

    dbungard
    Participant

    There must be a way to do this. I am in includes/common/template-tags.php

    I see:

    /** URLs **********************************************************************/
    
    /**
     * Ouput the forum URL
     *
     * @since bbPress (r3979)
     *
     * @uses bbp_get_forums_url() To get the forums URL
     * @param string $path Additional path with leading slash
     */
    function bbp_forums_url( $path = '/' ) {
    	echo bbp_get_forums_url( $path );
    }
    	/**
    	 * Return the forum URL
    	 *
    	 * @since bbPress (r3979)
    	 *
    	 * @uses home_url() To get the home URL
    	 * @uses bbp_get_root_slug() To get the forum root location
    	 * @param string $path Additional path with leading slash
    	 */
    	function bbp_get_forums_url( $path = '/' ) {
    		return home_url( bbp_get_root_slug() . $path );
    	}
    
    /**
     * Ouput the forum URL
     *
     * @since bbPress (r3979)
     *
     * @uses bbp_get_topics_url() To get the topics URL
     * @param string $path Additional path with leading slash
     */
    function bbp_topics_url( $path = '/' ) {
    	echo bbp_get_topics_url( $path );
    }
    	/**
    	 * Return the forum URL
    	 *
    	 * @since bbPress (r3979)
    	 *
    	 * @uses home_url() To get the home URL
    	 * @uses bbp_get_topic_archive_slug() To get the topics archive location
    	 * @param string $path Additional path with leading slash
    	 * @return The URL to the topics archive
    	 */
    	function bbp_get_topics_url( $path = '/' ) {
    		return home_url( bbp_get_topic_archive_slug() . $path );
    	}

    I figure there MUST be a way to add the forum to the topics URL. I’m doing this because I have a action based upon the URL string and need to have all things on that forum associated with that at a URL level. I’m more of the design end than the development end of things and though I see it there I cannot seem to bridge the gap.

    I was also reading: https://bbpress.trac.wordpress.org/ticket/2258 – has there been any progress here?

    Customizing this has taken much longer than expected & I’d like to resolve this. Any thoughts would be appreciated.
    TY

    #135445
    dbungard
    Participant

    I am in includes/common/template-tags.php

    I see

    
    /** URLs **********************************************************************/
    
    /**
     * Ouput the forum URL
     *
     * @since bbPress (r3979)
     *
     * @uses bbp_get_forums_url() To get the forums URL
     * @param string $path Additional path with leading slash
     */
    function bbp_forums_url( $path = '/' ) {
    	echo bbp_get_forums_url( $path );
    }
    	/**
    	 * Return the forum URL
    	 *
    	 * @since bbPress (r3979)
    	 *
    	 * @uses home_url() To get the home URL
    	 * @uses bbp_get_root_slug() To get the forum root location
    	 * @param string $path Additional path with leading slash
    	 */
    	function bbp_get_forums_url( $path = '/' ) {
    		return home_url( bbp_get_root_slug() . $path );
    	}
    
    /**
     * Ouput the forum URL
     *
     * @since bbPress (r3979)
     *
     * @uses bbp_get_topics_url() To get the topics URL
     * @param string $path Additional path with leading slash
     */
    function bbp_topics_url( $path = '/' ) {
    	echo bbp_get_topics_url( $path );
    }
    	/**
    	 * Return the forum URL
    	 *
    	 * @since bbPress (r3979)
    	 *
    	 * @uses home_url() To get the home URL
    	 * @uses bbp_get_topic_archive_slug() To get the topics archive location
    	 * @param string $path Additional path with leading slash
    	 * @return The URL to the topics archive
    	 */
    	function bbp_get_topics_url( $path = '/' ) {
    		return home_url( bbp_get_topic_archive_slug() . $path );
    	}
    

    I figure there MUST be a way to add the forum to the topics URL. I’m doing this because I have a action based upon the URL string and need to have all things on that forum associated with that at a URL level. Any ideas?

    #135444
    yanseo
    Participant

    Add the following code to your functions.php

    
    function forum_icons() {
    	if ( 'forum' == get_post_type() ) {
    		global $post;
    	    if ( has_post_thumbnail($post->ID) )
    	    	echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft'));
    	 }
    }
    add_action('bbp_theme_before_forum_title','forum_icons');
    

    Hope it helps 😉

    #135426
    Rachel Biel
    Participant

    BBpress has reduced the text editor to a minimal one that is really sub-par, in my opinion. I would really like to use something like a TinyMCE version that works for all of the users. There is this one, set up for bbpress, but only authors and above see it: http://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/

    We are an arts org and we need to have good ways to share visual content. I loaded GD BBPress Attachments which is fine for uploading images and docs, but you can’t insert them into the text: http://www.dev4press.com/plugin/gd-bbpress-attachments/

    I found this one: http://premiumsoftware.net/CLEditor/Index, but it’s not as nice as the TinyMCE ones that I’ve used and it shows the bbpress one (the minimal one) right above it, so that is confusing, too. Do you have any recommendations of what would work well for us?

    Site: http://www.tafaforum.com/
    We’re using the latest updates of bbPress, etc.

    I’m pretty savvy (even though I don’t write code) and I don’t even know what “ol” means, much less the other artists who are using our forum…

    Rachel Biel
    Participant

    I have a problem and I don’t know if it is related to BuddyPress or BBPress and it’s made it very confusing for our users. The same thread shows up in the three pages: Activity Streams, Group Home Page and Group Forum Page. I have deactivated the sitewide Forums as I think it is confusing enough without it. So, we are focusing on having Group topics and discussing within them. But, because the thread shows up in all three places and can be replied to in any of them, one would think that the replies would follow through on all of the pages where the thread is displayed.

    I think that this might have something to do with nested replies. They show up on the Activity Streams (if one replies on that page) and on the Group Home page, but they don’t follow through on the forum. You can see it here: http://www.tafaforum.com/user-groups/blogging-general/ Members are supposed to register their blogs on the Topic page of the forum: http://www.tafaforum.com/user-groups/blogging-general/forum/topic/register-your-blog-here/ Most did not understand that they should go to their page and just added their blogs to the Home page of that group. I replied with “Added” for the ones that I added to the RSS Feed (http://www.tafaforum.com/tafamemberblogs/) But, my “Added” reply does not show up on the Forum Topic version of the same thread.

    Any suggestions on how to deal with this? It makes things very confusing.

    I don’t want to mess with code so if you have suggestions, please make them for what can be done within the BBPress or BuddyPress options….

    #135424
    designerdougm
    Participant

    I’ve been digging around in the code and it seem like it’s impossible to make a user type that can view a forum but not post in it. Am I missing something?

    It seems like a user’s ability to post/reply is global. Is there any way to quickly accomplish this?

    My goal:

    A user type that can view public and private forums, but only post in public.

    I was originally attempting to add a new forum type, but quickly realized it was out of scope for the timeframe I’m looking to accomplish this in. That said, regardless of whether or not I add a new forum type, or repurpose existing types, I’m at a brick wall if there’s no way to check posting privileges in an individual forum. Has anyone tackled this issue already? I love the simplicity of bbPress and really want to avoid having to use a more fleshed out forum package, but this is a very necessary feature.

    #135400
    Hansaplastique
    Participant

    This “topic” was also discussed in an older (2 years old) Post.
    But no clarification how “safe” it is to remove the mod_security rule for particular bbPress links (which ones, anyone?).

    #135399
    Hansaplastique
    Participant

    Since bbPress sanitizes a post, is it save to disable the mod_security rule (for forum pages only) concerning the SQL injection rules?

    (what do you do on this forum?)

    #135398
    Hansaplastique
    Participant

    Alright found the cause of this issue: mod_secure is catching it 🙁

    Any way to make this work without compromising security?
    (ie. the bbpress.org server seems to be fine with posting this)

    #135396
    Hansaplastique
    Participant

    FYI: I have looked at Debugging in WordPRess.

    I did install the “debug bar” but the amount of queries and info after a post is not telling me why it did not post.

    Are there other factors that can make it that such a post will not be posted?
    (ie. mod_secure on the webserver, etc – any logs I can snoop through, etc)

    #135394
    Hansaplastique
    Participant

    One step further: if I try to submit this code in my test environment (local network), it works just fine.

    Does anyone have an idea how to debug/approach this issue?

    #135381
    Hansaplastique
    Participant

    Since that worked just fine here, I’ll have to blame my own editor 🙂
    (I’m using a rich editor, not TinyMCE)

    If I send “rich” content to BBPress (ie. HTML), what would the proper formatting be for code?

    #135380
    Hansaplastique
    Participant

    Well after playing with this issue for several hours I have narrowed the problem down to this;

    If I try to post the following trivial example code example:

    update project_management set prj_first_activated = CURRENT_DATE;

    the post will not be posted (I guess trying that here will help get insight – if it behaves the same, then I know that there is a good chance that it’s BBPress related).

    If I leave the “=” out of the code however, it posts just fine.

    #135378
    Hansaplastique
    Participant

    I have a section in my bbPress Forums (bbPress 2.3.2 + WordPress 3.5.2) related to SQL.
    So … users will post SQL example code, but it appears bbPress is simply rejecting the entire post, without even a warning.

    Is this a “standard” filtering by bbPress (to avoid injections)?
    Is there a way around this limitation?
    Does it involve only a few keywords/characters?

    (Yes; I did try Google and searching this forum)

    Any help or insight would be very much appreciated 🙂

    #135374
    @mercime
    Moderator

    @janhoos to control page titles in bbPress pages, add to your stylesheet:

    body.bbpress h1.entry-title {
    // your styles here
    }
    #135369
    RiGoRmOrTiS_UK
    Participant

    I would really like to get the @username displayed under a person’s name next to the avatar; the same as these forums; some of my forum users have changed their display names and its making it less user friendly when people try to use @username to get someone’s attention through mentions.

    I have read all the info from @johnjamesjacoby above; but it kinda went over my head; ideally I’d love to know exactly what php file to edit and what code to insert and at what specific line/area of said PHP file 🙂 if possible!

    Hope someone can help! thanks!

    #135366
    Travis
    Participant

    I had to add another line to get this working:

    add_theme_support( 'post-thumbnails', array( 'forum' ) );
    add_post_type_support('forum', 'thumbnail');
    
    #135364
    wghyzer
    Participant

    The short code [bbp-forum-index] displays an entire list of forums while the side bar widget bbPress List can be made to display just the Forum root. Is there a way to either make the [bbp-forum-index] display just the forum rootlist or can the widget bbPress List be made to display on a page?

    Thank You

    #135359
    jwondrusch
    Participant

    After much trial and error, I’ve come to a solution that retains permission control and shows the first post when using Wishlist Member with bbPress:

    
    // Create a new filtering function that will add our where clause to the query
    add_filter( 'posts_where', 'your_filter_where', 99 );
    function your_filter_where( $where ) {
    
    	global $post;
            
            // Limit to posts so it's not ruining permission queries all around the site.  You could also check user level if you need further specificity.
    	if( get_post_type( $post->ID ) == 'topic' ) {
    
                    // The Solution: Match based on post id AND parent id.  The admin query did this, the user query did not, so we do a simple search and replace to make it happen.
    		$search = $wpdb->prefix . 'posts.post_parent = ' . $post->ID;
    		$replace = '( ' . $wpdb->prefix . 'posts.post_parent = ' . $post->ID . ' OR ' . $wpdb->prefix.'posts.ID = ' . $post->ID . ' ) ';
    		
    		$where = str_replace( $search, $replace, $where);
    
    	}
    
    	return $where;
    }
    

    Due to the way that WLM obfuscates their code, it’s impossible to know exactly HOW they are re-constructing queries, but this is a quick starting point for anyone looking to solve the issue of WLM not showing bbPress’s first post in a topic to users.

    Hope it helps!

    Jonathan

    #135351
    Developer ICAN
    Participant

    Hi,

    Is it possible to add a forum to my WP sites existing category list? I’d see this as just adding the categories box as you see in the post admin screen to the forum admin screen?

    This is what i’m trying to do ..

    I have posts on my site that represent the stages in a pregnancy (1-40). Rather than using a shortcode to add a forum to each of these posts (40 of them and possible more), i was thinking i could just add something to the template of the post to pull all forums that have been added to the category this post has been added to?

    Is this possible anyone?

    Thanks for any help in advance!

    #135342

    In reply to: Color my forums

    yguvvala
    Participant

    Hi Tecca,

    That didnt work. changing this codes doesnt reflect any changes on my forums page. in my Godaddy account i am changing this under

    webroot / wp-content / plugins / bbpress / templates / default / css / bbpress.css

    if you think am editing wrong file please let me know.

    #135341

    In reply to: Color my forums

    Tecca
    Participant

    In your bbpress.css file, change the background of each of these:

    .entry-title {
    background: red;
    }
    
    #bbpress-forums div.odd,
    #bbpress-forums ul.odd {
    background: yellow;
    }
    
    #bbpress-forums div.even,
    #bbpress-forums ul.even {
    background: green;
    }

    Just change those color names to hex codes to make them look a bit better.

Viewing 25 results - 14,051 through 14,075 (of 32,503 total)
Skip to toolbar