WordPress.org

Ready to get started?Download WordPress

Forums

Embed Picasa Album
[resolved] Latout Problem (12 posts)

  1. prodigiworld
    Member
    Posted 1 year ago #

    Love your plugin, very easy and simple, the only problem that i have is the picture is always in top left with text wrapping it. Is it possible to have the picture to be on the middle without text wrapping on it?

    Thanks!

    http://wordpress.org/extend/plugins/embpicasa/

  2. marchenko.alexandr
    Member
    Plugin Author

    Posted 1 year ago #

    Just add to your styles.css something like this:

    .embpicasa {
        display: block;
        clear: both;
        margin: 1em auto;
    }
  3. prodigiworld
    Member
    Posted 1 year ago #

    Hi is not really working, I already add to style.css, what is the problem?
    I also use/enabled your pagination that I found on the support on this site, cool...

    Any idea?

  4. marchenko.alexandr
    Member
    Plugin Author

    Posted 1 year ago #

    May be there is floats before gallery and\or pager tryp to add style="clear:both" to pager paragraph

  5. prodigiworld
    Member
    Posted 1 year ago #

    Hi Thanks for such quick response, Im sorry but how do I do that? whare that I should insert this style="clear:both"?

  6. marchenko.alexandr
    Member
    Plugin Author

    Posted 1 year ago #

    <p style="clear:both"><?php /* ... pager ... */</p>
    <ul class="embedpicassa">...</ul>
  7. prodigiworld
    Member
    Posted 1 year ago #

    Hi thanks for your suggestion, after I add this the page stop rendering the contents. Any other idea?

  8. prodigiworld
    Member
    Posted 1 year ago #

    Here's my loop-picasa.php

    <?php
    ?>
    <p style="clear:both">
    <?php /* ... pager ... */</p>
    <ul class="embpicasa">
    <?php foreach($photos as $photo):?>
    	<li>
    		<a title="<?php echo $photo['title']?>" rel="lightbox[<?php echo $id?>]" target="_blank" href="<?php echo $photo['fullsize']?>">
    			<img src="<?php echo $photo['thumbnail']?>" alt="<?php echo $photo['title']?>" />
    		</a>
    	</li>
    <?php endforeach;?>
    </ul>
  9. marchenko.alexandr
    Member
    Plugin Author

    Posted 1 year ago #

    <p stlye="clear:both">
    <?php
    $total = count($photos); // number of images
    $per_page = 6; // count of images to show per page
    $current = isset($_GET['picasa_page']) ? max(1, intval($_GET['picasa_page'])) : 1; // current page number
    
    // render pager http://codex.wordpress.org/Function_Reference/paginate_links
    echo paginate_links( array(
    	'format' => add_query_arg('picasa_page', '%#%'),
    	'current' => $current,
    	'total' => round($total / $per_page)
    ) );
    ?>
    </p>
    
    <ul class="embpicasa">
    <?php for($i = $current; $i < $current + $per_page; $i++): $photo = $photos[$i];?>
    	<li>
    		<a title="<?php echo $photo['title']?>" rel="lightbox[<?php echo $id?>]" target="_blank" href="<?php echo $photo['fullsize']?>">
    			<img src="<?php echo $photo['thumbnail']?>" alt="<?php echo $photo['title']?>" />
    		</a>
    	</li>
    <?php endfor;?>
    </ul>
  10. prodigiworld
    Member
    Posted 1 year ago #

    Hi thanks for trying, looks like my current themes overwrite everything, I dont know how to fix this..you can have a look at here..
    http://pendek.in/j7mw

  11. marchenko.alexandr
    Member
    Plugin Author

    Posted 1 year ago #

    add to your styles.css following:

    .embpicasa {
        overflow: hidden;
        display: block;
    }
  12. prodigiworld
    Member
    Posted 1 year ago #

    my god, it doesn't work... thanks for trying... desperate :(

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic