Positioning of swf in header

doceave

Joined: 2009-01-20
Posts: 176
Posted: Fri, 2010-04-02 12:55

Hi guys. I have installed the embed video module, and I've added a swf file (panoramic of church in which a friend of mine was recently married) and I want to have a thumbnail generated for the swf. Any ideas how?

And secondly I suppose: When viewing the image, can the thumbnail be removed? See link: http://www.doceave.com/gallery2/main.php?g2_itemId=15952
(the bottom video-generic-thumbnail I want removed)

Perhaps someone could tell me where to delete a line to achieve the second request?

Thanks

 
doceave

Joined: 2009-01-20
Posts: 176
Posted: Fri, 2010-04-02 12:58

Ok first problem solved ~ thumbnail manager module... :)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-04-02 15:47

I think your 2nd issue has to do with the theme. Try the matrix theme and see if you see the same behavior.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
doceave

Joined: 2009-01-20
Posts: 176
Posted: Fri, 2010-04-02 16:02

Many thanks. will try that...

 
doceave

Joined: 2009-01-20
Posts: 176
Posted: Fri, 2010-04-02 19:38

No luck I'm afraid... Matrix exhibits the same behavior - now the generic icon appears below the photo.

Essentially all I need to do is display the swf/photo, alone in the centre of the page and G2 is doing exactly what I want it to do. Please nivekiam, if you could point me to the correct file where I can start deleting lines...

Thanks

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-04-02 19:41

I don't have any movie or swf files to play around with for testing. So I'd start with looking at /themes/siriux/templates/photo.tpl

Read this:
http://codex.gallery2.org/Gallery2:Editing_Templates

Also, you can see what templates are being loaded on a page by putting Gallery into debug mode and taking a look at the Smarty Debug popup window.
FAQ: How to set/use Gallery in debug mode?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
doceave

Joined: 2009-01-20
Posts: 176
Posted: Fri, 2010-04-02 19:53

Excellent... deleted the correct block of code in photo.tpl as described... now just to center justify the image... (now i'm pushing it) Could you perhaps post/explain how to center the displayed image in photo.tlp ?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-04-02 20:15

I think this will work, but not sure if it will mess up any other pages or not. Edit your theme.css (or what ever Siriux's css file is named)

Find this bit of code and add the part in bold below:

.content {
	clear: both;
	margin: 0 auto;
	text-align: left;
}

div.content p {text-align: center;}

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
doceave

Joined: 2009-01-20
Posts: 176
Posted: Fri, 2010-04-02 20:35

Brilliant brilliant!! Ok I think we leave this thread here for the next guy with a similar problem to find... (new post for new problem)

 
doceave

Joined: 2009-01-20
Posts: 176
Posted: Fri, 2010-04-02 20:36

(Solved)