Open airflo opened 8 years ago
In case some other person new to Dokuwiki and PHP stumbles over this issue and wonders what to do to make it work:
in dokuwiki_directory/lib/plugins/groupusers/syntax.php replace the line
$renderer->doc .= htmlspecialchars($user);
by the following lines:
$renderer->doc .= '<td>';
$renderer->internallink('user:'.hsc($user));
$renderer->doc .= '</td>';
This will result in a link to the userhomepages (which are located in the namespace user) of all users of the given group in the first column of the table. If you leave out 'user:'.
the current namespace will be used.
You could leave out hsc()
, too, but as I read somewhere that htmlspecialchars()
or hsc()
is a security measure, I decided to leave it in. Probably somebody put it in for a good reason ;-)
Since a few weeks, there are no more user links shown. Comparing files shows, that a portion of the render function is now different to the plugin's info page at https://www.dokuwiki.org/plugin:groupusers.
NOW:
$renderer->doc .= htmlspecialchars($user);
BEFORE:
Maybe there was a mixup, please fix.
Best regards,
Florian