Slideshow Plugin: RIGHT Alignment in the article

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
walker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 21 Mar 2011, 11:30

Slideshow Plugin: RIGHT Alignment in the article

Post 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?
walker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 21 Mar 2011, 11:30

Re: Slideshow Plugin: RIGHT Alignment in the article

Post by walker »

142 views and ANYBODY CAN'T HELP?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Slideshow Plugin: RIGHT Alignment in the article

Post 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
If you find Phoca extensions useful, please support the project
growfish
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 26 Jul 2011, 22:03

Re: Slideshow Plugin: RIGHT Alignment in the article

Post by growfish »

where/what php file exactly? I need to implement this as well. please advise.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Slideshow Plugin: RIGHT Alignment in the article

Post by Jan »

plugins\content\phocagalleryslideshow\phocagalleryslideshow.php
If you find Phoca extensions useful, please support the project
growfish
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 26 Jul 2011, 22:03

Re: Slideshow Plugin: RIGHT Alignment in the article

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Slideshow Plugin: RIGHT Alignment in the article

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply