Pit$Bull wrote:lefty74 wrote:I have announcement centre installed (but not automod) and have no issues sending pm's to any user.
Sorry, I didn't mention that all PM's send correctly. I just get the error message.
Hi, just wanted to let you know that on a fresh local install I am getting the same error.
On my upgraded up to date board I don't.
So far, I believe my mod discovered this as an issue rather than causing it if you know what i mean.
Will see if I can get to the bottom of it...
modernist wrote:Hello!
I hope this hasn't been answered before, but I really haven't found an answer using the search function for this thread.
Is it possible to make the image of the avatar clickable so that it links to the profile just like {bdannounce.ANNOUNCEMENT_USERNAME} does? Actually I just need what to put in for the href:
<a href="?">{bdannounce.ANNOUNCEMENT_AVATAR}</a>
Any ideas?
in includes/functions_announcements.php
find
Code: Select all
'ANNOUNCEMENT_AVATAR' => ($row['user_avatar']) ? get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $bdavatar_width, $bdavatar_height, $row['username']) : '<img src="' . $phpbb_root_path . 'styles/' . $user->theme['imageset_path'] . '/theme/images/no_avatar.gif" height="' . $config['announcement_ava_max_size'] . '" width="' . $config['announcement_ava_max_size'] . '" title="" alt="" />',
replace with
Code: Select all
'ANNOUNCEMENT_AVATAR' => ($row['user_avatar']) ? '<a href="' . get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']) . '">' . get_user_avatar($row['user_avatar'], $row['user_avatar_type'], $bdavatar_width, $bdavatar_height, $row['username']) .'</a>' : '<a href="' . get_username_string('profile', $row['user_id'], $row['username'], $row['user_colour']) . '"><img src="' . $phpbb_root_path . 'styles/' . $user->theme['imageset_path'] . '/theme/images/no_avatar.gif" height="' . $config['announcement_ava_max_size'] . '" width="' . $config['announcement_ava_max_size'] . '" title="" alt="" /></a>',
Frank Hatfull wrote:Could it be something I did in the code mods?
thanks Frank
i dont know, easiest to check is to uninstall the announcement centre and see if you still have the problem.