Comments

ezra-g’s picture

Removing local changes to the FBSMP module has changed the way the Facebook-style status UI works in Commons. We should commit to a UI so that we reduce the number of times this UI changes in significant ways.

a) The Commons Facebook-style status UI in the latest release from GitHub looks like this:

Only local images are allowed.

b) Out-of-the-box built via the 6.x-2.x branch's Drush make script (with local changes to FBSMP removed), it looks like this:
Only local images are allowed.

c) It's really supposed to look like this (From the Commons Interaction guide):
Only local images are allowed.

d) I did some experimental work to incorporate some elements from the FBSMP default UI in the experimental fbss-upstream branch, which looks like this:

Only local images are allowed.

So, in order of preference, the UI should be styled to look like c), a), or d).

Technical note: The fbss_custom.module included with Commons does some altering to this form that affects its appearance.

See #1256076 for a list of specific local changes to the FBSMP project that are present in the Commons GitHub repository.

icecreamyou’s picture

For the record, it shouldn't be too bad getting it back to (a) -- basically those changes weren't committed back to FBSMP on d.o from the Commons version because they didn't cover every case (e.g. they only worked correctly if just the Picture and Link plugins were enabled).

Anonymous’s picture

Sorry,
but as a relatively newbie to Commons, and recognizing that something is wrong with messaging, I detected this entry and my confusion is perfect.
I'm not [now] using github. But I read there is a new security update(2.3) as well and a message that we should NOT update to it now?!

Easy questions :

1. should we update to 2.3 ?
2. Are we still secure if we do not update?
3. I have a site online using drupal 6.22 and commons 2.2 and my Commons Facebook-style status UI looks like variant b.

WHAT shall I do to avoid more complains from my site members ?

I would be happy if someone could give me an explanation for an easy and handy way to solve point 3, without going that deep into github first.
Thanks in advance
$regs snoopje

.

ezra-g’s picture

@IceCreamYou: That's what I would expect. However, I've tried copying the CSS removed in the diff at #1256076 into commons_roots-styles.css but without having the desired effect. If this seems easy to you...patches welcome :).

@snoopje:

Yes, you should upgrade to Commons 2.3 by downloading it from http://network.acquia.com/downloads/drupal-commons and can expect it to work without introducing new bugs over Commons 2.2. However, your questions are off-topic from this issue. Please open a new issue so so that we can address them.

icecreamyou’s picture

It's more than just CSS; the markup is different too.

ezra-g’s picture

Exactly :).

ezra-g’s picture

Component: User interface » Theme
lightsurge’s picture

Do we really want facebook style status messages in our group homepages?

With two types of content (status/node) my site was becoming a mess with two places and two forms information could be held in... I actually think commons.acquia.com is becoming a mess for the same reason.

You can still have a facebook-style microblogging UI for group homepages using custom node forms... that's what I ended up doing, screenshots in http://drupal.org/node/1322322#comment-5204162.

With custom forms and QuickTabs module my UI is sort of a mixture of c/d.

david.moore.ipg’s picture

I think the activity stream model is simpler and more familiar to users than the complex dashboard that we had before. People can still search and find things they are looking for.

So, I see two separate issues.
1) do we want a simple microblog to share links, images and other attachments as an additional content type along with blogs, documents, polls, events, and discussions?
2) Do we prefer a simple activity stream page to the complex dashboard we had before.

lightsurge’s picture

People can still search and find things they are looking for.

A search will not turn up content that's in an FBSS status message.

So, I see two separate issues.
1) do we want a simple microblog to share links, images and other attachments as an additional content type along with blogs, documents, polls, events, and discussions?
2) Do we prefer a simple activity stream page to the complex dashboard we had before.

I still want both (and still do have both) - microblog and activity log streams.. I just don't see exactly why Commons is using FBSS statuses on group homepages instead of nodes, apart from the speed improvements we get from them being a lot 'lighter'. I don't see what they do that's sufficiently better than nodes and therefore worth the disadvantages in this context, which are mainly that they're not fully integrated with Drupal as nodes are.

OG groups are supposed to be areas that composite information in an effective way, it's difficult for them to do this if they have two competing content forms... one will win over the other. Nodes have to win, for the time being at least!

