Jump to content

Open Coterie  ·  19 members

SMF Staff People

Avatars link to nonexistent user profiles


Snickerdoodle
 Share

Recommended Posts

No biggie, but the character avatars in threads link to nonexistent users (or existing ones if their character id number is low enough). I've changed this in display.template

<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">

to this

<a href="', $scripturl, '?action=characters;area=profile;id=', $message['member']['id'], '">

because we mostly post in-character, anyway... but that makes it so OOC avatars link to character profiles... and I dunno how to make it so it does either/or

Link to comment
Share on other sites

<a href="', $scripturl, '?action='.($message['id_character'] ? 'characters;area=profile;id' : 'profile;u').'=', $message['member']['id'], '">

In Display.php, find this, should be in function prepareDisplayContext

'can_see_ip' => allowedTo('moderate_forum') || ($message['id_member'] == $user_info['id'] && !empty($user_info['id'])),

Add this under it

'id_character' => !empty($message['id_character']) ? true : false,

 

  • Fuck Yeah! 1

nusignature.png nusignature.png

I am the darkness, always watching, always listening, ALWAYS THERE.
(If you're interested in Plain of Ice, message me, it's private. Bleach site, non-canon.)

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.