WordPress.org

Ready to get started?Download WordPress

Forums

Darkroom Facebook Photo Gallery
It is broken with the latest versino of WP (3 posts)

  1. meglio
    Member
    Posted 2 years ago #

  2. SocialBlogsite
    Blocked
    Plugin Author

    Posted 2 years ago #

    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');
    function fb_display_album(){
    return true;
    }
    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) ?>%; ">
                    <div class="sub-album">
                            <?php echo fb_display_album($page_id); ?>
                    </div>
                    <div class="descr_cont"><p class="descr"><?php echo trim($album['name']); ?></p></div>
    			</div>
    			<?php $curr_album ++;
    			endforeach;

    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)

  3. SocialBlogsite
    Blocked
    Plugin Author

    Posted 2 years ago #

    Can you rate it "works" if you make it work in any other installation?
    Thanks :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic