• Resolved richardgvas

    (@richardgvas)


    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,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    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.

    Thread Starter richardgvas

    (@richardgvas)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Photo Album Plus] Image Description on the right side of the image’ is closed to new replies.