Skip to:
Content
Pages
Categories
Search
Top
Bottom

Will you develop one of these buddypress.org enhancements?

  • Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    The buddypress.org bug and enhancement list at http://123.writeboard.com/7555930eb348e12b5 (password cake; scroll down to the middle of the page to see the list) has undergone some very helpful reorganization and refinement over the last week or two. Now it’s time to start tackling the list.

    I’m working closely with Andy to figure out the exact logistical details of applying fixes. The short story is this: I will be merging fixes into the buddypress.org codebase, and Andy will be reviewing and deploying it. Andy and I are hoping that a workflow will be in place in a matter of days.

    There are certain items on the bug list that are specific to the environment in which buddypress.org is hosted. I will be primarily responsible for these fixes.

    However, many items can be developed independently of the buddypress.org theme and hosting environment. Below, I have listed a number of those items that can be developed independently. If you are a BP developer and would like to volunteer to code one of these enhancements, please state your interest below. I’ll edit the list to reflect people’s preferences.

    1. 1) Support for `backticked` code in forums
    2. 2) “Topics started/replied to” page, in the vein of the old buddypress.org design – halfway done (thanks @r-a-y)
    3. 3) Moving threads from one group to another – (should be doable with this but needs to be modified to move activity items too)
    4. 4) Quote filter/button for forums
    5. 5) “support” topic, for marking threads as Resolved/Unresolved/Not a support topic. I think this bbPress plugin does it: http://bbpress.org/plugins/topic/bb-topic-icons/#post-5080
    6. 6) link directly to most recent reply on a topic threaddone (thanks @nuprn1)

    Ideally, these enhancements should be written in a modular way. Use BP hooks, so that your code can run from a plugin or from a functions.php file. (Bonus: that way you can put your code in the WP plugin repo!)

    For those who love BuddyPress and can code a bit, this is a great and easy way to help out the community! Think of it as a mini 3.org project :)

Viewing 16 replies - 1 through 16 (of 16 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    1) i’ll take a stab at this, but you might want to use this:
    http://buddypress.org/community/groups/creating-extending/forum/topic/quick-hack-enable-syntaxhighlighter-evolved-on-group-forums/#post-60096

    2) My understanding is this is just a WP page with a page template since bp.org is running BP 1.3-bleeding. If so, I can also take a stab at this.

    3) via plugin – http://buddypress.org/community/groups/buddypress-forum-topic-mover/

    4) via a sub-plugin of the Group Forum Extras plugin by @nuprn1 – currently running on etivite.com.

    5) If I have time, I’ll take a look at this as well.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    @r-a-y – Wow, such enthusiasm :-D

    I am on the fence about Syntax Highlighter. It’s pretty, and I use it on my own site, but it does add an extra step for the target audience of posted code – namely, they need to hit the button to get the plain-text popup before copying and pasting. Could cause more confusion than it’s worth.

    Avatar of rich! @ etiviti
    rich! @ etiviti
    Participant

    @nuprn1

    why not both backticks and [php] syntax highlighting?

    I can help out with the quote stuff (which requires a theme edit for the post reply textarea on each page – simple)
    - also if I could code an anchor permalink to the last topic reply :-P

    FWIW – forum topic mover does not update activity stream records (the group_id) so that would need to be fixed

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Re #1 – Rich, if you can handle this one, that’d be great!

    Re #2 – “Topics started” is easy; “topics replied to” is another beast. I could probably get “topics started” implemented in no time though. Just need some verification if /support/ is a WP page running with a custom page template.

    *Edit – #2 is done:
    http://buddypress.pastebin.com/0Scgvu8N (updated)

    Add as a new page template. Excludes topics replied to at this time. Also need to add the rest of the bp.org template in, but should be good as a basis.
    Move the styles to the external stylesheet.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    @r-a-y You rule. When I get access to the theme, I will integrate what you’ve done.

    @nuprn1 If you’ve got some simple code to pass along re: permalink to last topic reply, please do. Linking the “x minutes ago” to the last reply should be an easy and non-disruptive change.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Unfortunately there’s no prebuilt template tag for this, but you can use the following:

    Code to get last topic reply permalink -
    http://buddypress.pastebin.com/CDwfpw1M

    The global $bp and $forum_template calls are needed.

    This is also something I’ve added in #2.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Cool. That deserves a template tag. I’ll put one in functions.php for the purposes of the site. Core should be patched with this too – something of a no brainer

    Avatar of rich! @ etiviti
    rich! @ etiviti
    Participant

    @nuprn1

    @boonebgorges – in group forum extras plugin as well… :P all sorts of little goodies in there.
    @r-a-y – have to calc in the page number

    function bp_forum_extras_topic_last_post_link( $per_page = 15 ) {
    global $forum_template;

    $page = bp_forum_extras_get_page_number($forum_template->topic->topic_posts, $per_page);
    $page = (1 < $page) ? '?topic_page='. $page .'&num='. $per_page : '';

    return bp_get_the_topic_permalink() . $page ."#post-". $forum_template->topic->topic_last_post_id;
    }

    function bp_forum_extras_get_page_number( $item, $per_page = 15 ) {
    if ( !$per_page )
    return false;

    return intval( ceil( $item / $per_page ) ); // page 1 is the first page
    }

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Ahh yes, you’re right ;)
    Use Rich’s code!

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    @nuprn1 @r-a-y Re #4. I see on etivite.com that there are two quote methods – one fancy AJAX that inserts an @-mention, and one more plain-jane

    Quote:
    style. The two are independent, right? Are they separated out in the Forum Extras plugin?
    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Also, Rich, are you volunteering to modify the move topic plugin so that it fixes activity items :-D ?

    Avatar of rich! @ etiviti
    rich! @ etiviti
    Participant

    @nuprn1

    sure i can help wherever – just point me in the right direction when the time comes.

    the fancy dancy ajax from my plugin is just inserting blockquote/cite (@- mention with permalink to said post – also using the same function i posted above to proper page) where as the normal quote is from a bbcode shortcode filter/set

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Yeah, I saw that. Just trying to figure how to fit it into the bp.org site. Having duplicate functionality probably isn’t ideal, so I’d want to pick one. And it’d be good to degrade gracefully. Have you checked the ajax in older browsers?

    Avatar of rich! @ etiviti
    rich! @ etiviti
    Participant

    @nuprn1

    degrade to non-functional. though a solution would be adding a “reply to topic page” which loads quoted post in the textarea (how other forums tend to operate) but that might be outside the scope what is needed here.

    Heck, I might add that to the plugin anyways :P since the bp-default theme does not include a reply textarea on each page w/o editing.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    I like the idea of having a no-js fallback, though it might take some manual theme edits to make it work right (is the default content of the forum textbox filtered?). In any case, not sure if it’s crucial for bp.org. Just mulling over whether it’s better to go with the bbcode-type

    Quote:
    solution (which is straightforward enough to type manually that it’s a viable no-js solution) or with the fancy ajax that will leave no-js high and dry when it comes to quoting.
    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    re: #5 – support forum – I coded something last night and have a *preliminary* working version. I basically wrote it from scratch since the bbPress one has too much code and I didn’t want to bother with porting it over ;)

    Boone, I’ll send you what I have right now, but I’m still looking at optimizing the plugin since I’m currently using bbPress’ topic meta to set and grab the support status, which might be overkill if you’re on a forum directory page as it will hit the DB for every topic. But, it functions well ;)

    *Edit – No longer uses topic meta in the topic loop! Close to public release.

Viewing 16 replies - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.