Sorry, if I got this wrong. I suppose placing the label Status right before #edit-name label is just overwhelmed since we already have that as a block title. Will this possible to remove that additional label so that we don't have something like:

Status: admin:

Which produces unnecessary double colons at the same line. Thanks

Comments

icecreamyou’s picture

Component: Miscellaneous » User interface
Priority: Normal » Minor
Status: Active » Closed (won't fix)

The standard way to do it, that's already part of the module, is to turn Facebook Status Mode off in the module's settings. However, that gets rid of a number of other things that you might want.

I'll interject as well that the reason the name is in the label is to make it more coherent, so the user knows that their status will be in the form "[username] [status]" instead of just "[status]." You may want to reconsider the title of your block...

I'm not going to change this in the module (although in the next version, the colon after "Status" in the label will be translatable). But if neither of those options works for you, you can simply add this line in the code after line 295:

  else {
    $xname = '';
  } //line 295
  $xname = ''; //this is the line you should add
  $status = facebook_status_get_status();
  //Warning: the status column in the {facebook_status} table only holds 255 bytes.
gausarts’s picture

Ok, sorry for not getting the point. Actually what I had in mind was simply:

[username]: the facebook_status form-text

Without label Status:. That would make more like facebook status form, with a simple touch of CSS floating or inline. I don't want to touch the module, but I have to give that code a try to fit the current need. Thanks

icecreamyou’s picture

Assigned: Unassigned » icecreamyou
Status: Closed (won't fix) » Fixed

Ah. Well the word "Status" is translatable right now and in the next -dev release the colon will be too. So to get rid of that and just use the username, you just need to set the translation to blank.

If you don't want to wait or you don't want to mess with translations, replace line 302 with this:

    '#title' => $xname,

...and comment out line 291:

//    $xname = ": " . $xname;
gausarts’s picture

Wow, great and thank for the quick reply. I was still thinking over to express the right things in my mind, but you come quickly with the answer. Lots of thanks.

icecreamyou’s picture

No problem.

By the way, if you'd like to post the CSS in here to get the username to display on the same line as the status-update field, I wouldn't mind adding that to the module. I've been thinking I should do that at some point.

gausarts’s picture

StatusFileSize
new93.93 KB

I haven't made any change to the module, but I should confirm if this is indeed like facebook:) Please correct me:

gausarts’s picture

StatusFileSize
new141.11 KB

Here's after your suggestion

icecreamyou’s picture

Status: Fixed » Postponed (maintainer needs more info)

Yes... I'm now understanding even better why this issue was opened. :)

My question was, how did you get the label inside the textfield without allowing it to be edited? I will understand any code you show me, I just sometimes have a hard time writing my own CSS. I know you don't have to modify the module to do this, but if you show me what you did then maybe I can integrate it.

gausarts’s picture

StatusFileSize
new107.68 KB

Here is the CSS code for my specific block need. Uncleaned, as most are just to override precedent CSS codes:

.profile .facebook_status_block{
background:#EFF2F3 ;
border:#E2E9EB solid 1px;
margin-bottom:10px;
overflow:hidden;
padding:5px 5px 5px;clear:both;
-moz-border-radius-bottomleft:6px;
-moz-border-radius-bottomright:6px;
-moz-border-radius-topleft:6px;
-moz-border-radius-topright:6px;
}

.facebook_status_form #edit-name-wrapper{
border:#ccc solid 1px;margin:5px;width:360px;overflow:hidden;font-size:14px;padding:2px}
.facebook_status_form #edit-name-wrapper:hover{background:#fff;}
.facebook_status_form{display:block;height:40px;margin-bottom:10px}
.facebook_status_block .description{display:none}/*have to do this as already stated by the block title*/
.facebook_status_block .form-item label{
float:left;color:#ccc;font-weight:normal;display:inline;margin:1px 0 0;padding:0;text-align:left;width:auto;max-width:120px;overflow:hidden}

.facebook_status_block #edit-name-wrapper,
.facebook_status_block .form-submit{float:left;display:inline;clear:none;height:auto;margin:5px 0 5px 5px}

.facebook_status_block input#edit-name{
float:left;
max-width:95%;border:0;background-color:transparent;display:inline;overflow:hidden}/*still have the problem with the ideal width this far*/

.facebook_status_status{clear:both;font-size:15px}
.facebook_status_block span.submitted{font-size:10px}
gausarts’s picture

I guess if you can make the $xname placed inside a span, even without making you go to table design, only with pure CSS, we can correct the problem with the width of .facebook_status_block input#edit-name. Haven't tried myself to hack the module, just a guess. Thanks

icecreamyou’s picture

I still can't duplicate what you've got--the label won't appear inside the textfield. If you'd like to write a patch to make this work (it doesn't have to be patch format since I'll apply it manually anyway) using drupal_add_css I'll probably integrate it; if not, we can just mark this issue as fixed.

gausarts’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok, thanks, fixed. Just to clarify things, I didn't do anything with the module. It's only CSS. The label is not inside the textfield, only appears to be inside it. They just stay inline. Then .facebook_status_form #edit-name-wrapper pretends to be the textfield:) Thanks again for the support.

icecreamyou’s picture

I know that; but the CSS could be added to the module if I could figure out the #edit-name-wrapper part.

Anyway, thanks for the head-start, and I'm always happy to help.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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