1 (edited by Nonante 2010-12-08 10:24)

Topic: Small bug on userlist page

i've found a bug on the userlist page with extension pun_colored_usergroups.
This bug is present on this forum (eg: http://punbb.informer.com/forums/userli … +criteria).
Error report : <a> misnested or not properly closed.  Cloning <a> in order to preserve the styles applied by it.

<tr class="odd row1">
    <td class="tc4">
        <span class="group_color_7">
            <a href="http://punbb.informer.com/forums/user/39444/">Nonante</span>
        </a>
    </td>
    <td class="tc1">PunBB senior member</td>
    <td class="tc2">30</td>
    <td class="tc3">2010-05-10</td>
</tr>

Just change the hook "ul_results_row_pre_data_output"

<hook id="ul_results_row_pre_data_output"><![CDATA[
                    $forum_page['table_row']['username'] = '<td class="tc'.count($forum_page['table_row']).'"><span class="group_color_'.$user_data['g_id'].'"><a href="'.forum_link($forum_url['user'], $user_data['id']).'">'.forum_htmlencode($user_data['username']).'</span></a></td>';
        ]]></hook>

to

<hook id="ul_results_row_pre_data_output"><![CDATA[
                    $forum_page['table_row']['username'] = '<td class="tc'.count($forum_page['table_row']).'"><span class="group_color_'.$user_data['g_id'].'"><a href="'.forum_link($forum_url['user'], $user_data['id']).'">'.forum_htmlencode($user_data['username']).'</a></span></td>';
        ]]></hook>



Ok, the bug has been corrected on this forum, but it is still present in this extension. The correction is reupload on the wiki at this address: http://punbb.informer.com/wiki/_media/p … groups.zip

I don't speak English, but Google Translate is doing pretty good.