Support » Plugin: Darkroom Facebook Photo Gallery » [Plugin: Darkroom Facebook Photo Gallery] It is broken with the latest versino of WP
4 years, 11 months ago
Here is a screenshot:
Did you try it in a REAL website?
You are running it on a simulated server on your computer. It’s not even a real Apache server. I’m not sure Facebook API allows every mutant configuration we want.
Second: There’s no plugin_sandbox_scrape() function in the whole plugin (the part I build nor the original fotobook plugin)
Third, the the loop looks fine. I just run it by itself.
You can test it anywhere online like here http://writecodeonline.com/php/
$albums = array ('album1', 'album2');
foreach($albums as $album):
$page_id = $albums[$curr_album]['page_id']; ?>
<div class="album" id="album-<?php echo $curr_album; ?>" style="left: <?php echo ($curr_album-1) * 100/sizeof($albums); ?>%; width: <?php echo 100/sizeof($albums) ?>%; ">
<?php echo fb_display_album($page_id); ?>
<div class="descr_cont"><p class="descr"><?php echo trim($album['name']); ?></p></div>
<?php $curr_album ++;
Let me know if it doesn’t work online, or in a real Apache server (Apple computers have its own, and every day it’s easier to setup)
Can you rate it “works” if you make it work in any other installation?