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

<?php
/***********************************************
*
* This is used on the group profile page
*
***********************************************/

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

to

<?php
/***********************************************
*
* This is used on the group profile page
*
***********************************************/

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

About rus

Arrogant, narcissistic and imperatively logical. I first started coding in the mid 80s on an Amstrad 6128, entering games found in the back of Amstrad Action.After watching Hackers and falling in love with Angelina Jolie I installed Slackware 2.0 on a P200 in 1997and spent the next 6-7 years studying computery things at various colleges and universities.Several years later I can now be found in an office premises by day sat in front of a Macbook, using a Windows VM to manage Linux servers, or in a field by night, fire dancing and holding pyrotechnics casually in my hands whilst they explode.

Trackbacks/Pingbacks

  1. Odd Occurrences In Apache Access Logs | idimmu . net - March 27, 2013

    [...] views for my Elgg CSS Fix page this month. For the record at the time of writing the site has had 6908 unique views and the [...]

Leave a Reply