Closed (fixed)
Project:
Facebook-style Statuses (Microblog)
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
11 Sep 2008 at 17:22 UTC
Updated:
28 Sep 2008 at 22:22 UTC
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?
Look forward to any reply.
Lilian
Comments
Comment #1
liliplanet commentedsorry, quick update. Full Name appears great with [author] in Activity settings. Just in the blocks, as well as the user it shows the username ...
Also unable to disable (Off) the following even when saved.
Facebook Mode
Facebook Mode makes this module work like Facebook, where the user's username is appended to the front of the status. Default is On.
Slide Effect
With this enabled, users who have permission to edit statuses can click on the status to see the edit box drop down. This minimizes the space that Facebook Status takes up. Default is On.
Thank you so much!
Lilian
Comment #2
icecreamyou commented1) You're seeing this behavior because the module grabs the username from the database directly instead of pulling it from the user object. I'm planning to make a couple of upgrades this weekend, and I'll fix this then.
2) Your second problem is a duplicate of #301767. As I can't figure out why it's not working, you can temporarily use the variable_set command (create a new page in PHP mode with the appropriate [one line of] code, and set the variable by previewing the page once). Look in facebook_status.install under hook_uninstall for a list of variables.
3) If you have multiple problems, please open separate issues for them in the future.
Comment #3
icecreamyou commentedComment #4
icecreamyou commentedFixed in 5.x in the next -dev release, but not for 6.x (yet).
Comment #5
icecreamyou commentedAdded to 6.x now too.
Comment #6
liliplanet commentedThat is tremendous IceCreamYou! look forward to download the new 5.x release. Wishing you a great week. Lilian
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.