david.moore.ipg’s picture

Agreed, the fact that FBSS messages don't show up in searches is bad.

Agreed, the microblog should create nodes equivalent to the other content types.

If that were the case, I would not mind the microblog showing up on the streams page or the group page as a "default" way to create a quick post, especially if people just want to put up a quick message (status) or share a link or photo (why make them create a blog post for that).

Agreed, it is confusing to have both. I think something that looks like the activity stream (which looks like facebook) is a better initial interface to content than the dashboard panels concept in earlier releases.

That said, it would be preferable if the activity listing could be filtered by content type, group, tag, etc.

I think the hard part is trying to figure out the best way to combine the activity stream stuff (Fred joined this group, Joe and Sally are now friends, etc.) with node and other content creation (Jim added the [content type] [node name] in [group]).

It would be best if we could create the same "wall" type effect with a filterable view that treated microbogs and other content the same by putting short summaries right in the "stream" AND had activity updates interspersed.

Apples and oranges as far as drupal is concerned--difficult to implement--but I think it would fit what users expect in a wall/stream.

ezra-g’s picture

@david.moore.ipg & @lightsurge, thanks for the design feedback!

Let's keep this issue focused on the specific task here, which is making the current UI look decent with some styling fixes.

Could you open a new issue or post in http://groups.drupal.org/commons with this discussion? Thanks!

lightsurge’s picture

@david.moore.ipg

If that were the case, I would not mind the microblog showing up on the streams page or the group page as a "default" way to create a quick post, especially if people just want to put up a quick message (status) or share a link or photo (why make them create a blog post for that).

This is exactly what I've configured Commons to do... by chopping the blog node form into three portions.

@ezra-g

The reason I posted in this issue is that I believe that work on improving the FBSS UI for group status messages might be work in the wrong direction. I don't think having the FBSS/FBSMP UI is a good thing to have at all in the group stream. It's better to replicate it with a custom node form and use that instead (like I say, by chopping up the blog_node_form).

That said I do already have an issue open #1322322: Status messages are replacing nodes and will leave this one alone :)

ay13’s picture

StatusFileSize
new11.77 KB
new366 bytes
new703 bytes

Attached is the patch giving the functionality described in case 'C' in comment #1.

Also attached are the 2 new images used incase the diff --binary does not work.

ay13’s picture

StatusFileSize
new10.95 KB

Updated patch removing unnecessary comments.

ezra-g’s picture

Status: Active » Needs review

Thanks! Marking as "needs review"

icecreamyou’s picture

Status: Needs review » Needs work
+++ b/modules/features/commons_status_streams/fbss_custom/fbss_custom.js
@@ -0,0 +1,6 @@
+Drupal.behaviors.fbss_custom = function (context) {
+  $('.facebook-status-text-main').one('focus', function() {
+    $('.fbsmp-wrapper-outer').show();
+    $('.facebook-status-submit').show();
+  });
+}

Use $('selector', context) instead of $('selector') to only apply this to the HTML the behavior is currently supposed to operate on. This is important when markup is loaded onto the page via AJAX (as FBSS does). Also you need to make sure only to show the buttons near the status update form you're focusing on; otherwise your code will do unexpected things when multiple status update forms appear on the same page. As an example, this commit does basically the same thing you want, but for status comments (note that it uses $(context).find('selector') instead of $('selector', context), but it's the same thing).

ezra-g’s picture

This is a great start.

However, in Commons Origins, when focusing on the status textarea, what I see doesn't match the comp in Both Firefox 8 and Chrome 15 in Mac OS 10.7 Lion.

Here's a screenshot of both:

Only local images are allowed.

ezra-g’s picture

This patch seems close!

Also,

// add js for showing the buttons on form focus
drupal_add_js(drupal_get_path('module', 'fbss_custom') .'/fbss_custom.js');

The call to drupal_add_js() should be moved inside of the form_alter, to prevent the JS from being added on every page request.

Minor nitpick, please begin code comments with a capital letter per the code standards for comments :).

ay13’s picture

Status: Needs work » Needs review
StatusFileSize
new11.05 KB

Attached patch has all the updates suggested.

ay13’s picture

StatusFileSize
new11.97 KB

