Loading...
 
Skip to main content

Plugin AVATAR default link doesn't work for users whose information is public

Status
Closed
Subject
Plugin AVATAR default link doesn't work for users whose information is public
Version
2.x
3.x
Category
  • Usability
Feature
Wiki Plugin (extends basic syntax)
Resolution status
Invalid
Submitted by
lindon
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

For users whose information is public, the plugin is supposed to automatically make the avatar into a link to the user's user information page. However the link is incomplete, missing the last userid number at the end.

In the following code, the $id variable is apparently not capturing the userid number:

Line 47 from wikiplugin_avatar.php: used to set link
Copy to clipboard
if (isset($page)) { $avatar = "<a href='tiki-index.php?page=$page'>" . $avatar . '</a>'; } else if ($userlib->user_exists($data) && $tikilib->get_user_preference($data, 'user_information', 'public') == 'public') { $id = $userlib->get_user_login($data); $avatar = "<a href='tiki-user_information.php?userId=$id'>" . $avatar . '</a>'; }
Solution
Workaround
Importance
3
Priority
15
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2476
Created
Sunday 03 May, 2009 00:21:37 UTC
by Unknown
LastModif
Monday 25 May, 2026 20:20:48 UTC


Show PHP error messages