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
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | activity.gif | 11.02 KB | liliplanet |
| #5 | status.gif | 6.1 KB | liliplanet |
| #4 | activity.gif | 19.39 KB | liliplanet |
| #1 | Activity Settings for Facebook Status | 98.99 KB | icecreamyou |
Comments
Comment #1
icecreamyou commentedYour 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.
Comment #2
icecreamyou commentedFixed 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.
Comment #3
liliplanet commentedBrilliant thanx! Will try later today, most appreciated.
Comment #4
liliplanet commentedHi 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
Comment #5
liliplanet commentedJust something else as well please ..
The Update Status block also shows the username and not full name, also attached a screenshot ... :)
Comment #6
icecreamyou commentedPerhaps refresh your cache? (Go to admin/build/menu.) It's definitely set up correctly, and it works when I've tested it.
That's not even true on the image you posted, and I can't duplicate that behavior.
Fixed in the next -dev, which won't be released until your other problems are resolved.
Comment #7
liliplanet commentedHi 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
Comment #8
icecreamyou commentedSure, 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.
Comment #9
icecreamyou commentedfacebook_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.
Comment #10
icecreamyou commentedSo 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.
Comment #11
mr.andrey commentedsubscribing... looking for D6 Activity integration.
I guess we wait :)
Thanks,
A.
Comment #12
Flying Drupalist commentedI'll subscribe. :)