Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 16,176 through 16,200 (of 32,519 total)
  • Author
    Search Results
  • Jarret
    Participant

    Go into your theme for bbPress and look for loop-single-forum.php. On line 24 you will see

    <?php bbp_list_forums(); ?>

    Modify that line to look like

    <?php bbp_list_forums( array ( 'separator' => '<br />' ) ); ?>

    #113487
    New Joerg
    Member

    Hi Jenna (Miniflowers), congratulations :-) But my troubles with bbPress seem to be different: I never used Vbulletin or BuddyPress. As will_c wrote: the error occurs by changing the visibility.

    #44834
    stuartmchugh
    Member

    Just installed the bbpress 2.02 plugin on my site which is WP v3.3.1 – seemed to work ok but on trying to create a new topic (on the site i.e. as a user would) I get the following:

    “Fatal error: Call to undefined function akismet_test_mode() in /mypath/wp-content/plugins/bbpress/bbp-includes/bbp-extend-akismet.php on line 350”

    Not really too sure of the etiquette or whatever of posting links or code but I though this was such a show-stopper that someone else would have come across it – but nothing to be found here or elsewhere… I am also aware that ‘test mode’ may be a major clue, but to what I really don’t know…

    Thanks for any advice

    S

    #113555
    pimarts
    Participant

    I don’t know if this is of any help but to get what I did at SWNK (http://www.swnk.org/forums/) I added the following code to my functions.php:

    function disable_all_widgets( $sidebars_widgets ) {

    // if ( bbp_is_forum() ) {

    if (is_bbpress()) {

    $sidebars_widgets = array(false);

    remove_all_actions(‘bp_register_widgets’);

    unregister_sidebar( ‘bp_core_widgets’ );

    }

    return $sidebars_widgets;

    }

    add_filter(‘sidebars_widgets’, ‘disable_all_widgets’, 1, 1);

    Then I added some CSS to put the login widget above the forum.

    This list needs to be updated, but some are here:

    https://codex.bbpress.org/showcase/

    #113554

    You will need to do some custom development on your end. This isn’t implemented in core (at least not yet) because at the moment each theme/framework handles their layout options differently – so there is no easy way to cover them all.

    You can probably use the code in https://wordpress.org/extend/plugins/bbpress-genesis-extend/ as an example.

    Basically you will want to check for is_bbpress() and if that comes back true then run your code that forces the full width layout.

    #113624
    george1313
    Member

    Resolved. Disregard.

    #44833
    george1313
    Member

    Hoping someone here has the knowledge to help.

    I’m using the bbpress plugin with buddypress/wordpress install. I installed the bbcode plugin to let users use bbcode in the forums. Everything worked great, but now when you insert a youtube video on the forum with the bbpress post toolbar, I get this error:

    YOUTUBE

    Warning: Cannot modify header information – headers already sent by (output started at /home/highhob/public_html/ridecbr/wp-content/plugins/bbpress-bbcode/class_bbpress2-bbcode.php:268) in /home/highhob/public_html/ridecbr/wp-includes/pluggable.php on line 866

    The video DOES POST, but this error comes up first and I need to get it removed and resolved. Also, above any youtube video, the word YOUTUBE shows up.

    Please let me know if you can help.

    Thank you so much,

    -George

    #113553
    Nate
    Participant

    Guys,

    I’d hate to be a pest, but can this be addressed by the powers-that-be? I’d handle a ‘It isn’t possible’ or even a ‘It will require considerable code work, you might want to outsource a developer’.

    I have pored through this forum’s previous posts, without much luck finding a thread where it is discussed.

    And, to me, it seems like a fairly common question – especially with regards to aesthetics.

    Again, I think this forum software is nothing but excellent, especially for smaller (or, in our case, a nonprofit) businesses that are looking for a solution that isn’t gaudy or bloated.

    Looking forward to the responses …

    Nate

    Lynq
    Participant

    http://teamoverpowered.com/

    The forum is still WIP though, but I am liking how it is coming along :)

    #108141
    Lynq
    Participant

    Hey guys,

    I have been searching for this myself aswell, but couldn’t find anything anywhere.

    If anyone is interested I modified the bbp_list_forums function to have a flag for freshness (last poster) to be displayed or not.

    function bbp_list_forums( $args = '' ) {

    // Define used variables
    $output = $sub_forums = $topic_count = $reply_count = $counts = '';
    $i = 0;
    $count = array();

    // Defaults and arguments
    $defaults = array (
    'before' => '<ul class="bbp-forums">',
    'after' => '</ul>',
    'link_before' => '<li class="bbp-forum">',
    'link_after' => '</li>',
    'count_before' => ' (',
    'count_after' => ')',
    'count_sep' => ', ',
    'separator' => ', ',
    'forum_id' => '',
    'show_topic_count' => true,
    'show_reply_count' => true,
    'freshness_before' => '<td>',
    'freshness_after' => '</td>',
    'show_freshness_link' => true
    );
    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );

    // Bail if there are no subforums
    if ( !bbp_get_forum_subforum_count( $forum_id ) )
    return;

    // Loop through forums and create a list
    if ( $sub_forums = bbp_forum_get_subforums( $forum_id ) ) {

    // Total count (for separator)
    $total_subs = count( $sub_forums );
    foreach ( $sub_forums as $sub_forum ) {
    $i++; // Separator count

    // Get forum details
    $count = array();
    $show_sep = $total_subs > $i ? $separator : '';
    $permalink = bbp_get_forum_permalink( $sub_forum->ID );
    $title = bbp_get_forum_title( $sub_forum->ID );

    // Show topic count
    if ( !empty( $show_topic_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
    $count['topic'] = bbp_get_forum_topic_count( $sub_forum->ID );

    // Show reply count
    if ( !empty( $show_reply_count ) && !bbp_is_forum_category( $sub_forum->ID ) )
    $count['reply'] = bbp_get_forum_reply_count( $sub_forum->ID );

    // Counts to show
    if ( !empty( $count ) )
    $counts = $count_before . implode( $count_sep, $count ) . $count_after;

    // Show topic count
    if ( !empty( $show_freshness_link ) && !bbp_is_forum_category( $sub_forum->ID ) ) {
    $freshness_link = bbp_get_forum_freshness_link( $sub_forum->ID );
    $freshness_link = $freshness_before . $freshness_link . $freshness_after;
    }

    // Build this sub forums link
    $output .= $link_before . '<a href="' . $permalink . '" class="bbp-forum-link">' . $title . $counts . $freshness_link . '</a>' . $show_sep . $link_after;
    }

    // Output the list
    echo $before . $output . $after;
    }
    }

    Let me know if you would like any help with I am currently customising my theme to work with it, you will need to add an extra th to your forum tables other you just have a blank in place.

    Hope someone finds this helpful!

    p.s. you can also specify a before and after in the arguments of bbp_list_forums.

    All the best.

    Lynq.

    #113552
    elnicole
    Member

    Me too. I want to be able to tell bbPress which layout in my theme to use. The default layout has a skinny column and 2 side columns. I don’t want this for the forum.

    #113567

    I hear you. I often forget that everyone else isn’t using 2.1. It will be out soon though and then we will start work on 2.2 :)

    #105571
    jotaace
    Participant

    Hi AlexKramer,

    Sorry but i can’t find the way to use the plugin. Would you mind to post a little instructions on its usage? I only know how to paste the code in a txt file, renaming as php, zipping and installing as a plugin.

    And where to paste the code lines of your previous post in the plugin, please?

    I’ll be very grateful if I really can import my forum.

    Thanks in advance.

    #100471
    jotaace
    Participant

    Hi AlexKramer,

    Sorry but i can’t find the way to use the plugin. Would you mind to post a little instructions on its usage? I only know how to paste the code in a txt file, renaming as php, zipping and installing as a plugin.

    And where to paste the code lines of your previous post in the plugin, please?

    I’ll be very grateful if I really can import my forum.

    Thanks in advance.

    #55256
    qmic76
    Member

    I want to hide page links in my main header navigation from non registered members, then have them show up after the user has logged in.

    I’m currently using custom menu manager and wp-members for plugins. The custom menu manager allows me to set which page links show up in the assigned navigation menu (ie: only “about” and “register” are shown on home page the other page links are hidden), but it doesn’t recognize whether the user is logged in or not and the hidden page links are not shown after you’ve logged in still. With wp-members plugin I have the “members” and “project” pages set to block access unless logged in, but this only effects the page access, the nav link for those pages were still showing up in the main navigation until I used the menu manager plugin which hid them totally not conditionally based on log in status which is what I want.

    Is there a php block of code to use or plugin you guys recommend that handles nav link access/visibilty based on log in status? I’m at total loss. Please help me. Visit my site mks76.com/wp/

    #113564
    LIB53
    Member

    I’m making a post count plugin for bbpress 2.1, but the problem is that I’m new to PHP/MySQL, WordPress, and bbPress. From what I understand, I need to add a row called ‘post count’ to the usermeta table and hook the ‘bbp_theme_after_reply_form_submit_button’ action hook with a function that increases ‘post count’ by 1. I believe I must assign this newly hooked action a low priority as well so that the increase only comes after the post gets submitted into the database.

    I should also add a function that builds all post counts for first time run, and even leave a button possibly called “rebuild post count” in the dashboard to run the function. Preferably, I’d like to add a feature where it can run itself every now and then to ensure things the posts are accurate.

    I can count up everyone’s post count by filtering through the ‘posts’ table. All replies and topics are labeled as ‘reply’ and ‘topic’ in the post_type column, and there is a post_author column as well. Given these two columns, writing this function should be very simple. But I’m new to PHP/MySQL, and only a computer science student… So even this is a bit of work for me :(

    Additionally, I can add another row so we can add artificial post count increase or decrease as well. Another row is needed because we don’t want the build/rebuild post count function mentioned above overwriting any increase or decrease an admin wants to have in effect. I personally need this row because I’m moving a 2yr old community off of IPB.

    #44809

    Topic: GD bbPress Tools

    in forum Plugins
    Milan Petrovic
    Participant

    GD bbPress Tools is a new free plugin for bbPress 2.0/2.1 for WordPress. Currently adds these new features:

    * BBCode shortcodes support

    * Quote Reply or Topic

    * User signature with BBCode and HTML support

    * Additional custom views

    * Basic topics search results view

    * Toolbar menu integration

    * Limit bbPress admin side access

    Plugin supports BBCodes based on the phpBB implementation. Right now, plugin has 30 BBCodes. Latest plugin version is 1.2:

    http://www.dev4press.com/2012/blog/plugins-news/gd-bbpress-tools-1-2-0/

    #58800

    In reply to: How to disable rss ?

    xmasons
    Participant

    I’ve found the following works well in functions.php

    function disable_our_feeds() {

    wp_redirect(get_option('siteurl'));

    }

    add_action('bbp_feed', 'disable_our_feeds', 1);

    #44764
    scheena
    Member

    Hello, good day to you.

    I would like to ask for help please,

    Check out this link

    http://crankyoldmen.com/topic/profession-builder-links/

    There is that link between an author and his post, is there a css code i could add to my code so it can show up?

    #113551
    SilverNL
    Member

    I have exact the same problem and question!

    #113550
    Nate
    Participant

    anyone on this?

    #44731

    I think I broke my forum.

    I am using the plugin version of bbPress on WordPress, and recently deactivated all of my plugins trying to troubleshoot a theme error. I reactivated them, and when I go to Forums in the dashboard, “All Forums”, my forum is still there, but when I click on “View” it says:

    Permission Denied

    Not Found / No Access

    The page you are looking for either does not exist, or you do not have the permissions to access it.

    Going to http://mysite.com/forums takes me back to the main page.

    Any suggestions? :(

    #110585

    How can i disable HTML and/or VISUAL editor? (2.1 plugin version)

    Have you tried Settings > Forum? :)

    Unless you’re talking about conditionally toggling the mode, in which case you’re on your own to build that as a plugin, similar to WordPress.

    #113561

    In reply to: 2.0.2 –> 2.1

    Hey thanks! :) Good to hear it’s working out!

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