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 />

if ($vars[’entity’]->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