WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] Image Description on the right side of the image (3 posts)

  1. richardgvas
    Member
    Posted 3 years ago #

    Hi, how are you doing? This plugin is quite useful, I like it so much, but I am trying to do a new thing. I want to display the description of the images in a slideshow into the right, I mean, the image on the left and the description into the right. Is it possible? I was trying to do so but without any results.

    Many thanks,

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 3 years ago #

    At first try this (the numbers are examples, use the right ones):

    %%wppa%%
    %%slide=3%%
    %%size=350%%
    %%align=left%%

    Now, you will see that the text of the page will be placed to the right of the photo. But not yet 'The description' of the photo.

    You have to modify wppa_theme.php for that.
    First see This topic on my test and demo site on how to.

    Then, modify as follows (again, the numbers are guesses of me):

    original:

    elseif (wppa_page('slide') || wppa_page('single')) {							// Page 'Slideshow' or 'Single' in browsemode requested
    		// The next 7 lines define the display of the fullsize images and slideshows.
    		// You may change the order of them. Do not leave one out, if you do not want a particular box,
    		// you can switch it off in the Photo Albums -> Settings admin panel.
    		wppa_startstop('optional');				// The 'Slower | start/stop | Faster' bar
    		wppa_slide_frame();						// The photo / slide
    		wppa_slide_custom('optional');			// Custom box			// Reserved for future use
    		wppa_slide_rating('optional');			// Rating box
    		wppa_slide_filmstrip('optional');		// Show Filmstrip
    		wppa_slide_description('optional');		// The description of the photo
    		wppa_slide_name('optional');			// The name of the photo
    		wppa_browsebar('optional');				// The 'Previous photo | Photo n of m | Next photo' bar
    		//
    		wppa_run_slidecontainer('slideshow');	// Fill in the photo array and display it
    	} // wppa_page('slide')
    wppa_container('close');

    Modified:

    elseif (wppa_page('slide') || wppa_page('single')) {							// Page 'Slideshow' or 'Single' in browsemode requested
    		// The next 7 lines define the display of the fullsize images and slideshows.
    		// You may change the order of them. Do not leave one out, if you do not want a particular box,
    		// you can switch it off in the Photo Albums -> Settings admin panel.
    		wppa_startstop('optional');				// The 'Slower | start/stop | Faster' bar
    		wppa_slide_frame();						// The photo / slide
    		wppa_slide_custom('optional');			// Custom box			// Reserved for future use
    		wppa_slide_rating('optional');			// Rating box
    		wppa_slide_filmstrip('optional');		// Show Filmstrip
    //		wppa_slide_description('optional');		// The description of the photo
    		wppa_slide_name('optional');			// The name of the photo
    		wppa_browsebar('optional');				// The 'Previous photo | Photo n of m | Next photo' bar
    		//
    		wppa_run_slidecontainer('slideshow');	// Fill in the photo array and display it
    	} // wppa_page('slide')
    wppa_container('close');
    if (wppa_page('slide')) {
    	echo('<div style="float:right; width:250px;">');
    		wppa_slide_description('optional');		// The description of the photo
    	echo('</div'>);
    }

    In version 3.0.0 this will be:

    elseif (wppa_page('slide') || wppa_page('single')) {							// Page 'Slideshow' or 'Single' in browsemode requested
    		// The next 7 lines define the display of the fullsize images and slideshows.
    		// You may change the order of them. Do not leave one out, if you do not want a particular box,
    		// you can switch it off in the Photo Albums -> Settings admin panel.
    		wppa_startstop('optional');				// The 'Slower | start/stop | Faster' bar
    		wppa_slide_frame();						// The photo / slide
    		wppa_slide_custom('optional');			// Custom box			// Reserved for future use
    		wppa_slide_rating('optional');			// Rating box
    		wppa_slide_filmstrip('optional');		// Show Filmstrip
    //		wppa_slide_description('optional');		// The description of the photo
    		wppa_slide_name('optional');			// The name of the photo
    		wppa_browsebar('optional');				// The 'Previous photo | Photo n of m | Next photo' bar
    		//
    		wppa_run_slidecontainer('slideshow');	// Fill in the photo array and display it
    	} // wppa_page('slide')
    wppa_container('close');
    if (wppa_page('slide')) {
    	wppa_output('<div style="float:right; width:250px;">');
    		wppa_slide_description('optional');		// The description of the photo
    	wppa_output('</div>');
    	}
    }

    If you want the following text below the photo and not also to the right, do the following:

    %%wppa%%
    %%slide=3%%
    %%size=350%%
    %%align=left%%
    <hr/>

    or

    %%wppa%%
    %%slide=3%%
    %%size=350%%
    %%align=left%%
    <div style="clear:both"></div>

    but this may give problems because the sidebar(s) depending of the theme, you have to try it.

  3. richardgvas
    Member
    Posted 3 years ago #

    Many thanks! it works perfectly, as you could see! http://www.laturquesa.eu/archives/date/2011/02
    best regards!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic