Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: More CSS madness


LPH2005
Participant

@lph2005

@paulhastings0 it’s a mixture of BP-Album Media, a nightly build, but I did not change the database from a previous installation. Next, some code was copy/pasted, modified to show the photos and videos along with a widget for login/logout differences.

`

<?php
global $bp, $featured_template;

// STEP 1: Run the default query. It will use the options set in the admin back end.
bp_album_featured_query_items();

$row_count = 0;

// STEP 2: Test if items were found. If so, open the CSS block.
if ( bp_album_featured_has_items() ) : ?>

<?php
// STEP 3: Iterate through the items the query has found, printing each one out.
while ( bp_album_featured_has_items() ) : bp_album_featured_the_item(); ?>

<?php

$row_count++;

if($row_count == (int)$bp->bpa->options){
echo ‘

‘;
$row_count = 0;
}

endwhile;

// STEP 4: Close the CSS block. ?>

<a href="” class=”media-image”>

<?php

endif;

?>

<form name="login-form" id="sidebar-login-form" class="standard-form" action="” method=”post”>

<input type="text" name="log" id="sidebar-user-login" class="input" value="” />

<input type="submit" name="wp-submit" id="sidebar-wp-submit" value="” tabindex=”100″ />

`

Skip to toolbar