The last patch was against a patched version of FBSMP and not the dev version that commons uses.

Sorry for the mixup, the attached version should be better.

ezra-g’s picture

Status: Needs review » Needs work

This patch is looking great for me in Firefox & Chrome!

One thing I notice is that in a context where a user can post a private status update, the "private" checkbox is visible before the textarea has focus. I think this should be hidden along with the other controls until the textarea has focus for consistency.

icecreamyou’s picture

+++ b/modules/features/commons_status_streams/fbss_custom/fbss_custom.js
@@ -0,0 +1,9 @@
+Drupal.behaviors.fbss_custom = function (context) {
+  var ctxt = $(context);
+  ctxt.find('.facebook-status-text-main').each(function() {
+    $(this).one('focus', function() {
+      $(this).parents('.facebook-status-form').find('.fbsmp-wrapper-outer').show();
+      $(this).parents('.facebook-status-form').find('.facebook-status-submit').show();
+    });
+  });
+}

I would do this:

+Drupal.behaviors.fbss_custom = function (context) {
+  $('.facebook-status-text-main', context).one('focus', function() {
+    $(this).parents('.facebook-status-form').children(':not(.facebook-status-textarea-wrapper)').show();
+  });
+}

That will take care of the Private checkbox and anything else that might get added below the status update box. (I haven't tested this, you might need to tweak it a little.)

icecreamyou’s picture

Oh, also, you shouldn't set those form elements to display: none; in the CSS or people who have JavaScript disabled won't be able to save statuses. Hide them in JavaScript instead by doing something like this: $('.facebook-status-form', context).children(':not(.facebook-status-textarea-wrapper)').hide();

ay13’s picture

They are only hidden when JavaScript is enabled. It uses the js class Drupal sets on the HTML element when js is detected.

ay13’s picture

Status: Needs work » Needs review
StatusFileSize
new11.92 KB

Attached patch hides the private checkbox until text area has focus.

ay13’s picture

StatusFileSize
new11.95 KB

Sorry for the constant bombardment of patches. i found a bug when submitting multiple messages without page reload. the attached patch includes all previous fixes and fixes this new issue.

hoping this is the last patch for this issue.

ezra-g’s picture

Status: Needs review » Needs work

Thanks for your revisions!

I can confirm that with this patch the UI degrades acceptably in the versions of Firefox and Chrome mentioned above, with and without Javascript.

However, doing a functional test I noticed a few issues:

a) When logged in as an administrative user with the permission to administer blocks, I'm unable to share a status once the photo uploading form is present - Clicking on the "Share" button has no effect because the block administration control is above it
b) The controls (Link, File, Private) drop down awkwardly when the photo form is present. I think they should probably disappear until the photo form is dismissed.
c) This one is my fault: I didn't notice that screenshots A and C differ in the label and icon for the photo attachment button. To stay consistent with the functionality that Commons currently offers, let's leave this as "Photo" and use the camera-style icon that FBSMP ships with. Sorry I missed that from the beginning!

Only local images are allowed.

icecreamyou’s picture

Clicking on the "Share" button has no effect because the block administration control is above it

That one's actually my fault. Committed fix to FBSMP dev.

ezra-g’s picture

Wow - Thanks for the fast assist, @IceCreamYou!

This resolves issue a) for me, but I think it means Commons needs to adjust our styling somewhat, as the Share button no longer appears aligned:

Only local images are allowed.

ay13’s picture

Status: Needs work » Needs review
StatusFileSize
new11.97 KB

Attached patch has css fix for styling issue introduced by FBSMP update.

ezra-g’s picture

Status: Needs review » Needs work

The patch in #31 doesn't address points B and C from #28. @ay13, feel free to get in touch offline to discuss those.

ezra-g’s picture

Also, I'm seeing the same/similar button alignment issue from #18 on Mac OS with the latest FBSMP dev using the patch from 32. Only local images are allowed.

ezra-g’s picture

Status: Needs work » Fixed
StatusFileSize
new10.9 KB

ay13 passed me this patch directly, which resolves the issue in #33. Let's do further enhancements in new issues.

http://drupalcode.org/project/commons.git/commit/a0e0916

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kbettis’s picture

Version: » 6.x-2.5
Component: Theme » User interface