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 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: thanks in advance, |
|
Posts: 27300
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
Posts: 13
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
Posts: 27300
@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
Posts: 13
Hmmm I'm not sure what you mean with this:
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
Posts: 27300
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
Posts: 13
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
Posts: 27300
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
Posts: 27300
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
Posts: 13
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
Posts: 13
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
Posts: 27300
@fatal error: It works for me:
http://www.langleycom.com/gallery2/main.php
under the logo.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 13
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
Posts: 27300
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:
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 13
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
Posts: 27300
@ menu: Use the album select DHTML block.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 13
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
Posts: 13
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
Posts: 27300
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
Posts: 13
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
Posts: 27300
@2 small questions: please start a new thread with the method you are using and a url.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team