The Mentions filter doesn't work with the fairly recent dev release of FB-style status.

When I post a status with a username in it, the @username is converted to a link, and it's even converted to the right one, but the actual text of the link appears as @[user] instead of as @username.

It's very odd. How to fix?

Comments

lordofthelake’s picture

Same problem. Subscribing.

lordofthelake’s picture

I've done some debugging and it seems that something is broken in Tokens module, not in Mentions (at least this has been my impression). In any case, it's not a problem with FBSS, with nodes it's just the same.

Since I needed this to be working quickly, my solution has been to simply override the whole function in my theme's template.php and bypass Tokens altogether. I'll paste here the code, just in case someone is looking for a quick & dirty solution until this is fixed.

function mytheme_mentions($user) {
	return l('@' . $user->name, 'user/'. $user->uid, array('attributes' => 
		array(
			'class' => 'mentions mentions-'. $user->uid,
			'title' => '@' . $user->name,
		)
	));
}

Regards,
- M.

bflora’s picture

Lordofthelake! My hero! Works like a charm. Well-played, good sir. Well-played.

deciphered’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

There is no further Drupal 6 development planed for Mentions. Sorry this issue was never resolved.