Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,851 through 15,875 (of 32,522 total)
  • Author
    Search Results
  • #114818
    Lynq
    Participant

    Nothing, looks correct to me.

    If you check the markup you now have markup ready for your CSS.

    Now in your css you could add something along the lines of:

    .bbp-forums .bbp-forum-info .bbp-forums-list .bbp-forum {
        display: block;
    }
    
    #114813
    Martin
    Participant

    omg, so am I copying the file bbpress-functions.php into the theme root and then adding this other code at the bottom and then modding the loop-single-forum.php file?

    #114799
    Lynq
    Participant

    @Rastarr I have a feeling that when I used the backticks it cut off some of the code and you might of copied that across so it was formatted incorrectly?

    Hmm sorry Rastarr, I can’t get the code formatting to display correctly currently.

    http://pastebin.com/qsuEvBgL

    • This reply was modified 14 years, 1 month ago by Lynq.
    • This reply was modified 14 years, 1 month ago by Lynq.
    • This reply was modified 14 years, 1 month ago by Lynq.
    #114791
    Martin
    Participant

    The stuff above it is the code you gave me so that is probably where the issue must be.
    But I don’t know what could be wrong. Goodness this is so crazy.

    #114789
    Lynq
    Participant

    If you paste it and then select the text, then click the {} button just above that should format it as code for you.

    It is probably before line 43 where the error lies and is not closing something off, so PHP continues happily until it hits line 43.

    #114777
    Lynq
    Participant

    What code do you have on line 43?

    #114770
    Martin
    Participant

    Line 43 is now:

    Unsure where the missing ‘)’ is. This is so incredibly frustrating for a non-coder to make a minor adjustment.

    #114755
    Lynq
    Participant

    Hi Martin,

    You should not edit the core code.

    Inside your template files is a file called loop-single-forum.php, this file calls the bbPress function bbp_list_forums();

    You will notice that it is probably not specifying any arguments it just specifies bbp_list_forums();

    If you specify arguments for that function like the ones listed above it will then wrap the subforums inside li tags which you can then use CSS to style.

    Good luck!

    P.s if you want to find out more about how that function works it is inside /bbpress/bbp-includes/bbp-forum-template.php but you do not need to edit it.

    Seeing how this will format:

    $args = array (
            'before'            => '',
            'after'             => '',
            'link_before'       => '',
            'link_after'        => '',
            'count_before'      => '',
            'count_after'       => '',
            'count_sep'         => '',
            'separator'         => '',
            'forum_id'          => '',
            'show_topic_count'  => true,
            'show_reply_count'  => true
    );
    
    bbp_list_forums( $args );
    
    • This reply was modified 14 years, 1 month ago by Lynq. Reason: Reformatting the code
    #114753

    No no no. Don’t hack core. Copy whichever template file has this call to it, directly into your theme, in the same location it is in bbp-theme-compatibility. Use the code above, but correctly formatted.

    #114750
    Martin
    Participant

    well I get a bit of an error, like so:

    Parse error: syntax error, unexpected T_CLASS, expecting ')' in /Users/MartinC/Sites/gaj/wp-content/plugins/bbpress/bbp-theme-compat/bbpress/loop-single-forum.php on line 25
    
    Warning: missing endblock() for startblock('middle') in /Users/MartinC/Sites/gaj/wp-content/themes/parallelus-mingle/framework/theme-functions/layout-and-design.php on line 137
    

    Any ideas?
    Would have preferred to do it via CSS since hacking the core code will get overwriten but if it can’t be helped then it can’t.

    No idea on this error though.
    Thanks for any help
    Martin

    🙂 Eventually. Not *quite* there yet. Need to fill in some copy here first, migrate the codex, etc…

    #114735
    Lynq
    Participant

    I seem to be having trouble posting code to the forum, it wants to cut off the first part of it. Anyone else having issues or is this me doing something wrong?

    #114719
    Erlend
    Participant

    Loving it!

    Some “could be nice”s:

    Frontpage: I think the 1-3 latest blog posts ought to be shown prominently somewhere on the front page.

    Forum: Have you considered using the excellent WP Markdown plugin for this forum? I find it to be a really clever, future-proof alternative to bbcode.

    • This reply was modified 14 years, 1 month ago by Erlend.
    #114680
    Anointed
    Participant

    You can do this with jQuery

    jQuery(document).ready(function($) {

    $('a[href^="http://"]').filter(function(){
    return this.hostname && this.hostname !== location.hostname;
    })
    .click( function() {
    window.open(this.href);
    return false;
    });

    });

    Might be able to clean it up a bit and modify it for use with multisite, but it’s a start.

    #114679
    darkhorse20
    Member

    Oops, the code got parsed funky. Basically, I’m using a variation of the code on this page: https://codex.wordpress.org/Function_Reference/fetch_feed

    #114677
    darkhorse20
    Member

    On some of my pages, I’m using the fetch_feed function to take the bbPress RSS feed to display the list items. After installing 2.1, none of the feeds are working anymore. Here’s the code I’m using:


    get_item_quantity(3);
    $items = $feed->get_items(0, $limit);
    }
    if ($limit == 0) echo 'The feed is either empty or unavailable.';
    else foreach ($items as $item) : ?>
    <a href="get_permalink(); ?>" title="get_date('j F Y @ g:i a'); ?>">get_title(); ?>get_description(), 13, 140); ?> <a href="get_permalink(); ?>">>>

    Any idea why it’s not working anymore?

    #114671

    Does Membership-lite have any bbPress specific code in it? I suspect it has something to do with roles and capabilities. Maybe try deactivating bbPress, reactivating it, and visiting Settings > Forums. That silently does a bit of validation on some bbPress settings, in the event things get botched somehow.

    #114653

    Few biggish things to do:

    * Migrate Codex
    * Redirect Legacy Plugins
    * Blog Sidebar and Comments

    #114547
    Anointed
    Participant

    I just saw a tweet about this plugin yesterday.

    http://easydigitaldownloads.com/extension/content-restriction/

    While I have not used it before, I know his code is rock solid and support is fantastic. It specifically mentions bbPress support and might be able to easily be modified to use groups instead of people who purchase a product. Might be worth asking him about.

    If I ever pick up a copy, I’ll try to write up a full review on it as this feature has been requested for some time now.

    #114536
    Anointed
    Participant

    The code is in the core for you to use, though not yet implemented in the front end, the functions work.

    https://bbpress.trac.wordpress.org/changeset/3632

    https://bbpress.trac.wordpress.org/changeset/3633

    #114535
    Pinhead149
    Member

    version 2.0.2, sorry

    still no solution here, can anyone help me please?? :)

    thanks

    #114077
    zanzaboonda
    Participant

    This fixed it for me, too. Thanks so much! :D

    If only I had the time and knowledge.

    PS netweb – ‘that is has that is that’?! Your grammatical apathy impresses me–and I am serious…not trying to be a jerk.

    :D

    #109149
    Ronileco
    Participant

    Thank you again Annointed.

    I solved this issue by placing your code in: loop-forums.php, maybe this has changed in recent releases.

    #114538
    Stephen Edgar
    Keymaster

    Add the ‘bbPRess Recent Topics’ widget to a sidebar

    https://codex.bbpress.org/widgets/

    Or use the [bbp-topic-index] shorcode

    https://codex.bbpress.org/shortcodes/

Viewing 25 results - 15,851 through 15,875 (of 32,522 total)
Skip to toolbar