Hi!

Thank you for your stunning module. I have slight problem as I convert username to full name in my template.php. Therefor everywhere in my site the full name appears.

in template.php

function phptemplate_username($object, $link = TRUE) {
if ( $object->uid ) {
$type = "profile";
  $sql = "SELECT nid FROM {node} WHERE uid = %d AND type = '%s'";
  $nid = db_result(db_query($sql, $object->uid, $type));
   if ( $nid ) {
   $profile = node_load($nid);
  }
}
$name = $profile->field_name[0]['value'] . ' ' . $profile->field_lastname[0]['value'] ;
if ( $name ) {
    if ( $link && user_access('access user profiles')) {
      return l($name, 'user/'. $object->uid, array('title' => t('View Member Profile.')));
    }
    else {
      return check_plain($name);
    }
}

In Activity the full name appears from my username with [author] on node and comment activity, but unfortunately not with Facebook Status.

Is there a possibility of having the full name appear on Facebook Status as well please?

I've submitted this request some months ago, and said it was fixed in 5.x-1, but don't think it ever was committed.

Look forward to any reply.
Lilian

Comments

icecreamyou’s picture

Assigned: Unassigned » icecreamyou
Category: support » feature
Priority: Normal » Minor
Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new98.99 KB

Your request several months ago was to theme the usernames rather than display simple links in the general UI. This was committed.

This request is different, and I think the functionality is already there. As it says right above the textfield on the Activity Settings page (see attachment), you have two options for authors: [author-name], which displays only the author's name, and [author-name-link], which displays a link to the author's profile. [author] is not defined, and does nothing.

Or did you want a token which displays the author's username themed? I probably should have done that when I wrote the Activity integration to start with... I'll commit it tonight.

icecreamyou’s picture

Title: Theme username in facebook_status » Themed username token for Activity
Status: Postponed (maintainer needs more info) » Fixed

Fixed in the next -dev.

I had some problems with [author]. Apparently the system likes to set [author] itself, so the new token is [author-theme]. Enjoy.

liliplanet’s picture

Brilliant thanx! Will try later today, most appreciated.

liliplanet’s picture

Status: Fixed » Active
StatusFileSize
new19.39 KB

Hi IceCreamYou,

I have tried the latest dev version (posted 13 November), and still the same. The username shows and not the full name. (see attached screenshot)

admin (for instance should be lilian ..)

Also discovered when you user [author-theme] it shows the username of the current logged in user and not of your buddy, etc.

Thank you so much, and would love to run your wonderful module.

Lilian

liliplanet’s picture

StatusFileSize
new6.1 KB

Just something else as well please ..

The Update Status block also shows the username and not full name, also attached a screenshot ... :)

icecreamyou’s picture

Status: Active » Postponed (maintainer needs more info)

I have tried the latest dev version (posted 13 November), and still the same. The username shows and not the full name.

Perhaps refresh your cache? (Go to admin/build/menu.) It's definitely set up correctly, and it works when I've tested it.

Also discovered when you use [author-theme] it shows the username of the current logged in user and not of your buddy, etc.

That's not even true on the image you posted, and I can't duplicate that behavior.

The Update Status block also shows the username and not full name

Fixed in the next -dev, which won't be released until your other problems are resolved.

liliplanet’s picture

StatusFileSize
new11.02 KB

Hi IceCreamYou,

Hope this message finds you very well. IceCreamYou, just downloaded latest version (20 November) and still the same.

It has the username and not full name as created in my template.php

May I contact you directly? Perhaps you have time to login to my site .. and I will pay you for your time.

Look forward to your reply.
Lilian

icecreamyou’s picture

Sure, just use my contact form. The problem is time, not money, but it would help if I could log in to your site and get a better idea of what the problem is. I'm planning to fix this if I can find the problem regardless of whether you pay me.

icecreamyou’s picture

Category: feature » support
Priority: Minor » Normal
Status: Postponed (maintainer needs more info) » Postponed

facebook_status.module is only compatible with Activity 5.3.x. You're using Activity 5.4.x. Integration will be added with Activity 5.4.x (and 6.1.x) once a stable version is released. At that point integration with Activity 5.3.x will also be ceased.

icecreamyou’s picture

Title: Themed username token for Activity » Activity 5.4/6.1 integration
Status: Postponed » Closed (duplicate)

So because it turns out that the token was actually working in Activity 5.3 - or at least, it will be in the next -dev - this is actually a request for Activity 5.4 integration, which is a duplicate of #314950.

mr.andrey’s picture

subscribing... looking for D6 Activity integration.

Integration will be added with Activity 5.4.x (and 6.1.x) once a stable version is released.

I guess we wait :)

Thanks,
A.

Flying Drupalist’s picture

I'll subscribe. :)