Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,751 through 17,775 (of 32,506 total)
  • Author
    Search Results
  • Anointed
    Participant

    Right now the loop replies is calling the loop as follows:

    <?php while ( bbp_replies() ) : bbp_the_reply(); ?>

    <?php bbp_get_template_part( 'bbpress/loop', 'single-reply' ); ?>

    <?php endwhile; ?>

    This is combining the topic and the replies into the same query to be output by the loop-single-reply.php template file.

    Request:

    Separate out the calls to get the topic and then the replies after that function. (use 2 sep functions to call topics/replies)

    Reason:

    It is VERY difficult for me to style the original topic separately from the replies.

    *Yes, I know that everything is currently in a table format so styling topics and replies is not really feasible, however I am working on building some custom forum templates without tables. This would make building custom templates a bit easier.

    agree?

    #39766
    travis.hill
    Participant

    Starting a new topic as I don’t wish to clutter the VERY USEFUL threaded discussion here:

    http://bbpress.org/forums/topic/bbpress-20-theme-compatibility

    I’ve been over this topic a few times and can’t for the life of me get what I desire to work, or maybe it’s working and I’m missing something.

    My current setup:

    WordPress 3.2.1 (single site setup

    **Child Theme**

    BuddyPress 1.2.9 (disabled forums)

    bbPress 2.0-RC-4

    My goal is simple: I wish to use a different sidebar within my forum pages to display information that is forum specific, rather than my default sidebar’s contents and widgets.

    I’m pretty fluent in WordPress, customizing things and the like. I understand how to display different sidebars and such within WordPress, depending on pages, etc..

    My issue:

    When I activated bbPress and navigated to my forum, everything displayed a treat. It was PERFECT (minus some CSS for colors and width, etc). I figured I would be cracking into the code just to get it to display correctly within my theme, but it put it right where it belonged within my theme.

    When I decided I would like to take advantage of a different sidebar, things started to go out of place.

    Following along with the discussion at http://bbpress.org/forums/topic/bbpress-20-theme-compatibility, I:

    1. Copied the files within wp-content/plugins/bbpress/bbp-themes/bbp-twentyten/

    into my child theme folder:

    wp-content/themes/%child-theme-dir%/ – minus fuctions.php and style.css.

    2. I added add_theme_support( ‘bbpress’ ); into my child theme’s fuctions.php file.

    Upon uploading and refreshing, my theme was broken. The forums were being displayed above everything. At the time, this wasn’t much of an issue, as I figured I could modify the files I copied within wp-content/themes/%child-theme-dir%/ much the same way I modified BuddyPress templates to work within my child theme, but alas, these modifications did not work. In other words – any modifications I made to files from plugins/bbpress/bbp-themes/bbp-twentyten/ into themes/%child-theme-dir%/ did not work.

    3. Instead of “merging” bbPress functions.php and css/bbpress.css with my child theme files, I copied bbPress’s functions.php, created a new file within my child theme, copied the contents of bbPress’s functions.php into this file and included it from my functions.php file. I used an @import clause within my child theme CSS file to import bbpress.css. This all seemed to work, as using Firebug confirmed bbpress.css was imported.

    Again I uploaded and refreshed, but the theme is still broken, much the same way it already was.

    So for now I’ve reverted everything back to the “vanilla” install of bbPress, and everything is back to normal, minus a unique sidebar.

    Any and all help is greatly appreciated!

    Thanks!

    #108562

    Thanks a ton for this. :)

    #39767

    I like a lot of you on here obviously want bbpress to be implemented into my site.

    And I like a lot of you have been having issues getting everything installed and working correctly.

    I’m writing this post because I got things going finally on my site and it really isn’t as hard as I was making it and some of you are from what I’m seeing.

    I just wanted to share a few simple things that I learned along my journey and hopefully this post can steer some of you in the right direction.

    My forum is located at http://www.theurbantwist.com/community by the way. Ignore banner at top of page as that’s just a placeholder for when I get my official forum logo designed.

    First things first…

    I followed the instructions to a “t” from this post:

    http://bbpress.org/forums/topic/bbpress-20-theme-compatibility

    I have a custom theme, so I copied all files over, created child theme and all of that jazz, and added theme support.

    At this point I just knew that I was going to be finished because when I went to dashboard, it stated that my theme now had bbpress support. Everything was coming together just as how the instructions above would lead me to believe.

    The feeling was brief as when I actually went to the forum page, it was completely blank other than the breadcrumb trail at the top…my header and footer was present but everything else in the middle (the content area) was gone.

    So me being familiar with wordpress themes and because I’m so used to “pimping” out themes for wordpress…I tried to do the same with bbpress, so I dissected and went over the code in those files I copied over into my main theme as if it were a wordpress theme and changed some things around thinking I needed to add some template tags here and there to get forum to work.

    I did all of that and guess what? Nothing changed…same blank space as before.

    So I then went into the plugin file itself and tried modifying the theme from there.

    Still…nothing changed.

    So I went backwards through the steps and started deleting steps to get back to where I was at originally and along the way, after I removed the theme support for bbpress, the forum showed up on my page. The CSS wasn’t matching my theme, but at least I had a start.

    I then modified my css file to match certain elements of the twenty-ten default bbpress theme and mow I’m making progress. The theme is pretty much right where I want it be.

    The only thing that was missing was that I wanted a topic listing of all topics on forum front page.

    And here is where things really got easy and I wish I would have done this from the start.

    I simply created a page.

    I named page “community” to match my forum settings and I added 2 lines of code.

    [bbp-forum-index]

    [bbp-topic-index]

    And voila! Now I have forum just the way I want it barring a couple of graphical changes which I’m working on.

    The reason I went in detail about how I came to a solution for myself is that sometimes we do a LOT of unecessary stuff to get to where we need to be. I’ve wasted a LOT of time trying to manipulate the plugins files and my theme’s files, when all I needed to do was to create a page.

    Bottom line and this is definitely something you should try if you are having problems.

    1. Install and activate plugin.

    2. Add a Page

    3. Add those 2 lines of code above.

    4. Publish.

    You then have your forum. And that’s a start. :-)

    Cheers!

    #108506

    If that plugin is only for bbPress 2.0, yes please :)

    #107948

    Patches welcome. :)

    #108535

    Either delete the physical WP page, or put the bbp-forum-index short-code in it. bbPress assumes if there is a page already where the slug is, that you are manually overriding it.

    You’ll all way off topic! :P lol

    And forums/subforums in groups would. be. absolutely. awesome.

    #108540

    BuddyPress selfishly takes over the “register” slug. If you’d rather use bbPress, you’ll need to make a WordPress page with a different slug.

    #39762
    jabbamonkey
    Member

    I created a page with the permalink http://montecristoowners.com/register/ with the following content…

    [bbp-register]

    … but it just sends the user to my homepage.

    My other shortcodes work fine…

    Login page: (http://montecristoowners.com/login/

    Lost Password page (http://montecristoowners.com/lost-password/)

    Question: I installed BuddyPress so that I could get some more control over my forums. Is that why the shortcode doesn’t work for Register anymore? If that is not the reason, then why isn’t it working?

    #108530
    enderandrew
    Participant

    Personally, I disabled the Forums functionality within BudddyPress, and let bbpress use the Forums slug. Then I created a blank page called Forums within the plugin “Page Links To” that redirects to the Forums slug.

    https://wordpress.org/extend/plugins/page-links-to/

    Or you could simply use the bbpress shortcodes on the page.

    #107810
    David Decker
    Participant

    Hi there!

    Thanx to Jared for the plugin solution – working smoothly :) Awesome now I can use bbPress for a client site forum running with Genesis!

    @John:

    Thanx for the patch! – I’ve implemented this in my local rc4 of the bbPress plugin – but didn’t work yet! I assume the issue is from a wrong setting of the layout option?? Or some other function? Since I am still learning this whole coding stuff I cannot say what the issue is at the moment.

    -dave :)

    #106083
    DeysonOrtiz
    Participant

    Hello everyone and good morning.

    Has anyone been able to get bbpress to with the hybrid theme?

    On the Hybrid Forum were discussing BBpress and how I could not get it to work on the Hybrid Theme, when one of the members said it worked on his without having to go the custom route. This is what he stated:

    _____________________________________

    ‘ “All you have to do to get bbPress active on a Hybrid theme is activate bbPress 2.0 via the plugin repository, then create new page called forum or whatnot via the normal page editor. In the editor, just enter a couple of shortcodes, similar to this:

    [bbp-forum-index]

    some content to separate forums

    [bbp-topic-index]

    This will show your main forums and also a recent topics list. You can also use other shortcodes built in to bbPress for different functionality.

    The only thing I had to change was the overall table width of the forum, which easy enough to target with the Chrome web developer tools.”

    `

    I unfortunately was not able to get this to work.

    I am just curious if anyone has been able to get bbpress to work on the Hybrid Theme without any customization. I am a video editor and motion graphics artist, so coding is not my forte.

    Thank you for any help.

    #107146

    Yep. They are just posts, after all. ;)

    #108437

    In reply to: bbPress 2.0 plugins?

    ^—boom :)

    #107808

    Genesis has 2 functions that I have determined are causing the problems.

    http://pastie.org/2469242 (/genesis/lib/structure/post.php lines 101-143 (as of 1.7.1))

    The first function is the post image function. Users have the ability to automatically set image thumbnails to appear on the archive listings. However if they turn this on, when you go to a bbPress archive page a random image from the media library ends up on the top of the page. This is turned of by default in Genesis, but is widely used.

    The second function is how Genesis displays post content. You can see, depending on how the user has Genesis configured, it uses the_excerpt or the_content_limit – which results in a dead loop.

    The other things I did such as remove the post info/meta, breadcrumbs, etc are just purely cosmetic. They aren’t *needed* per say, but it can look screwy if they are outputted on some of the forum pages.

    As long as Genesis is forced to always use the_content and the post image option is nuked, everything should always work smoothly.

    If you want to explore the option of a core patch I’d be more than happy to help you with a patch and testing :)

    #107807

    So by removing all of the Genesis actions, bbPress is able to do what it needs to without any kind of conflict? Seems pretty straight forward. I could transform your code into a bbPress 2.0 core patch, but I’d be flying blind not having a copy to test with.

    I would literally be taking exactly what you have and making bbPress load it like it does the Akismet and BuddyPress extensions.

    #107806

    Alright guys, sorry it took me so long to post back here.

    I’ve written a quick post that details the problems (or at least, the ones I ran into) and have a quick plugin you can use as a starting point to hopefully get things working.

    Genesis bbPress Extend

    Like I said, this issue is strictly if you are developing on top of the Genesis Framework. If you are *not* using Genesis and having template issues, I’d recommend starting a new thread on it :P

    @jjj if you have time to look over my post, let me know if my diagnosis seems right (err, accurate) and the fix seems appropriate.

    cheers!

    #106079

    Everything in bbPress and BuddyPress is coded using the WordPress actions API. There is absolutely no reason to modify any core files to do what you want to do. There are plenty of examples on how to accomplish what you need on the WordPress codex, and even in the bbPress code itself.

    Before you start chopping out pieces of core code, try to understand why it’s there. If you have questions on a specific piece of code in bbPress, open a new topic and I’m happy to explain why it’s there.

    #106076
    woodwardmatt
    Member

    @enderandrew – If it helps at all, all I did was leave the default setup in place, having installed the bbpress 2.0 plugin. Then include a new custom css file (in the directory of my wordpress theme) and link to this beneath the call to the wp_head() function in the wordpress theme (e.g. in my header.php) – to ensure the custom css file overrides the css included by bbpress.

    I simply them overrode any of the styles that I wanted to change from the default. This is a fairly old-school approach to re-branding, but is perhaps one of the least invasive. This wont allow you to change very much of the layout but will allow you to change some of the styling to more closely match your brand and will give you a certain amount of protection against change as the plugin gets updated.

    Hope that helps :)

    #106074

    @enderandrew – I can’t accurately guess at what’s wrong. Try again? :)

    #108524
    jabbamonkey
    Member

    I did a search in PLUGINS on this site, and didn’t see a BuddyPress plugin. So, I did a web search for it. Is BuddyPress the social networking WordPress plugin? Does it tie in to BBPress 2.0 easily? Or is it something extremely difficult to do? Do the bbpress short codes (for creating a register page) still work with BuddyPress?

    Also, the required or optional option is good. Is there a way to make fields that are HIDDEN from the public?

    jczerwonka
    Member

    It seems bbp_get_forum_subforum_count() does not return private forums. So when all the subforums are private, this funcion returns 0 which causes the list forums function to bail.

    I got it around it by creating the following filter to count the forums:

    add_filter( 'bbp_get_forum_subforum_count', 'my_subforum_count', 3 );

    function my_subforum_count( $forum_count, $forum_id ) {
    $subforums = bbp_forum_get_subforums( array( 'post_parent' => $forum_id ) );
    return count( $subforums );
    }

    Please advise if you’d like me to create a trac ticket for this. I didn’t want to create a ticket in case it already exists or I’m just doing something wrong.

    Thanks,

    John

    #39752
    jabbamonkey
    Member

    In version 1.0, there is a way to create custom registration fields (creating a regfields module, with a short bit of code).

    Is there a way to do this for 2.0? I upgraded to the newer forum, because I thought things like this would be easier.

    Also, is there a way to make certain fields private (so they are submitted for admins to view, but not publically posted to the profile)?

    #39751
Viewing 25 results - 17,751 through 17,775 (of 32,506 total)
Skip to toolbar