Page 1 of 1

Slideshow Plugin: RIGHT Alignment in the article

Posted: 21 Mar 2011, 12:07
by walker
Just installed Phoca Gallery and Slideshow Plugin.
I want to show slide show on right side of my home page.
But as I see "float:right" style doesn't work - plugin shows on NEW line:

Code: Select all

<div style="float:right;">
{pgslideshow id=1|width=400|height=300|delay=3000|image=O} 
</div>
Some text that should be shown at left side from plugin
I alse tried 2-divs technique, as it discribed at
https://www.phoca.cz/documents/19-phoca- ... how-plugin

Code: Select all

<div style="background: yellow; width: 700px; text-align: right;">
     <div style="margin: 0px auto; width: 400px;">
         {pgslideshow id=1|width=400|height=300|delay=3000|image=O}
     </div>
</div>
So I can't align slideshow to right corner of the page. Temporary I use table with 2 columns to solve this problem.
Where I gone wrong?

Re: Slideshow Plugin: RIGHT Alignment in the article

Posted: 23 Mar 2011, 15:10
by walker
142 views and ANYBODY CAN'T HELP?

Re: Slideshow Plugin: RIGHT Alignment in the article

Posted: 25 Mar 2011, 15:29
by Jan
Hi,
142 views and ANYBODY CAN'T HELP?
Please follow the forum rules: forum-rules.php (1)



I think you need then customize the code direct in the plugin - in the php code :-(

Jan

Re: Slideshow Plugin: RIGHT Alignment in the article

Posted: 26 Jul 2011, 22:08
by growfish
where/what php file exactly? I need to implement this as well. please advise.

Re: Slideshow Plugin: RIGHT Alignment in the article

Posted: 26 Jul 2011, 23:49
by Jan
plugins\content\phocagalleryslideshow\phocagalleryslideshow.php

Re: Slideshow Plugin: RIGHT Alignment in the article

Posted: 28 Jul 2011, 00:52
by growfish
thanks - that's what i thought but just wanted to verify.

i was able to solve this issue on my client's site and get the Slideshow Plugin to align right in my article by doing the following:

i added "<div style="float:right;">" around line #176 of plugins\content\phocagalleryslideshow\phocagalleryslideshow.php. the line edited looks like

Code: Select all

$output .= '<div style="float:right;"><div class="phocagalleryslideshow" style="text-align:left;">' . "\n";
then i added "</div>" around line #183. that edited line now looks like

Code: Select all

$output .='</div></div>';
hope that helps someone else with this question in the future.

Re: Slideshow Plugin: RIGHT Alignment in the article

Posted: 30 Jul 2011, 14:45
by Jan
Ok