Re: Easy change of activity-design
You could achieve zebra striping of the activity-stream LI elements using this approach (tested as working but I would defer to the more experienced as to whether it’s a valid or best)
In file bp-themes/bp-default/activity/activity-loop.php
add line ‘<?php $class = ‘even’; ?>’ above line 20 ‘<?php while ( bp_activities() ) : bp_the_activity(); ?>’
Immediately below the while loop on line 20 add:
‘<?php $class = ($class == ‘even’) ? ‘odd’ : ‘even’; ?>’
To print out the odd or even classes go to the file:
bp-themes/bp-default/activity/entry.php
And add :
‘<?php print $class; ?>’ to line 5 so it looks like:
‘<li class=”<?php bp_activity_css_class() ?> <?php print $class; ?>” ‘
You can then style the classes ‘odd’ and ‘even’ as you wish.