Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,976 through 21,000 (of 32,482 total)
  • Author
    Search Results
  • #89429
    driz
    Member

    I tried the code zaerl posted, but it when viewing forums it requires the $forum_id within the function to display the correct stuff otherwise it will show the same as the front page and not the selected forums subforums. I need to use $forum_id with the array posted so I only get the top level forums within the chosen forum.

    I tried doing this to see if it would combine the two:

    if(bb_forums($forum_id, array(‘where’ => ‘where forum_parent = 0’)))

    but it just showed all the forums for that forum and not just the parents

    #89428

    What code did you try on the sub forum pages nad we can try and help :)

    #89446
    mr_pelle
    Participant

    Prepend this code to line 233 of functions.bb-template.php:

    if ( 'favorites' != $item[4] )

    #89479

    What I’m looking for is to have a simple forum integrated with my WP installation. It seems like bbPress is the perfect choice but now I’m not so sure

    If you want a “simple forum” then bbPress fits that need.

    If you want single sign on with your WordPress install, then bbPress is probably the best out there.

    as of yesterday I’ve heard of buddypress… and now I’m confused

    Yeah, we have to explain this every day to someone.

    Truly wish anyone with Documentation rights would maybe save this as a sticky or maybe in the documentation section or something…

    BuddyPress and bbPress are not connected.

    BuddyPress allows you to install a forked version of bbPress. It is not the same as this bbPress. We don’t know why they kept the name. We don’t know why they don’t publicise that they are different. If you use BuddyPress in any way, we can’t help you on this forum.

    It seems like the two products are made by the same people, are intended for similar purposes, but some people have both installed

    BuddyPress is ‘like’ a WordPress plugin, in the same vein of a fancy WooTheme or Thesis framework. Its like an additional layer onto which other plugins can be installed.

    About a year ago the BuddyPress team, under the great coding skills and direction of Andy Peatling (http://apeatling.wordpress.com/) forked and ported a version of bbPress to be run as a BuddyPress plugin.

    So bbPress and BuddyPress are two different products, with different aims and goals, and some people can have both installed – just not this version of bbPress.

    On top of that it seems like support for bbPress is waning

    Yes.

    But it will not go away or die. It runs the Automattic support forums, so its not going anywhere. It will be ported to a WrodPress plugin at some stage. Other than that sentance, we have no information on that.

    If what you need is a forum, use bbPress.

    If you need to build a social network (friends, groups, private messaging, activity) then use BuddyPress.

    Thats basically it :)

    #34472

    Hello folks,

    I was hoping that someone could point me in the direction of an ACTION that occurs on the following pages so that I can hook my plugin into them without hacking the core:

    bb-edit.php

    I have a plugin that needs to be fired when someone edits a post.

    Forum layout update

    In the backend we do it all through AJAX (how wonderful), except we call the following page bb-admin/admin-ajax.php and the following sections (via a switch statement): add-forums and order-forums.

    Except, no actions there to call either. And yes, to the best of my ability, I’ve stuck with the code the whole way through all the functions they call. I’ve yet to find a pluggable one.

    ===============================================================================

    I realise that my phrasing is sometimes considered combative, and I apologise for that, but are we seriously suggesting that at no point is the ability to add/edit/control/order our forum pluggable in anyway; and the same for the editing of a forum post??

    I’m more than happy to be wrong here, because right now I’m having one of those “bbPress moments” where you’re not quite sure if you’re losing your marbles or if whoever decided to make these not pluggable is.

    Thanks for the help

    #89426
    driz
    Member

    Cool works great. How do I do the same for the sub forums page where the tag looks like this:

    <?php if ( bb_forums( $forum_id ) ) : ?>

    #89443
    gerikg
    Member

    you can start with:

    add to your style.css

    #favorite-toggle{display:none;}

    The three tabs will still show up but the option to add to favorites option won’t show up on the posts.

    open profile.php

    line #25 that starts with

    <?php if (bb_current_user_can( 'edit_favorites_of', $user->ID )) : ?>

    add BEFORE

    <!--

    line #27

    <?php endif; ?>

    add AFTER

    -->

    I don’t know how to edit the three tabs.. sorry

    #89440
    cv3t
    Member

    Do not prompt where?

    p.s I already everywhere searched find a code could not…

    #85809

    Hi Gideons,

    Mate, with respect, these aren’t really bbPress issues, it’s an issue with an independant theme given away some 2-3 months ago.

    It sounds to me like a basic web design CSS issue, thats outwith teh scope of this board, but if you’re still struggling, please contact the theme author at: http://www.jasonmorehouse.com/bbpress-vanilla-theme

    :)

    #85807

    Hi Gideons,

    I suggest you talk to the author directly at http://www.jasonmorehouse.com/bbpress-vanilla-theme

    :)

    #89424
    zaerl
    Participant

    Open front-page.php. Locate:

    if(bb_forums())

    (line 47 in kakumei) change it in:

    if(bb_forums(array('where' => 'where forum_parent = 0')))

    Have a nice day.

    #89422

    You’ll need to code a custom loop for that I’m afraid.

    #34467
    driz
    Member

    I want to show only the very top level forums on my front page. I have tried:

    <?php if ( bb_forums("depth=1") ) : ?>

    But that didn’t work and all the forums still show up. I only want to show the very top level, so for example if I have the following forums:

    Main
    - Sub Forum 1
    - Sub Forum 2
    --- Sub Forum 2.1
    --- Sub Forum 2.1
    - Sub Forum 3
    Community
    - Sub Forum 1
    - Sub Forum 2
    --- Sub Forum 2.1
    --- Sub Forum 2.1
    - Sub Forum 3

    Only Main and Community would appear on the home page.

    Thanks.

    #89409
    gerikg
    Member

    If you want it like this site…. An easy way to do it is…

    the front page of the default theme is broken into two parts.

    If you open front-page.php serach for these div codes, everything on the left is between “id=”hottags” role=”main””

    Everything on the right is between “div id=”discussions”” JUst move what you want in them.

    All you have to do is adjust the width/margin of both css styles.

    style.css (line 285) #front-page #hottags for the left side change the width

    style.css (line 293) #front-page #discussions change margin left to be 20px more than what you pick for the left column width and the width to fit.

    (Why doesn’t this site have a demo on bbpress! I hate changing my theme back to default to answer questions!)

    #89391
    mr_pelle
    Participant

    Solved. =)

    #84769

    In reply to: Plugins You Want !!!

    gideons
    Member

    well I was actually adressing bb-lover

    as he autoassigned himself 5 tasks

    and since then no news…

    I have found the plugins, thanks ;-)

    (although not all parts of the site seem to work flawlessly)

    #89406
    gideons
    Member

    Either way

    If the theme from BBpress/Forums

    is available great that woudl give me 85% of what I need

    otherwise the code and an explanation where to stick it, I guess

    although I am not a coder

    thanks

    #89405

    Hi Gideons,

    I’m not really sure what you’re after here.

    Are you wanting someone to give you a theme, or write the code for you to put in your own theme?

    Kev

    KentonMr
    Member

    I have a large number of topics within a forum that are generated externally with all of them having the same topic start, topic and post date (initial post)

    The forum also contains other topics (user added) and of course additional posts which have later times.

    The normal display shows the freshest post at the top Which is exactly what is wanted however the rest of the list (the as yet unanswered topics) are listed in an order that seems to be driven by the topic_id. This is not what is required for my site.

    I want to change the order of these “unanswered topics” to an alphabetical sequence based on the topic_title.

    Examining the table bb_topics and drilling the code from forum.php downwards it appeared that the USE INDEX() given to BB_Query was ‘forum_time’ This index is combined on topic_time and topic_id which explains the normal listing.

    I changed this index to a combined topic_time and topic_title(20)

    The result was unexpected. The replied topics are still listed first (descending time) however, the unanswered topics are now listed in descending/reverse alphabetical order!

    Evidently the DESC sql is being added to the entire query – both time and title.

    I have been unable to find out where or find an alternative.

    Any suggestions welcome – and I’m quite happy moding the code though would prefer to make this minimal as it could make upgrades problematic.

    Thanks in advance

    #89388
    harryxu
    Member

    And I found there is a blank line at start of the output rss code, also in all page’s html code.

    I guess this cause the rss parse error?

    #80741

    In reply to: When bbpress 1.0.3?

    mr_pelle
    Participant

    I think the next release is going to be 1.1 instead of 1.0.3. […]

    Not sure when 1.1 will be released. Maybe after all the 1.1 tickets are cleared up

    So we have to wait 2011 for 1.1, instead of maybe august for 1.0.3, since at the moment the former has got more than 6 times the number of tickets of the latter… not to mention those 3-yo tickets

    Trunk right now is a little bit unstable. There were a couple of search related bugs that were not fixed properly.

    I hope we’ve fixed those, at last! =)

    #88928
    gerikg
    Member
    <?php $topic = $GLOBALS['topic'] = current( get_latest_topics( array( 'number' => 1, 'forum' => get_forum_id() ) ) ); ?>
    <a href="<?php forum_last_post_link();?>"><?php topic_title(); ?></a>

    works for me

    I’m afraid thats not got anything to do with bbPress so there’s not a lot we can do to help. Given that the code is output, its probably jsut a styling issue, which really is something you can find out at any of the CSS websites on the interweb.

    Additioanlly, you have paid for theme, so you should probably ask there instead of here, given that your bbPress works :)

    Oh go on then, because I’m being nice…

    Right, if you open up the source of your webpage in a browser, you’ll see some hardcoded (awful idea) CSS into your WordPress page (line 70).

    Just copy that into your bbPress forums, and it too will look the same:

    And really bro, if you pay for a theme and then it doesn’t look like the way you want it, go ask at the forum of where you bought the theme :) WE’re the folks giving up our time for free!!

    #81661

    In reply to: Last Post on Forums

    Hi Gerikg,

    _CK_’s last forum poster works awesomely (though I hit a few issues with it with 1.0, they were ultra minor).

    The downside for that plugin though is that it makes additional SQL calls that really shouldn’t be needed. That isn’t the fault of the plugin or _CK_ but really, it’s aditional overhead that really isn’t needed when there’s a better way of doing things.

    Also, Code’s been royally F@**ed for about a week now, given how much of a priority fixing the homepage was (404 error for 3-4 days) I rekon we can expect a fix in roughly 2.4 amotic years ;-)

    #81660

    In reply to: Last Post on Forums

    gerikg
    Member

    This topic is resolved, I used Forum Last Poster plugin by _ck_ (https://bbpress.org/plugins/topic/forum-last-poster/)

    For last topic with link I used

    <a href="<?php forum_last_post_link();?>"><?php topic_title(); ?></a>

    Why can I paste code anymore?

Viewing 25 results - 20,976 through 21,000 (of 32,482 total)
Skip to toolbar