WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] multiple photos in a single line (14 posts)

  1. oduudo
    Member
    Posted 1 year ago #

    Hi,
    is it possible to show multiple photos in one line? Calling them with
    %%wppa%%%%photo=1%%%%size=140%% %%wppa%%%%photo=2%%%%size=140%% %%wppa%%%%photo=3%%%%size=140%%
    leads to showing each picture in a separate line.
    Didn't find a solution here by searching, perhaps its so easy, that no one ever had this question?
    thanks,
    Udo

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    It is not recommended to use single photos this way, as a lot of overhead code and data comes with the photo into the page source. Also there are a few places where 'clear:both' is required.

  3. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Try this instead:

    %%wppa%%%%mphoto=1%%%%size=140%%%%align=left%% %%wppa%%%%mphoto=2%%%%size=140%%%%align=left%% %%wppa%%%%mphoto=3%%%%size=140%%%%align=left%%

    i.e. mphoto= in stead of photo=, and align=left added.

  4. oduudo
    Member
    Posted 1 year ago #

    Thanks for the tipp.
    Is mphoto a new feature? I didn't find it in the scripting reference on your website?
    Tried it and orientation of the pics in one line is ok, have to look, if I can rid of the background then, because all photos are assembled in that grey box. Think the classic picture placing seems to be the better way...
    Udo

  5. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    mphoto is (approx) equal to the representation of a generic wp media photo with caption. It exists already a very long time, but indeed i forgot to document it in the scripting reference, Thanx! I will add it.

    btw: if the photo description contains html and html is allowed (Table IX-A1) the description in a mphoto display will be correct by the next version (4.6.3, available tomorrow(?))

  6. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    I could implement something like %%photoonly=..%% if that would help you?

  7. oduudo
    Member
    Posted 1 year ago #

    sounds good. The normal way to place photos, as you proposed, would be ok, but a photoonly (or better a mphotoonly?) would be fine because all things dealing with photos would be done by using your fabulous plugin.
    Its a matter of all or nothing.... ;-)
    I think I mark this thread as resoved.
    Thanks,
    Udo

  8. oduudo
    Member
    Posted 1 year ago #

    hello opajaap,
    after you implemented this fabulous editor butto I came back to my problem. Did you have a chance in looking for the %%photoonly%%??
    Think, it could be a nice idea to handle some single photos in the context of your album management... ;-)
    thanks,
    Udo

  9. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Thanx to your question on this topic i can announce you that in version 4.7 the concept of single photo will be redesigned ( it is, but not released yet, must still make the links and backgrounds ). It will no longer carry a lot of ballast with it, and will no longer be discouraged to use.

    If you ar up to rev (4.6.12) you can try it:

    edit wpa-functions.php, line 395-397:

    //	elseif (wppa_page('oneofone')) {	// New style single photo
    //		wppa_sphoto();
    //	}

    remove the // 3 times.

    The links are the links for mphoto (See Table VI), but will become separately settable (you may have to reconfigure once this is released) and there are no background settings yet.

    Use (example):

    %%wppa%% %%photo=1113%% %%size=260%% %%align=left%%
    %%wppa%% %%photo=4711%% %%size=260%% %%align=left%%
    %%wppa%% %%photo=13%% %%size=260%% %%align=left%%

    to get them on a row; if you ommit align they wil be displayed below each other.

    Please try this and give me some feedback. Now i can still change things easily.

  10. oduudo
    Member
    Posted 1 year ago #

    Oh, glad to read this.
    Just gave it a quick look and tested it, seems to work fine on the first sight. I give it at further look tomorrow, have to go to sleep.... ;-)
    thanks, Udo

  11. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    The plans are as follows now:

    We drop the old implementation of a single photo as being a slideonly show with one photo only, having the optional border as settable in Table III-A2 and having the linksystem as in Table VI-8.

    We adapt the new implementation as you tested, but with line 0 in Table VI, equivalent to line 1 (for mphoto), i.e. its own link structure.

    For single photos (Sphoto as opposed to Mphoto) there is no longer a border as implemented for the slideshow, see Table III-A2 and Table I-B4.

    If you really want a (background) border, there is a new class .wppa-sphoto to make it manually.

    This is the quickest and most robust way with the less overhead as possible, still having the full wppa+ linkfeatures.

    If you can agree with this (the only thing that disappears is the background/border and of course much overhead!) it can be released in a few days (needs changing some texts in the settings page, because some things apply no longer to fullsize and slideshow, but to slideshow only)

  12. oduudo
    Member
    Posted 1 year ago #

    Hello opajaap,
    just have no time for testing, for I'm going to holidays tomorrow morning.
    But I think what you write sounds quite good. Its the simplest way to use some single photos out of the photo database without having this overhead.
    I look forward to your next release, when I will be back in about two weeks.
    Have a good time,
    Udo

  13. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    I managed to keep the background/border equal to the slideshow (as it is now) so you should only see its faster, less code and easyer to have multiple on a row.
    For a preview: http://beta.opajaap.nl/empty-page/
    Will be released in a few days as version 4.7.0

  14. oduudo
    Member
    Posted 1 year ago #

    back from holiday.
    updated to 4.7, seems to work perfect.
    thanks for that,
    Udo

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic