Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,201 through 17,225 (of 32,519 total)
  • Author
    Search Results
  • #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”, “http://localhost/?post_type=forum” 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” 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?

    #110231

    Copy and paste the code you need into a custom widget like you were doing initially.

    #40590
    surrealalien
    Member

    Hey, pretty simple question, is it possible to use the PHP template codes within WordPress themes? If so, how?

    Also, how about tags inside posts/pages within WordPress, is that possible?

    Thanks.

    #106139
    Hard Seat Sleeper
    Participant

    Here are the steps I just took to install bbpress on a wp install and get a child theme started so I can develop with it. It assumes you have a mirror of your site files on your computer HD. Hopefully it will help someone.

    1) Install plugin on live site.

    2) Download

    /wp-content/plugins/bbpress/bbp-themes/bbp-twentyten

    to your computer, and copy folder and contents to

    /wp-content/themes/

    rename the folder if you want, so you have

    /wp-content/themes/newchildtheme/

    3) turn this into a child theme:

    https://codex.wordpress.org/Child_Themes

    (basically, add a “Template: ” parameter)

    4) Upload this new child theme to your server

    5) In the parent theme, add

    add_theme_support( ‘bbpress’ );

    to functions.php

    5) Upload functions.php to server

    6) Go to

    /wp-admin/themes.php?activated=true

    on your site and activate your child theme

    #40586
    stober
    Member

    Hey guys,

    I’m searching for an option to remove the sidebar from all subpages (topics, posts…).

    On my main forum page is no sidebar, because I use a template there, but on every other page there is a sidebar. Hope you understand what I mean. Just have a look here:

    http://www.abi13-ass.de/?page_id=127

    I tried a few things but nothing worked.

    I hope one can help me :)

    Greetings

    #110230
    shooo
    Member

    oO last replies are on ligne 749 no?

    but thank you, i change ligne 750

    <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' => 60 ) );
    $reply_link = '' . bbp_get_reply_topic_title() . '';

    /* 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><!-- fin de post -->

    <?php endwhile; ?>

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

    and it’s ok :) but I am afraid that the next bbpress update overwrites the change

    thx a lot for your help :)

    #40568
    dreamgrowers
    Member

    How do I password protect a Category? I would like to simply have a single password for a category.

    So for example Category 1 is Public, but Category 2 requires the password, “secretcode45”

    I’m sure this is a simple thing I’m overlooking, but thanks for any help!

    #110229
    Anointed
    Participant

    That is exactly why I mentioned the widget file. If you look closely at the code you will see that the widget code actually does use the wordpress loop.

    Check out line 542 where the arguments for the loop are set followed by a standard WordPress loop format. While the terminology is a little different, the concept of bbPress loops and WordPress loops is exactly the same.

Viewing 25 results - 17,201 through 17,225 (of 32,519 total)
Skip to toolbar