Viewing 5 replies - 1 through 5 (of 5 total)
  • Same issue. No CSS tricks are working.

    Plugin Author Dwain Maralack

    (@dwainm)

    Hi, Please try the latest version and let me know if this fixes the issues. If not send me a link to your album page so I can see why css is not working.

    Thread Starter luigi.montagnoli

    (@luigimontagnoli)

    Hi Dwain,
    Thank you for your answer.
    I already installed the latest one. No luck!
    Any way I solved changing the fbasstylkes CSS and the album.php

    Plugin Author Dwain Maralack

    (@dwainm)

    Hi Luigi,

    If this is something that will help other users as well feel free to contribute it as a PR here: https://github.com/dwainm/Facebook-Album-Sync

    Thread Starter luigi.montagnoli

    (@luigimontagnoli)

    Hi Dwain, sorry for late reply.
    Unlucky I am not a very good programmer and a friend of mine helped me.
    Here is the code she attached to your own code:

    At the end of fbasstylkes.CSS there’s

    .fbalbum_thumb_row { width: 100%; text-align: center; }
    .fbalbum_thumb { display: inline-block; width: 20%; margin: 0 1em 1em; vertical-align: top; }
    .fbalbum_thumb img { height: 120px; margin: 0; max-width: 160px; margin-bottom: 0.5em;}

    The album.PHP is:

    <?php

    $fb_albums = file_get_contents(‘https://graph.facebook.com/WestandFriends/albums/?fields=id,name,type&limit=2000&#8217;);

    $json = json_decode($fb_albums);

    $i = 0;
    echo ‘<div class=”fbalbum_thumb_row”>’;
    foreach($json->data as $item) {
    if ($item->type == ‘normal’) {
    if ($i <= 3) {
    echo ‘<div class=”fbalbum_thumb”>id.'”><img src=”https://graph.facebook.com/&#8217; . $item->id . ‘/picture”>
    ‘;
    echo ” . $item->name . ‘</div>’;
    $i++;
    }
    else {
    echo ‘</div> <!– .fbalbum_thumb_row –>’;
    echo ‘<div class=”fbalbum_thumb_row”>’;
    $i = 0;
    }
    }

    }
    echo ‘</div> <!– .fbalbum_thumb_row –>’;

    ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Albums always on the top of the page (again)’ is closed to new replies.