Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,326 through 17,350 (of 32,506 total)
  • Author
    Search Results
  • #107347
    spicynodes
    Member

    Are there options for short code [bbp-topic-index]?

    e.g.

    [bbp-topic-index max=7 pagination=off breadcrumbs=off]

    #109921
    mjpg
    Participant

    [WORK-AROUND]

    I used the WP plugin ‘User Role Editor’ (WP not bbp plugin)

    https://wordpress.org/extend/plugins/user-role-editor/

    to add some capabilities to the ‘forum participant’ role.

    These seem to be the extra capabilities required:

    [v] read_hidden_forums

    [v] read_private_forums

    [v] read_private_replies

    [v] read_private_topics

    If set up without the ‘read_hidden_forums’ capability, forums are visible, but not topics. I don’t know if this is real or because I have been switching the hidden/private setting for the forum during testing.

    I have done some basic testing and access/posting/replies/create topic/uploads/subscribe all seem to work OK.

    I guess this could be done simply via some code in functions.php, but I don’t have the time to investigate.

    #109938
    dominornovus
    Member

    In bbp-common-template.php I found:

    // Allow the separator of the breadcrumb to be easily changed

    $sep = apply_filters( 'bbp_breadcrumb_separator', $sep );

    I attempted to apply a filter…

    $sep = 'x';

    add_filter('bbp_breadcrumb_separator', $sep);

    …but it resulted in:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'x' was given in

    #109937
    dominornovus
    Member

    I’ve found a list of hooks and filters for bbPress at:

    /wp-content/plugins/bbpress/bbp-includes/bbp-core-hooks.php

    I’ve also found the bbPress bread crumb function(s) at:

    /wp-content/plugins/bbpress/bbp-includes/bbp-common-template.php

    By combining code from the two, I’ve attempted adding a filter but it’s being ignored:

    function test_args($args) {

    $args = array(

    'sep' => ' x ',

    );

    return $args;

    }

    add_filter('bbp_title','test_args');

    djoep
    Member

    I am also interested in the ability to migrate group forums to bbpress 2.0 plugin (and out of the groups).

    I have managed to set up bp groups so they each have their own forum without having their forum contents displayed at the top level menu by deleting the bp forums page (and removing it from trash).

    I then created a site-forums page for the bbpress site-wide forum by creating a “Site-Forums” page in WP and using the bbpress shortcode bbp-forum-index to list the available forums. I may add other shortcodes later.

    Unfortunately, I am still left with a lot of content under “groups” that were only created to form quasi forums under buddypress internal groups version of bbpress.

    Personally, I really like the idea of having both types of forums available!

    joe

    #109936
    dominornovus
    Member

    I have come across an example of a filter to change the bread crumb separators but I can’t seem to get it to work:

    add_filter( 'breadcrumb_trail_args', 'my_breadcrumb_trail_args' );

    function my_breadcrumb_trail_args( $args ) {

    $args = ‘ → ‘;

    return $args;

    }

    Source: http://themehybrid.com/support/topic/change-separator-breadcrumb#post-22852

    #40311
    dominornovus
    Member

    What I want to achieve:

    I’ve installed bbPress as a plugin for WordPress. I want to make a few simple changes to the bbPress bread crumb function:

    bbp_breadcrumb();

    I need the bread crumb separator to be double right arrows rather than the default single arrow:

    I want to replace > with ».

    I also want to add “You are here:”

    Why I need this:

    I need to match the styling and position the Yoast Breadcrumbs. Yoast Breadcrumbs is installed as a plugin for WordPress. It breaks on bbPress pages.

    What I’ve tried:

    Using conditions and CSS, I disabled the Yoast bread crumbs on bbPress pages. I also disabled the default bbPress bread crumbs but called it just beneath my primary navigation. Effectively, I’ve “moved” the bbPress bread crumbs.

    To change the bread crumb separator I’ve researched JavaScript and jQuery string replacements but I’ve been advised that this is “hacky”.

    My question:

    What’s the conventional way of changing the output of bbPress function?

    I can provide additional JavaScript, PHP and CSS code if required.

    Live demo:

    These two live examples highlights the two types of bread crumbs:

    Yoast bread crumbs: http://www.directsponsor.org/forums/

    bbPress bread crumbs: http://www.directsponsor.org/news/

    #109881
    eraleks
    Member

    Couldn’t find the file :/ Im using the default theme that comes along with the plug-in. Do you by any chance know what it is called?

    Sorry about the hassle but im kind of noob on coding!

    #107095

    In reply to: bbPress 2.0 & BBCode

    antonchanz
    Member

    Version 0.1 of my plugin is now available for download on wordpress.org. Find it here if you want to help test it: https://wordpress.org/extend/plugins/bbpress-bbcode/

    bizwizkid22
    Member

    I solved this by removing the sub-forums… I’m sure there’s a way to do this but, the time to think it over led me to simplify the forum :)

    #40303
    Unsal Korkmaz
    Participant

    Check top of dark section of bottom of pages..

    Example page breadcrumb works normally:

    http://kremim.com/urun/cosmed-daily-shampoo-300-ml-2/

    Forums have problem:

    http://kremim.com/forum/soru-cevap/

    I am using wordpress seo plugin with this code for breadcrumbs:

    <?php if ( function_exists('yoast_breadcrumb') ) {

    yoast_breadcrumb('<div id="breadcrumbs"><p>','</p></div>');

    } ?>

    AWJunkies
    Member

    We are definitely here. I stated my direct contact info earlier in thread. You have a lot of questions and posts so be easier to address them all at once through a messanger. You are correct about the bbpress 1x and not needing the plugin after convert to convert passwords. That is for all other platforms.

    Please contact me directly at:

    skype: AWJunkies

    AIM: AWJunkies

    YAHOO: AWJunkies

    Email: aellis@awjunkies.com

    The phpbb is not currently complete as the file says :) I should have it done next week if nobody has tried to do the converter file yet. I also will be adding and editing a few things for speed.

    #109801
    OAEErra
    Member

    Actually, I need to reopen this.

    I can edit the first post of threads, but can’t edit the replies using the edit button on the post.

    I have tried to change the permalink structure then back again to reset it but it doesn’t work.

    I also posted in this thread:

    https://bbpress.org/forums/topic/editing-topics-and-replies-in-bbpress-20

    Which seems to have a possible solution but im nonethewiser as to where the code coes that is mentioned.

    #107094

    In reply to: bbPress 2.0 & BBCode

    antonchanz
    Member

    Well I’ve got bbCode working in my own forums now by creating a mod of the b0ingball bbcode plugin that also supports bbpress. I’ve requested a repository on wordpress for this and will make it available there as soon as my request is approved.

    Its just an alpha version so far. It works for my site and historic posts imported from SMF, Vanilla and Phorum versions of my sites forum (I’ve been through a load), but I had to mod the quote and url tags from the b0ingball version because they didn’t work properly for me. Hopefully by fixing them for myself I haven’t broken it for anyone else. I’m prepared to do a little work to get this universal.

    #109790
    ThemeFUist
    Member

    Oops, last function (A bit too much cut and pasting):

    function tfuey_bbp_user_can_view_forum() {

    $forum_id = bbp_get_forum_id();

    if (tfuey_bbp_is_premium_forum($forum_id)) {

    if (is_user_logged_in()) {

    if (current_user_can(‘administrator’) || current_user_can(‘bbp_moderator’) || current_user_can(‘whatever’)) {

    return true;

    } else {

    bbp_get_template_part(‘bbpress/feedback’, ‘no-access’);

    return false;

    } //End if

    } else {

    bbp_get_template_part(‘bbpress/feedback’, ‘no-access’);

    return false;

    } //End if

    } else {

    return true;

    } //End if

    } //End function

    **EDIT: I changed this a bit more. The bbp_get_template_part lines aren’t needed on my theme but are when using twenty ten for some reason (or when I tested at least). If you get two messages saying you don’t have access just remove them i’m not going to figure out why this happened.

    #39618
    a2cmedia
    Member

    I would like it so that visitors see the latest post from 2 of my forums on the default page. Is there some code to allow me to do this?

    #107429
    OAEErra
    Member

    @slithx0r

    If using the default theme, where exactly would I add/edit the function ‘bbp_get_topic_edit_link’ with the code:

    $uri .= ‘?edit=1’;

    in bbp-topic-template.php?

    Sorry not the best with php!

    #109792
    OAEErra
    Member

    I found a plugin for “quote” links under posts, but if anyone knows how to add a “New Topic” and “reply” to the top/bottom of the thread page it would be much appreciated :)

    #109661
    spigi
    Member

    OK, in one things I probably make mistake :) I try to install bbP 1.0 theme using 2.0 version. bbP 2.0 use WordPress theme, am I right? (sorry for my stupid question but I’m just started with bbPress.)

    I install Frisco theme (one of this: https://buddypress.org/extend/themes/)

    And I still can’t see “add Topic” button. I try everything, every official theme and nothing :(

    What should I do to have “Add topic” button? Exactly like on this forum :(

    PS. I don’t know why but I’m still have this notice:

    “Your active theme does not include bbPress template files. Your forums are using the default styling included with bbPress.”

    I use Frisco theme, bbPress 2.0, buddyPress 1.5 and WP 3.2.1:

    http://autonomia.nazwa.pl/test/

    Justin Mason
    Member

    Try the bbpress-post-topics plugin. :)

    #109788
    ThemeFUist
    Member

    How about using a metabox on your edit forum page to specifiy if the forum is premium:

    Add this to your forum functions.php and edit the current_user_can bit at the bottom.

    add_action('bbp_forum_metabox', 'tfuey_bbp_support_forum_metabox');

    add_action('bbp_forum_attributes_metabox_save', 'tfuey_bbp_support_forum_metabox_save');

    add_filter ('bbp_user_can_view_forum', 'tfuey_bbp_user_can_view_forum', 1);

    function tfuey_bbp_support_forum_metabox($forum_id) {

    if (tfuey_bbp_is_premium_forum($forum_id)) {

    $premium_checked = ‘checked’;

    } else {

    $premium_checked = ”;

    } //End if

    echo ‘<hr />

    <p>

    Premium Forum:

    <input type=”checkbox” name=”tfuey_bbp_premium_forum” value=”1″ ‘.$premium_checked.’ />

    </p>’;

    } //End function

    function tfuey_bbp_support_forum_metabox_save($forum_id) {

    if (isset($_POST) && $_POST != ”) {

    update_post_meta($forum_id, ‘_tfuey_bbp_premium_forum’, $_POST);

    } else {

    update_post_meta($forum_id, ‘_tfuey_bbp_premium_forum’, ”);

    } //End if

    } //End function

    function tfuey_bbp_is_premium_forum($forum_id) {

    $tfuey_premium_forum = get_post_meta($forum_id, ‘_tfuey_bbp_premium_forum’, true);

    if ($tfuey_premium_forum == 1) {

    return true;

    } else {

    return false;

    } //End if

    } //End function

    function tfuey_bbp_user_can_view_forum() {

    $forum_id = bbp_get_forum_id();

    if (tfuey_bbp_is_premium_forum($forum_id)) {

    if (current_user_can(‘administrator’) || current_user_can(‘bbp_moderator’) || current_user_can(‘whatever_you_want’)) {

    return true;

    } else {

    return false;

    } //End if

    } //End if

    } //End function

    Leave the forum public and if the premium forum metabox is ticked and the user doesn’t meet the required criteria they will get a “You do not have permission to view this forum” message.

    PS. Untested outside my own site plugin and unnecessary bits have been removed but you should get the gist.

    PPS. Code doesn’t paste too well here apologies if it looks all over the place.

    Steveorevo
    Participant

    Just wanted to let everyone know that I’ve released my Search bbPress 2.0, a unified search plugin. It has the following features:

    * Unified search extends WordPress native search to bbPress 2.0 content

    * Corrected hyperlink search results to the actual forum/topic/reply so that users can participate in the forum right away.

    * Fixes bbPress login widget typo for all languages (the Log in button)

    I’ve had this on my site for a while for testing (it is working great!) but have just submitted it to the WordPress.org repository. Hopefully if will appear soon. I also submitted a bug report to bbPress trac about the typo and how I performed search a while back (but a little too late for 2.0 release), so hopefully these items will be corrected / become native in future releases! Rather then wait for the repository, feel free to download it from my new site (free):

    http://serverpress.com/products/search-bbpress/

    If you like it, please let others know and/or tweet about it! My site is brand new, so any traffic would be greatly appreciated. Donations would be to just take a moment to review my other wares. :-)

    Thanks!

    Steveorevo

    #108216
    Dan Milward
    Member

    I don’t suppose you’re a programmer willing to join the team :D

    To be honest folks, I’d say that based on all the feedback there is another days worth of work. But I can’t guarantee we’re going to be able to put that day aside until later next week or the week after. Our #1 priority right now is the next getshopped.org update.

    So if there are any hard core devs out there that love open source… let me know!!

    #109885
    spicynodes
    Member

    Sorry, I searched before, but just saw that user sulliwane2 asked a similar question 4 weeks ago in https://bbpress.org/forums/topic/bbpress-20-shortcodes

    Adding a few arguments would be very useful!

    #40286
    spicynodes
    Member

    Are there options for short code [bbp-topic-index]?

    e.g.

    [bbp-topic-index max=7 pagination=off breadcrumbs=off]

    If not, a few arguments would be a welcome addition to this and other short codes.

Viewing 25 results - 17,326 through 17,350 (of 32,506 total)
Skip to toolbar