ebony theme customization

achiles

Joined: 2008-09-16
Posts: 1
Posted: Tue, 2008-09-16 09:17

hi, im new user of gallery2 and i have 2 questions.
i use ebony theme and i want gallery look like this > http://www.tuwang.org (original http://themes.gallery2.hu/?g2_theme=ebony )
1) no sidebar but only navigation frame which is showed forever
2) no lightbox but directly Details/Comments

how i can do this?

thank you and sorry for my english :P

 
agarg
agarg's picture

Joined: 2007-11-16
Posts: 64
Posted: Wed, 2008-10-01 04:15
achiles wrote:
hi, im new user of gallery2 and i have 2 questions.
i use ebony theme and i want gallery look like this > http://www.tuwang.org (original http://themes.gallery2.hu/?g2_theme=ebony )
1) no sidebar but only navigation frame which is showed forever
2) no lightbox but directly Details/Comments

how i can do this?

thank you and sorry for my english :P

Thanks. I like this theme as well but I don't like lightbox.
I too would be interested in this hack.

Thanks.

 
ASNet0007

Joined: 2006-10-17
Posts: 177
Posted: Wed, 2008-10-01 14:02

I can help but not until the weekend when I get home

 
agarg
agarg's picture

Joined: 2007-11-16
Posts: 64
Posted: Wed, 2008-10-01 14:37

Thanks. I will wait.

 
maxbuzz

Joined: 2008-09-25
Posts: 94
Posted: Fri, 2008-10-03 19:24

Maybe you could help me out too. Here are some queries I had posted in another thread with the same name

I am trying to use the Ebony theme and there are a few modifications that I am trying to make
1. Remove the banner (not the gallery logo) on top of the page
2. Align the text in the footers
3. Remove the "Details/Comments" link from the lightbox

Thanks,

 
ASNet0007

Joined: 2006-10-17
Posts: 177
Posted: Mon, 2008-10-06 12:43

Sorry for the delay.

To remove lightbox

Create a folder named local in /gallery2/themes/ebony/templates/ so you should have /gallery2/themes/ebony/templates/local/

Next copy album.tpl from templates into your new local folder & open in your favorite editor, I use notpad++

Next you need to find this line <!-- Start PhotoThumb --> in album.tpl

and replace all the text below

Quote:
<div class="PhotoThumb">
{strip}
{if isset($theme.params.$frameType) && isset($child.thumbnail)}
{g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType width=$child.thumbnail.width height=$child.thumbnail.height}
{* alternate link code for Lightbox JS *}
{if ($child.canContainChildren || $child.entityType == 'GalleryLinkItem' || $child.entityType == 'GalleryMovieItem')}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">{g->image id="%ID%" item=$child image=$child.thumbnail class="%CLASS% giThumbnail reflect"}</a>
{else}
<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}"
title="{$child.title|markup} &lt;br /&gt;&lt;a href=&quot;{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}&quot;&gt;Details/Comments&lt;/a&gt;"
pageLink="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
rel="lightbox[photos]" >{g->image id="%ID%" item=$child image=$child.thumbnail class="%CLASS% giThumbnail reflect"}</a>

{/if}

{/g->container}
{elseif isset($child.thumbnail)}
{if ($child.canContainChildren || $child.entityType == 'GalleryLinkItem' || $child.entityType == 'GalleryMovieItem')}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}">{g->image item=$child image=$child.thumbnail class="giThumbnail reflect"}
</a>
{else}
<a href="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$child.resizedId`"}"
title="{$child.title|markup}&lt;br /&gt;&lt;a href=&quot;{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}&quot;&gt;Details/Comments&lt;/a&gt;"
pageLink="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
rel="lightbox[photos]" >{g->image item=$child image=$child.thumbnail class="giThumbnail reflect"}</a>
{/if}

{else}
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$child.id`"}"
class="giMissingThumbnail">
{g->text text="no thumbnail"}
</a>
{/if}
{/strip}

with this text

Quote:
<div>
{if isset($theme.params.$frameType) && isset($child.thumbnail)}
{g->container type="imageframe.ImageFrame" frame=$theme.params.$frameType
width=$child.thumbnail.width height=$child.thumbnail.height}
<a href="{$linkUrl}">
{g->image id="%ID%" item=$child image=$child.thumbnail
class="%CLASS% giThumbnail"}
</a>
{/g->container}
{elseif isset($child.thumbnail)}
<a href="{$linkUrl}">
{g->image item=$child image=$child.thumbnail class="giThumbnail"}
</a>
{else}
<a href="{$linkUrl}" class="giMissingThumbnail">
{g->text text="no thumbnail"}
</a>
{/if}
</div>

That should do the trick.

If you have any problems just delete album.tpl from the local folder and start from the top.

 
agarg
agarg's picture

Joined: 2007-11-16
Posts: 64
Posted: Mon, 2008-10-06 20:12

Hi Double O seven

This was truly remarkable. Your instruction are so clear that it left no element of chance in it.

Great help and many thanks.

Anil Garg

 
OldVolks
OldVolks's picture

Joined: 2003-10-14
Posts: 22
Posted: Sun, 2008-10-12 21:58

Anyone have any idea how the albums could have this effect added? http://www.jdpictures.co.uk/photos/ move your cursor from left to right over the album thumbnails.

 
agarg
agarg's picture

Joined: 2007-11-16
Posts: 64
Posted: Sun, 2008-10-12 22:30
OldVolks wrote:
Anyone have any idea how the albums could have this effect added? http://www.jdpictures.co.uk/photos/ move your cursor from left to right over the album thumbnails.

Oldvolks - That is an embedded site for sure but not clear on how they did that.
Awesome affect.

 
OldVolks
OldVolks's picture

Joined: 2003-10-14
Posts: 22
Posted: Mon, 2008-10-13 01:01

Here is the code from Adobe for the carousel: http://www.adobe.com/devnet/flex/samples/photo_explorer/

Check out this posting too http://gallery.menalto.com/node/67842

 
candicimo

Joined: 2009-06-12
Posts: 1
Posted: Fri, 2009-06-12 09:29

I tried ASNet0007's way of killing the lightbox and, while it did work, it also killed the javascript thumbnail reflections.

When I added "reflect" back to the classes, they didn't magically materialize... so I made my own way of Axing the Lightbox which includes a download of the new album.tpl itself (assuming you haven't already added your own customizations...or if you just want to see).

If you use this method, DO NOT forget to delete "lightbox[photos]" from the rel="" tag --- why? Because that's what's referencing the javascript via the mootool stuff...

See demo here: http://candicimo.com/foto

 
alekseyn

Joined: 2010-08-13
Posts: 1
Posted: Fri, 2010-08-13 19:04

thanks, candicimo,
your links are dead, so I had to do some diggin'... and the correct solution is attached.

this solution gets rid of the lightbox but does not remove reflections.
just like suggested above - place this file in the /local sub folder...
let me know if it works please

regards,
aleksey

http://photo.napolskih.com
http://www.napolskih.com