Elgg 1.8 Tidypics Group Fix

I’m creating a new community site using the Elgg 1.8 platform, but a lot of the widgets are still using the old 1.7 CSS for their displays so it means a lot of fixing.

The existing tidypics/views/default/tidypics/groupprofile_albums.php suffers from this problem but is simply fixed by changing

<br />

photos_enable != 'no') {<br /> echo '</p> <div class="group_tool_widget photos">';<br /> echo '<span class="group_widget_link"><a href="' . $vars['url'] . 'pg/photos/owner/' . page_owner_entity()->username . '">' . elgg_echo('link:view:all') . '</a></span>';<br /> echo '</p> <h3>' . elgg_echo('album:group') . '</h3> <p>';<br /> echo elgg_view('tidypics/albums', array('num_albums' => 5));<br /> echo '</p></div> <p>';<br /> }<br /> ?><br />

to

<br />

photos_enable != 'no') {<br /> echo '</p> <ul> <li>';<br /> echo '</p> <div class="elgg-module elgg-module-group elgg-module-info">';<br /> echo '</p> <div class="elgg-head">';<br /> echo '<span class="groups-widget-viewall"><a href="' . $vars['url'] . 'pg/photos/owner/' .page_owner_entity()->username . '">' . elgg_echo('link:view:all') . '</a></span>';<br /> echo '</p> <h3>' . elgg_echo('album:group') . '</h3> <p>';<br /> echo '</p></div> <p>';<br /> echo '</p> <div class="elgg-body">';<br /> echo elgg_view('tidypics/albums', array('num_albums' => 5));<br /> echo '</div> <p>';<br /> echo '</p></div> <p>';<br /> echo '</li> </ul> <p>';<br /> }<br /> ?><br />