Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,176 through 17,200 (of 32,501 total)
  • Author
    Search Results
  • #40707
    woodwardmatt
    Member

    Hey All,

    I have installed the bbPress plugin on a few wordpress instances and tend to favour a vanilla install coupled with CSS overrides to provide the look & feel I need.

    On a recent install I have spotted an issue with user profiles. When I try and navigate to the user’s profile (typically yoursite.com/users/<username>) I am receiving a 404 page from WordPress.

    I can browse to another users profile and it resolves fine. The only difference I can see is that the profile which is not working has a username which has spaces e.g. FirstName LastName as opposed to FirstNameLastName.

    Has anyone else had this issue and know if its a genuine bug or a “feature”? :P

    Cheers, Matt

    tony webb
    Member

    I have changed my theme to twenty ten which is supposed to be bbpress friendly but I still can’t get bbpress to run correctly in wp

    I have downloaded the following plugins;

    bbpress login (I assume that I won’t need this now)

    bbpress topics

    bbpress forum

    bbpress reply list

    bbpress view list

    bbpress integration and pasted a line of define code to the correct

    wp config file

    I have no idea where to add them or what is the actual content of the plug in. i.e. I expected the topics plugin to show the actual forum front page but there is nowhere in the wp plugin set up to put this. There is only margins or footers. What I do get is the topic title in the margin.

    What I would like is to see my bbpress forum displayed in my blog as it appears in bbpress but I am unable to set this up.

    What do I need to do to finish the integration process. I can’t find any documentation in bbpress or wp that explains the process. If there is one I am happy to work through it if you send the link.

    #108048
    iftomkins
    Participant

    i’d love to know, too! :)

    #110243
    iftomkins
    Participant

    Yes! I very much want to use bbpress template tags within wordpress theme files. I tried it and get an error. I know the bbpress 2.0 codex will come out soon, and maybe that will help. But in the meantime? Thanks!

    #40678
    tyskkvinna
    Member

    I currently use the shortcode bbp-topic-index quite heavily to display the top list of topics currently being discussed. What I want to do is be able to manipulate how the information is displayed inside of that shortcode.

    Specifically, I want to change the links in the topic title to have the same function as “freshness” (so that when you click on the topic subject it takes you to the most recent post). It’s a feature my users have been asking for…

    Unfortunately I’m having some trouble discerning exactly WHICH file to edit. I’m sure I can take it from there.

    Thanks!

    #110232
    shooo
    Member

    Hello,

    thank you board, I tried, but it doesn’t work.

    I copied this code in my page function.php of my theme. but no widget is created.

    /**
    * bbPress Replies Widget
    *
    * Adds a widget which displays the replies list
    *
    * @since bbPress (r2653)
    *
    * @uses WP_Widget
    */
    class BBP_Replies_Widget2 extends WP_Widget {

    /**
    * Register the widget
    *
    * @since bbPress (r3389)
    *
    * @uses register_widget()
    */
    function register_widget() {
    register_widget( 'BBP_Replies_Widget2' );
    }

    /**
    * bbPress Replies Widget
    *
    * Registers the replies widget
    *
    * @since bbPress (r2653)
    *
    * @uses apply_filters() Calls 'bbp_replies_widget_options' with the
    * widget options
    */
    function BBP_Replies_Widget2() {
    $widget_ops = apply_filters( 'bbp_replies_widget_options', array(
    'classname' => 'widget_display_replies',
    'description' => __( 'balbalbalbalbalbalba.', 'bbpress' )
    ) );

    parent::WP_Widget( false, 'bbPress Reply List 2', $widget_ops );
    }

    /**
    * Displays the output, the replies list
    *
    * @since bbPress (r2653)
    *
    * @param mixed $args
    * @param array $instance
    * @uses apply_filters() Calls 'bbp_reply_widget_title' with the title
    * @uses bbp_set_query_name() To set the query name to 'bbp_widget'
    * @uses bbp_reset_query_name() To reset the query name
    * @uses bbp_has_replies() The main reply loop
    * @uses bbp_replies() To check whether there are more replies available
    * in the loop
    * @uses bbp_the_reply() Loads up the current reply in the loop
    * @uses bbp_get_reply_author_link() To get the reply author link
    * @uses bbp_get_reply_author() To get the reply author name
    * @uses bbp_get_reply_id() To get the reply id
    * @uses bbp_get_reply_url() To get the reply url
    * @uses bbp_get_reply_excerpt() To get the reply excerpt
    * @uses bbp_get_reply_topic_title() To get the reply topic title
    * @uses get_the_date() To get the date of the reply
    * @uses get_the_time() To get the time of the reply
    */
    function widget( $args, $instance ) {

    extract( $args );

    $title = apply_filters( 'bbp_replies_widget_title', $instance['title'] );
    $max_shown = !empty( $instance['max_shown'] ) ? $instance['max_shown'] : '5';
    $show_date = !empty( $instance['show_date'] ) ? 'on' : false;

    // Query defaults
    $replies_query = array(
    'post_status' => join( ',', array( bbp_get_public_status_id(), bbp_get_closed_status_id() ) ),
    'posts_per_page' => $max_shown,
    'order' => 'DESC'
    );

    // Set the query name
    bbp_set_query_name( 'bbp_widget' );

    // Get replies and display them
    if ( bbp_has_replies( $replies_query ) ) :

    echo $before_widget;
    echo $before_title . $title . $after_title; ?>

    <div id="lastreply">

    <?php while ( bbp_replies() ) : bbp_the_reply(); ?>

    <div class="post">
    <h4>

    <?php
    $author_link = bbp_get_reply_author_link( array( 'type' => 'both', 'size' => 80 ) );
    $reply_link = '<a href="' . esc_url( bbp_get_reply_url() ) . '" title="' . bbp_get_reply_excerpt( bbp_get_reply_id(), 50 ) . '">' . bbp_get_reply_topic_title() . '</a>';

    /* translators: bbpress replies widget: 1: reply author, 2: reply link, 3: reply date, 4: reply time */

    printf( _x( $show_date == 'on' ? '%1$s on %2$s, %3$s, %4$s' : '%1$s on %2$s', 'widgets', 'bbpress' ), $author_link, $reply_link, get_the_date(), get_the_time() );
    ?>

    </h4>
    <?php the_excerpt(); ?>
    <div class="clearfix"></div>
    </div><!-- fin de post -->

    <?php endwhile; ?>

    </div><!-- fin du last reply-->

    <?php echo $after_widget;

    endif;

    bbp_reset_query_name();
    }

    /**
    * Update the forum widget options
    *
    * @since bbPress (r2653)
    *
    * @param array $new_instance The new instance options
    * @param array $old_instance The old instance options
    */
    function update( $new_instance, $old_instance ) {
    $instance = $old_instance;
    $instance['title'] = strip_tags( $new_instance['title'] );
    $instance['max_shown'] = strip_tags( $new_instance['max_shown'] );
    $instance['show_date'] = strip_tags( $new_instance['show_date'] );

    return $instance;
    }

    /**
    * Output the reply widget options form
    *
    * @since bbPress (r2653)
    *
    * @param $instance Instance
    * @uses BBP_Replies_Widget::get_field_id() To output the field id
    * @uses BBP_Replies_Widget::get_field_name() To output the field name
    */
    function form( $instance ) {
    $title = !empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : '';
    $max_shown = !empty( $instance['max_shown'] ) ? esc_attr( $instance['max_shown'] ) : '';
    $show_date = !empty( $instance['show_date'] ) ? esc_attr( $instance['show_date'] ) : ''; ?>

    <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
    <p><label for="<?php echo $this->get_field_id( 'max_shown' ); ?>"><?php _e( 'Maximum replies to show:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'max_shown' ); ?>" name="<?php echo $this->get_field_name( 'max_shown' ); ?>" type="text" value="<?php echo $max_shown; ?>" /></label></p>
    <p><label for="<?php echo $this->get_field_id( 'show_date' ); ?>"><?php _e( 'Show post date:', 'bbpress' ); ?> <input type="checkbox" id="<?php echo $this->get_field_id( 'show_date' ); ?>" name="<?php echo $this->get_field_name( 'show_date' ); ?>" <?php checked( 'on', $show_date ); ?> /></label></p>

    <?php
    }
    }

    sorry, I feel as bad as otter. :'(

    #40675
    alleny33
    Member

    I want to browse for apps

    Many “community” forums available on the internet have attempted to create a list of apps that are available for android tablets for sale but they all have on thing in common, poor execution. The list is unintuitive and uninteresting. A very bland list of apps with no description or screenshots-that’s not how I want to browse for apps. starzmart

    #110214
    starofmay
    Member

    Just figured it out. It was a strange setting in my blog template. All is well now. :)

    pumpcat
    Member

    I solve it myself.. It seems that all unpublic forum are classified into private posts in bbp_map_meta_caps(), including hidden. I change some code and it work well. Maybe adding a read-hidden-post in post_type during activating bbpress is better. Thanks so much..

    #107300
    Linesh Jose
    Member

    @anointed Thanks dude :)

    #40648
    Steve
    Participant

    I’ve got a bbpress install which I run as support forum. I sometimes post links to zip files in there with patch fixes on them.

    I was looking at my webstats and noticed :

    a) A huge number of hits on my zip files

    b) A huge increase in bandwith against my website from my own server

    Checking my access logs I see:

    192.168.0.1 - - [10/Nov/2011:06:37:13 +0000] "HEAD /wordbooker/wordbookerdebug200401.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:13 +0000] "GET /wordbooker/wordbookerdebug200401.zip HTTP/1.0" 200 818430 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:29 +0000] "HEAD /wordbooker/wordbookerdebug200402.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:29 +0000] "GET /wordbooker/wordbookerdebug200402.zip HTTP/1.0" 200 818550 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:40 +0000] "HEAD /wordbooker/wordbookerdebug200402.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:40 +0000] "GET /wordbooker/wordbookerdebug200402.zip HTTP/1.0" 200 818550 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:46 +0000] "HEAD /wordbooker/wordbookerdebug200403.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:46 +0000] "GET /wordbooker/wordbookerdebug200403.zip HTTP/1.0" 200 832241 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:46 +0000] "HEAD /wordbooker/wordbookerdebug200403.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:37:46 +0000] "GET /wordbooker/wordbookerdebug200403.zip HTTP/1.0" 200 832241 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:29 +0000] "HEAD /wordbooker/wordbookerdebug200401.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:29 +0000] "GET /wordbooker/wordbookerdebug200401.zip HTTP/1.0" 200 818430 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:45 +0000] "HEAD /wordbooker/wordbookerdebug200402.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:45 +0000] "GET /wordbooker/wordbookerdebug200402.zip HTTP/1.0" 200 818550 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:50 +0000] "HEAD /wordbooker/wordbookerdebug200402.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:50 +0000] "GET /wordbooker/wordbookerdebug200402.zip HTTP/1.0" 200 818550 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:55 +0000] "HEAD /wordbooker/wordbookerdebug200403.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:55 +0000] "GET /wordbooker/wordbookerdebug200403.zip HTTP/1.0" 200 832241 "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:55 +0000] "HEAD /wordbooker/wordbookerdebug200403.zip HTTP/1.0" 200 - "-" "bbPress/1.0.3"
    192.168.0.1 - - [10/Nov/2011:06:38:55 +0000] "GET /wordbooker/wordbookerdebug200403.zip HTTP/1.0" 200 832241 "-" "bbPress/1.0.3"

    So why is bbPress doing this? I did wonder if it was one of the plugins but surely they’d show as external IP addresses.

    #110271

    In reply to: Where is Forums page?

    master5o1
    Participant

    You can use shortcode [bbp-forum-index] and [bbp-topic-index] in any regular page to display the forums and topic listings.

    If you have the nice looking permalinks then you can probably just go example.com/forums/

    #57000
    OPI Axxium
    Member

    I used a hack to the wordpress code. It was some basic php. If you want the code, just let me know.

    #110257
    master5o1
    Participant

    Also, why attempt to use the shortcode in the sidebar when it would be much better to just use the forum list widget?

    pumpcat
    Member

    WordPress 3.1.4, bbpress plugin 2.0

    I want role Participant to view forum/topic/reply with Hidden attribute but not Private,how can I do?

    I try to change some definition manually in bbp_get_caps_for_role() like this:

    case $participant_role :

    $caps = array(

    // Forum caps

    ‘read_hidden_forums’,

    // Topic caps

    ‘publish_topics’,

    ‘edit_topics’,

    // Reply caps

    ‘publish_replies’,

    ‘edit_replies’,

    // Topic tag caps

    ‘assign_topic_tags’,

    );

    break;

    and reinstall wordpress and bbpress, create a Participant account and it works.

    Everything seems OK but only when I access pages like: http://localhost/?forum=a-hidden-forum, it returns a 404 page, not a topic list.

    Other pages like “http://localhost/?topic=a-topic-in-a-hidden-forum&#8221;, “http://localhost/?post_type=forum&#8221; and widges in sidebar return the right contents.

    I also try adding both

    // Forum caps

    ‘read_hidden_forums’,

    ‘read_private_forums’,

    to Participant and as a result, every pages are displayed even “http://localhost/?forum=a-hidden-forum&#8221; and topics in Private forum.

    It seems have something to do with actions in “bbp-init” in which return a wrong string when reaching for perameter “forum”.

    Sorry for not viewing all previous QoA but the most similar topic I’ve found is “Forum Participant role cannot view private forum” but it doesn’t help.

    Is there any way to solve my problem?

    Thanks for any help :)

    #40620
    pschena
    Participant

    Coming to bbPress from WP, I am looking for a way to style a thread on a client 1.03 bbPress forum.

    In WP when using categories, one can set up a category-13.php page.

    This becomes a dedicated template page for all posts with a category ID of 13.

    Is there a way to do the same for forums.php?

    Would love to be able to create forums-13.php so that I can style it as required without breaking other things.

    Is there another way to achieve this sort of thing?

    #78068

    @Landon – This topic is 2 years old and doesn’t pertain to the code for the version of bbPress you’re using. Can you start a new topic and I’ll delete your post here?

    #110256

    Shortcodes don’t naturally work in sidebars. :) Possible your theme has them enabled?

    #110144

    I deleted it because I tested it myself and couldn’t duplicate it, so I knew it wouldn’t matter. :) Thanks anyways for posting though. The mystery continues.

    Elias_Lapp
    Member

    I have a WordPress with WPML plugin and it works ok in all the pages, menus, widgets and plugins.

    Now I added the bbpress 2.0 plugin, and there is no way that WPML can read the language .mo files of bbpress.

    I tried with CodeStyling Localization (another translate plugin) but the bbpress language files are not available. Localization section of WP shows this:

    Textdomain: bbpress

    Versión: 2.0

    Estado: active

    Descripción: bbPress is forum software with a twist from the creators of WordPress.

    Compatibility: Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.

    How can I make bbpress 2.0 will be multilingual as the entire content?

    Thanks!

    #78067
    Landon
    Member

    Ok found a good fix for this!

    in bbp_signature.php

    in function bbp_reply_content_append_user_signature & function bbp_topic_content_append_user_signature

    change

    $signature = bbp_get_user_signature ( $user_id );

    to

    $signature = xprofile_get_field_data( ‘Signature’, $user_id );

    Then in Buddypress profile fields add a field called Signature.

    Bam fixed.

    I even went ahead and added a bbcode parser to the plugin so it works real nice. you can download the full fix here

    http://vigilsoft.net/bbp-signature_buddypress_edition.zip

    #107097

    In reply to: bbPress 2.0 & BBCode

    surrealalien
    Member

    Hey,

    Does this allow BBpress template codes within WordPress posts and pages? I asked about here: https://bbpress.org/forums/topic/using-template-codes-within-wordpress

    If it does, could you offer some guidance on implementing the codes?

    Thanks.

    #40612
    citizenkeith
    Participant

    I’m trying to import one of my standalone forums to the plugin. I use bbpress 1.1 and latest bbpress plugin. I ran the importer and got this error:

    Fatal error: Cannot redeclare class BPDB in /home/forum/bb-includes/backpress/class.bpdb.php on line 39

    I found this thread:

    http://bbpress.org/forums/topic/where-is-the-importer

    Following scribu’s lead, I added this to my bb-config:

    define('BB_DATABASE_CLASS', 'BPDB');

    define('BB_DATABASE_CLASS_INCLUDE', false);

    I got the same errors that he did:

    Warning: Missing argument 2 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Warning: Missing argument 3 for BPDB::__construct(), called in …/forum-svn/bb-settings.php on line 197 and defined in …/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Warning: Missing argument 4 for BPDB::__construct(), called in …/forum-svn/bb-settings.php on line 197 and defined in …/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29

    Fatal error: Cannot redeclare bb_cache_users() (previously declared in …/plugins/bbpress/bbp-admin/importers/bbpress.php:103) in …/forum-svn/bb-includes/functions.bb-users.php on line 39

    When I went back to the importer I see “It looks like you attempted to convert your bbPress standalone previously and got interrupted.” I chose “Continue Previous Import” and still get the error. I went back to bb-config and removed the items that I had added. Now I get this error:

    Fatal error: Cannot redeclare class BPDB in /forums/bb-includes/backpress/class.bpdb.php on line 39

    I believe I tried deep integration at one point and abandoned it. I was running the bbPress Integration plugin, not sure if that has anything to do with it:

    http://wordpress.org/extend/plugins/bbpress-integration/

    Any ideas? I’d be happy to let a developer (JJJ) take a look at things if they’d like to troubleshoot it.

    #40604
    warezjasz
    Member

    Hello, shortcodes works well when I put them on the pages, but when Im trying to put them on the sidebars, its not working.

    Heres the example: http://warezjasz.cal24.pl/

    shortcode: [bbp-forum-index] is on the page and on the sidebar, but working only on the page.

    I tried this on many templates, and its always the same.

    ps: I also have another site, and the whole bbp shortcodes works there very well, even on sidebars, I have no idea what is the reason.

    #108111

    @ebharding – Rather than hardcode the time difference, can you change:

    function bbp_convert_date( $time, $d = 'U', $translate = false ) {

    to

    function bbp_convert_date( $time, $d = 'G', $translate = false ) {

    and report back results?

Viewing 25 results - 17,176 through 17,200 (of 32,501 total)
Skip to toolbar