getting started on the layout

Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Fri, 2009-01-02 11:49

Hey guys

I just installed a patched version of gallery 2.1 (its the only one that my host provider supports) and I'm trying to get things to work.
I simple want to make several albums that I can link to from this page and its subpage's http://www.sjoukito.com/galerie.php and its subpage's so the theme should have the same style.

I found this Website http://www.explorer-photo.com/photos/main.php?g2_itemId=6942 (I don't like the main page itself though) and I really like the layout.

now my question:
Does any one know which theme they used (I tryed mailing them but no answer) and where should I start to make my albums look like this (in terms of the layout)?
I found it to be really complicated to even get starting with Gallery 2 like making the albums changing the layout etc. If you have any recommendations on which pages to use for information please let me know.

thanks in advance,
Sjoukito

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-01-02 18:02

They are using the carbon theme, with a customizes header.
They might have customized it a bit more but don't know.
The carbon theme has different them settings. Edit album theme tab.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Mon, 2009-01-26 16:09

Thanks The carbon theme looks great.

how does anyone know how to make something like they use here ( http://www.explorer-photo.com/photos/main.php?g2_itemId=6942 ) with the images next to there logo that (apparently) are randomly chosen and once you click on them open a album?

also I wonder how they make the menu on the right of the image (its like a list with all albums and sub albums.

thanks in advance,
Sjoukito

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-01-27 01:49

@images beside logo:
Best thing to do is to create a custom theme:
http://codex.gallery2.org/Gallery2:Themes:How_to_Copy_an_Existing_Theme
then once that is done add a table or div next to your image in theme.tpl and add the blocks in each cell:
{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize=100 showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0}

@menu: add the block ( album select block ) to that location. edit album, theme tab: blocks to show...

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Wed, 2009-01-28 22:26

Hmmm I'm not sure what you mean with this:

Quote:
then once that is done add a table or div next to your image in theme.tpl and add the blocks in each cell:

{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize=100 showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0}

@menu: add the block ( album select block ) to that location. edit album, theme tab: blocks to show...

I use the carbon thema and for the most it works ok for me.
but I would simple like to ad those to features I mentioned before, could you help me a bit more?

Anyway thanks,
John

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-01-29 00:41

First edit the theme.tpl file to add a table.
Do you know how to add a table? This is basic HTML:
http://www.w3schools.com/html/html_tables.asp
add some text to see if it shows up where you like.
let me know if you got that for.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Thu, 2009-01-29 18:21

Ok thats done.

you can see what i did at http://www.sjoukito.com/album/main.php?g2_itemId=222&g2_navId=xed0f0f95
Now what should I do?

Thanks for your help
John

Ps: I know basic HTML, CSS &PHP

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-01-29 19:07

Now replace
clickable image 1
with
{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize=100 showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-01-29 19:10

Or better yet:
http://www.flashyourweb.com/staticpages/index.php?page=mediaBlock
add the mediablock and tell it how many rows ( one) and how many colums

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Thu, 2009-01-29 21:36

Ok that looks easy enough :)

But whats the difference between the code: {g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize=100 showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0} and the mediabox from http://www.flashyourweb.com/staticpages/index.php?page=mediaBlock ?

John

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Thu, 2009-01-29 21:45

If I try the script:
{g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize=100 showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0}

I get this error :(
Fatal error: Smarty error: [in gallery:themes/carbon/templates/theme.tpl line 47]: syntax error: unrecognized tag: g->block type="imageblock.ImageBlock" blocks="randomImage" maxSize=100 showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0 (Smarty_Compiler.class.php, line 436) in /customers/sjoukito.com/sjoukito.com/httpd.www/album/lib/smarty/Smarty.class.php on line 1088

Sorry to border you so much :(

John

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-01-30 04:56

@fatal error: It works for me:
http://www.langleycom.com/gallery2/main.php
under the logo.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Fri, 2009-01-30 16:48

After several hours I got the first one working but as I would like to see the difference between the 2 posibilitys I also tried the second (the mediablock) one but I cant get it to work , does gallery when I use PHP include e.g. <?php include('../../../mediaBlock.php')?> ?

Thank you
John

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-01-31 05:14
Quote:
does gallery when I use PHP include e.g. <?php include('../../../mediaBlock.php')?> ?

not if you are in a template file. The directions are quite clear:
<?php @readfile('http://www.flashyourweb.com/gallery2/mediaBlock.php?g2_itemId=32&mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=11&useThumb=1&column=4&rss=1');?>
But if you want to use it in a template file try:

{php}
@readfile('http://www.flashyourweb.com/gallery2/mediaBlock.php?g2_itemId=32&mode=dynamic&g2_view=dynamicalbum.RandomAlbum&limit=11&useThumb=1&column=4&rss=1');
{/php}

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Sat, 2009-01-31 19:16

Thank you Dave

For now I will use the first option.
Is it also possible to only use the horizontal and not the vertical images as preview?

And how can I create the menu I mentioned in one of the first post that looks something like this (each of those names directing the visitor to the corresponding album)?

-China
----Beijing
----Shanghai
----etc
-Indonesia
----Jakarta
----Bali
----etc
-United states of America
----Hollywood
----New York
----etc

Thanks
John

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-01-31 20:58

@ menu: Use the album select DHTML block.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Sun, 2009-02-01 00:06

Could you explain this a bit more?

I really feel like I'm asking silly questions but for some reason I seem to be unable to figure out how Gallerry2 has been setup.
I haven't had any problem to find out how other scripts/app's like wordpress etc work but I guess its just a different way of working that I have yet to figure out.

Thanks
John

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Sun, 2009-02-01 00:07

Could you explain this a bit more?

I really feel like I'm asking silly questions but for some reason I seem to be unable to figure out how Gallerry2 has been setup.
I haven't had any problem to find out how other scripts/app's like wordpress etc work but I guess its just a different way of working that I have yet to figure out.

Thanks
John

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-02-01 04:53

Make sure you have the album select module installed.
Edit album, theme tab, add the album select DHTML block ti the sidebar.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Sjoukito

Joined: 2009-01-02
Posts: 13
Posted: Sun, 2009-02-01 22:18

Hey Dave

Thanks This works perfect :).

I have 2 small question:
1) Is it possible to only use the horizontal and not the vertical images as preview (I mean the random clickable images we just created)?

Or even better could we set a fixed with and hieght for them, so that would be omething like this I guess:
{g->block type="imageblock.ImageBlock" blocks="randomImage" -------->maxHeight=100 MaxWith=100<---------- showDate=0 showOwner=0 showViews=0 showTitle=0 showHeading=0 useDefaults=0}

2) could I give these random previeuw images (and only these images)a white border like one could normaly do with css with the code Border: 3px solid #ffffff;?

John

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2009-02-01 22:38

@2 small questions: please start a new thread with the method you are using and a url.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team