bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

Patch: Categories for version 0.8

(57 posts)
  • Started 1 year ago by SamBauers
  • Latest reply from SamBauers
  • This topic is not resolved
  1. Sound like you've got everything under control. :)

    Posted 1 year ago #
  2. Thanks for your reply Sam... :) Yeah, for the most part at least lol. Only thing I can't seem to get working for me though, even followed your instructions over here:

    http://trac.bbpress.org/ticket/520#comment:30

    Is applying a "patch" using SVN access... I'm on dreamhost, but, I go through the: START > RUN > CMD .... then login that way... I tried adding that line of code, and even uploaded the patch to my forums/ root directory.. used that:

    $ patch -p0 < /path/to/patchfile/categories-build701.patch

    Giving my path of "/public_html/forums/categories-build719.patch

    And it fails to find such thing in that directory? I'm not a Pro at SVN-ing yet, but anyone with any thoughts, suggestions, and so forth? I was just going to download the lastest SVN files to the Desktop like normally did, and apply patch via Tortoise SVN.. and only upload those "patched" ones... into the forums/ root..

    Does that sound like it's my only option, or.. maybe someone can tell me for sure what to do, and how to do patches via SVN or whatever.. Thanks in advance..

    *EDIT* Oh, or does it mean the WHOLE path? I'll give that a whirl once then, won't hurt lol.

    spencerp

    Posted 1 year ago #
  3. To patch:

    1. copy the patch file to the base directory of your forum
    2. cd to the base directory of your forum
    3. apply patch using:

    
    patch -p0 <categories-buildXXX.patch
    

    Where XXX is the build number.

    Make sure there is no space between "<" and the start of the filename. That was a mistake in my instructions.

    Posted 1 year ago #
  4. Sam, you ROCK! :) That worked like a charm!!

    http://spencerp.net/forums/

    Thanks so much for posting the correction here, I just ran this one, and it worked! :D
    patch -p0 <categories-build719.patch

    Just wondering though Sam, when another patch is submitted, would I/"we" just use same method as before, or..? Cause I'm thinking, it would merge badly right? Or something might go awry right?

    Since the patch basically creates files/ applies changes to the specific files.. and running another patch, would/could just make things messy right? Thanks again for adding the correction here... ;) :)

    spencerp

    Posted 1 year ago #
  5. Sam, just curious, is there going to be a new patch for this added soon? After last big SVN Commit, the patch719 didn't work, it gave bad merge errors or whatever?

    I'm going to have to delete all my current forum files and folders.. re-svn it all up. Then, wait until a new Forum Categories patch is made sigh. I just wish this Forum Cat was implemented into the trunk soon, and updated as need be... Wouldn't have to worry about this all the time lol.. =P

    spencerp

    Posted 1 year ago #
  6. Looks like there is some work going on to create "forum hierarchies" in the core. I think this will allow nesting of forums inside other forums. This has made some major changes to the files that were patched, so the patch will not work on the latest revisions. This patch solution will no doubt be deprecated by the changes being made now in core. I think that there was some resistance to adding another table to the database to perform this function, also the new solution will probably be more flexible, allowing for sub-sub-categories, sub-sub-sub-categories, etc.

    So we may have a category-like solution by 1.0 - Personally I'll be happy not to have to update the patch file anymore. I picked bbPress for my work, because it had modern features and a release-often ethos. The category patch filled a hole in functionality for me and a few others, it was a relatively quick hack - fairly brain-dead coding. So I won't be too sad to see it usurped. Hopefully, if anything, this patch helped make inclusion of this functionality a priority, and perhaps helped provide a UI implementation to use as an example (good, bad or ugly).

    I won't be updating the patch anymore, at least until I am sure the new hierarchical forum features cover that functionality.

    Posted 1 year ago #
  7. Oh ok, that makes sense. ;) Just curious though, should the database query that we had to run, be reversed, or..anything in the database that needs changed?

    I'm guessing that nothing major was really changed in the database, so no real worries of anything being screwed up, correct? Thanks for your reply Sam.. :)

    /So I guess this means I won't have to worry about styling the "Gathering theme for bbPress" with Forum Categories in mind.. ;)

    spencerp

    Posted 1 year ago #
  8. There was a category table added and a category id column added to the forums table. You want to remove these when the time comes to upgrade.

    Posted 1 year ago #
  9. Oh ok, sounds simple enough for me. I'll handle that later on then... Thanks Sam. ;) :)

    spencerp

    Posted 1 year ago #
  10. Alright, I just went ahead and remove those two things. I'm planning on working at the Gathering theme for bbPress now... Thanks again Sam for everything! :D

    spencerp

    Posted 1 year ago #
  11. This is the first time I've tried to patch something and I'm at a bit of a loss.

    I'm using a linux server and I uploaded the .patch file to the directory 'bb/' then did a site command (my ftp program is called mifiles) and pasted 'patch -p0 <categories-build719.patch' but I just get a 550 unknown command error.

    I have no idea (obviously).

    Posted 1 year ago #
  12. I'd recommend you don't use this patch unless you want to have to change your forums again when 1.0 is released.

    The way this patch works will be superseded in version 1.0

    Posted 1 year ago #
  13. Well, that may be awhile - so this patch will do for now - if I get it installed!

    Posted 1 year ago #
  14. It would be easier with command line access, or do it locally then upload the result.

    Posted 1 year ago #
  15. how do I get command line access?

    By locally, do you mean do it manually?

    Posted 1 year ago #
  16. There are lots of variables to take into account before I can answer your questions. You need to find out more about this stuff yourself. Unfortunately I don't have the time to coach you through the whole thing. The short answer is that if you are using Windows locally and don't have SSH (command line) access to your server, then you are probably out of luck.

    Posted 1 year ago #
  17. i do not know how to patch - if i will use actual SVN version, would it work without patching? Or can someone make a zip of patched bbpress?

    Posted 1 year ago #
  18. I installed the patch (had it installed for me)

    Just to make sure:

    1.The admin dashboard does not resemble the old one?
    2. I can make and assign categories alright but I can't see the category listing on the front page of the forum (like macwises site: www.babyquestions101.com) dividing the forums into groups.

    Do you have to install the patch on a brand new installation?

    patching file bb-templates/kakumei/style.css
    Hunk #1 FAILED at 169.
    Hunk #2 FAILED at 180.
    2 out of 2 hunks FAILED -- saving rejects to file bb-templates/kakumei/style.css.rej
    patching file bb-templates/kakumei/category.php
    patching file bb-templates/kakumei/topic.php
    patching file bb-templates/kakumei/forum.php
    patching file bb-templates/kakumei/front-page.php
    Hunk #1 FAILED at 40.
    Hunk #2 FAILED at 52.
    Hunk #3 FAILED at 81.
    3 out of 3 hunks FAILED -- saving rejects to file bb-templates/kakumei/front-page.php.rej
    patching file bb-includes/capabilities.php
    patching file bb-includes/default-filters.php
    patching file bb-includes/cache.php
    patching file bb-includes/functions.php
    patching file bb-includes/bozo.php
    patching file bb-includes/template-functions.php
    patching file bb-includes/db.php
    patching file index.php
    patching file rss.php
    patching file category.php
    patching file topic.php
    patching file bb-settings.php
    patching file bb-admin/bb-do-counts.php
    patching file bb-admin/bb-category.php
    patching file bb-admin/rewrite-rules.php
    patching file bb-admin/content-forums.php
    patching file bb-admin/content-categories.php
    patching file bb-admin/admin-functions.php
    patching file bb-admin/bb-forum.php
    patching file bb-admin/upgrade-schema.php
    patching file forum.php

    Posted 1 year ago #
  19. never mind, nutted it out.

    Posted 1 year ago #
  20. okay.

    how do you patch locally?

    Posted 1 year ago #
  21. On *nix RTFM...

    man patch

    On windows... no idea

    Posted 1 year ago #
  22. I downloaded Tortoise SVN and it seems to have done the job. Thanks Sam.

    Posted 1 year ago #
  23. nolageek
    Member

    For those of us that don't have shell access, can someone upload a copy of the patched files?

    Posted 1 year ago #
  24. has anyone got this patch to work on the latest release? when i apply the patch i get a lot of failed chunks and then when i try and view the site i get

    Fatal error: Call to undefined function bb_get_categories();

    eek!

    Posted 1 year ago #
  25. You don't want it! It already lets you do this. Go to bb-Admin > Content > Forums and you can make forums sub/child-forums of other forums. It's like this, only built-in.

    Posted 1 year ago #
  26. No...

    I do what this. Sub-forums is not at all what I want... I want to be able to create categories and then put forums and sub-forums in them :P

    Posted 1 year ago #
  27. This would be hard to update. I'm not going to do it. Feel free to modify and redistribute the patch yourself though.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.